518,6 → 518,8 |
jnz .fail |
|
mov eax, [file_size] |
cmp eax, 1024*1024*16 |
ja .fail |
|
stdcall kernel_alloc, [file_size] |
mov [file], eax |
529,9 → 531,10 |
mov eax, [file] |
cmp dword [eax], 0x4B43504B |
jne .exit |
mov ebx, [eax+4] |
mov [file_size], ebx |
stdcall kernel_alloc, ebx |
|
stdcall kernel_alloc, [eax+4] |
|
test eax, eax |
jz .cleanup |
|
539,6 → 542,7 |
stdcall unpack, [file], eax |
stdcall kernel_free, [file] |
mov eax, [file2] |
mov ebx, [file_size] |
.exit: |
ret |
.cleanup: |
545,6 → 549,7 |
stdcall kernel_free, [file] |
.fail: |
xor eax, eax |
xor ebx, ebx |
ret |
endp |
|
862,7 → 867,6 |
cli |
|
stdcall load_file, [file_name] |
|
test eax, eax |
jz .fail |
|