Function at 0x715e07ad
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov eax, dword [esi + 4]
push 0x8020
push 0x40
mov dword [ebp - 0x18], 0x504a4743
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 8], 1
mov dword [ebp + 0xc], 0x8000
call ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add eax, 0x20
push eax
push 0x40
call ebx
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], ebx
je 0x715e098d
cmp eax, ebx
je 0x715e098d
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x715e098d
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [esi]
call ebx
test eax, eax
jne 0x715e0877
and dword [ebp + 0xc], eax
and dword [ebp - 8], eax
jmp 0x715e087b
add dword [esi + 4], 4
cmp dword [ebp + 0xc], 0x8000
jne 0x715e0942
lea eax, [ebp + 0xc]
push 0
push eax
push 0x8000
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x715e093e
cmp dword [ebp + 0xc], 0
je 0x715e0942
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.715e109e
push 0x8000
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.715df24b
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x715e08e2
cmp eax, dword [ebp + 0xc]
jb 0x715e08e6
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
push 0
shl eax, 0x10
or eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [esi]
call ebx
test eax, eax
je 0x715e093e
add dword [esi + 4], 4
xor eax, eax
cmp dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
push eax
jne 0x715e091e
push dword [ebp + 0xc]
push dword [ebp - 4]
jmp 0x715e0924
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi]
call ebx
mov edi, eax
neg edi
sbb edi, edi
inc edi
test edi, edi
jne 0x715e093e
mov eax, dword [ebp - 0xc]
add dword [esi + 4], eax
jmp 0x715e087b
and dword [ebp - 8], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x715e0967
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [ebp + 8]
push esi
call fcn.715e0992
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x715e0979
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 4], ebx
je 0x715e0983
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov dword [ebp - 8], ebx
jmp 0x715e0969