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

Disassembly:
push 0x3dc
mov eax, 0x49d83a
call fcn.0047f7dc
mov dword [ebp - 0x3e8], ecx
xor esi, esi
lea ecx, [ebp - 0x9c]
push 0x4d0aa8
mov edi, esi
mov ebx, esi
call fcn.00425270
mov dword [ebp - 4], esi
mov eax, dword [0x4d0b40]
cmp word [eax], si
jne 0x43b8b7
mov eax, dword [ebp - 0x3e8]
test eax, eax
je 0x43b826
push eax
lea ecx, [ebp - 0x9c]
call fcn.004252a5
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3e0], eax
cmp eax, 0xffffffff
jne 0x43b861
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425295
jmp 0x43ba30
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x43b84d
push ebx
mov dword [ebp - 0x3e4], esi
call fcn.0047f4b0
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 0x3e4]
push eax
push ebx
push edi
push dword [ebp - 0x3e0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3e0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3e4], ebx
je 0x43ba1d
push edi
call fcn.0047ecd0
pop ecx
mov edi, esi
jmp 0x43b84d
push eax
lea ecx, [ebp - 0x9c]
call fcn.004252a5
cmp byte [0x4d0a28], 0
je 0x43b8d9
mov eax, dword [0x4d37a8]
mov dword [ebp - 0x3e0], eax
jmp 0x43b938
push 0x4d0bd8
lea ecx, [ebp - 0x1ac]
call fcn.00425270
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1ac]
call fcn.00418e51
mov ecx, dword [ebp - 0x9c]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x3e4], eax
call fcn.00411f89
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3e4]
pop ecx
pop ecx
test eax, eax
je 0x43b927
push eax
call fcn.0047ecd0
pop ecx
lea ecx, [ebp - 0x1ac]
call fcn.00425295
mov eax, dword [ebp - 0x3e0]
test eax, eax
je 0x43b84d
push 0xffffffffffffffff
push dword [ebp - 0x3e8]
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x3e4], esi
call fcn.0042524c
push 0x4ad218
push 0x4ac4cc
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.004256b6
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x3e4]
push eax
push ecx
mov ecx, dword [ebp - 0x3e0]
call fcn.00412003
add esp, 0xc
test eax, eax
je 0x43b9a9
lea ecx, [ebp - 0x124]
call fcn.00425295
jmp 0x43b84d
mov ebx, dword [ebp - 0x1b0]
test ebx, ebx
je 0x43b999
push ebx
call fcn.0047f4b0
mov edx, dword [ebp - 0x3e4]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x3e0]
push 3
push ebx
push edi
call fcn.00412036
add esp, 0xc
test eax, eax
je 0x43b9fe
cmp eax, 0x600
je 0x43b9fe
push edi
call fcn.0047ecd0
cmp byte [0x4d0a28], 0
mov edi, esi
pop ecx
jne 0x43b999
mov ecx, dword [ebp - 0x3e0]
call fcn.00412069
jmp 0x43b999
cmp byte [0x4d0a28], 0
jne 0x43ba12
mov ecx, dword [ebp - 0x3e0]
call fcn.00412069
lea ecx, [ebp - 0x124]
call fcn.00425295
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425295
test edi, edi
jne 0x43baa2
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp - 0x3e8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3e8], eax
cmp eax, 0xffffffff
je 0x43ba9e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x43ba9e
push ebx
mov dword [ebp - 0x3e0], esi
call fcn.0047f4b0
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 0x3e0]
push eax
push ebx
push edi
push dword [ebp - 0x3e8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3e0], ebx
jne 0x43baad
test edi, edi
je 0x43bab4
mov edx, ebx
mov ecx, edi
call fcn.0043babc
mov esi, eax
push edi
call fcn.0047ecd0
pop ecx
mov eax, esi
call fcn.0047f79a
ret