Function at 0x42c0be
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x28], edi
jne 0x42c0fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x42c36f
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 0x78
mov ebx, esi
lea eax, [ebp - 0xc]
call fcn.00404493
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
lea esi, [ebp - 0xc]
call fcn.004044e7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c356
cmp dword [ebp - 0x18], ebx
je 0x42c356
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0xc], eax
call fcn.00401c33
mov esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
add esi, 0x10
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x38], 0x431fd8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0041397a
test al, al
jne 0x42c24f
xor edi, edi
cmp dword [ebp - 0x30], ebx
jle 0x42c182
mov edi, dword [ebp - 0x34]
lea edx, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.00413b45
cmp edi, eax
mov dword [ebp - 0x1c], eax
je 0x42c20c
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
call fcn.0042c375
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x42c200
push dword [0x438920]
lea esi, [ebp - 0x10]
call fcn.004015d9
mov eax, esi
push eax
mov eax, dword [ebp - 4]
call fcn.0041390c
mov ebx, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040147d
test ebx, ebx
je 0x42c1fb
push dword [0x438924]
lea esi, [ebp - 0x14]
call fcn.004015d9
mov eax, esi
push eax
mov eax, dword [ebp - 4]
call fcn.0041390c
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040147d
test esi, esi
jne 0x42c278
mov esi, dword [ebp - 8]
xor ebx, ebx
add dword [ebp - 4], 0x10
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jne 0x42c194
cmp byte [0x438cec], 0
je 0x42c24f
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
push dword [0x438934]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.004063dd
push eax
mov ebx, 0x438cbc
call fcn.00405df0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040147d
xor ebx, ebx
lea edi, [ebp - 0x34]
call fcn.00413d69
lea eax, [esi - 0x10]
call fcn.0040147d
mov eax, dword [ebp - 0xc]
call fcn.0040147d
cmp dword [ebp - 0x28], ebx
je 0x42c36c
push dword [ebp - 0x28]
jmp 0x42c366
lea eax, [ebx + 4]
add edi, 0x24
call fcn.00401bc0
mov esi, dword [esi + 4]
or dword [ebp - 0x1c], 0xffffffff
push 0xa
lea eax, [ebp - 0x1c]
call fcn.004075ef
mov ebx, dword [ebp + 8]
pop ecx
push dword [0x43892c]
lea esi, [ebp + 8]
mov dword [ebx + 0x28], eax
call fcn.004015d9
mov eax, esi
push eax
mov eax, dword [ebp - 4]
call fcn.0041390c
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040147d
test esi, esi
je 0x42c2d0
lea eax, [esi + 4]
lea edi, [ebx + 0x2c]
call fcn.00401bc0
mov eax, dword [ebp - 0x20]
lea edi, [ebx + 0x20]
add eax, 4
call fcn.00401bc0
cmp byte [0x438cec], 0
je 0x42c328
mov eax, dword [0x438af8]
mov edi, dword [edi]
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
push edi
push dword [0x438938]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.004063dd
push eax
call fcn.004063dd
push eax
mov ebx, 0x438cbc
call fcn.00405df0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040147d
lea edi, [ebp - 0x34]
call fcn.00413d69
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 0xc]
call fcn.0040147d
cmp dword [ebp - 0x28], 0
je 0x42c352
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x42c36e
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040147d
cmp edi, ebx
je 0x42c36c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
pop edi
pop esi
leave
ret 4