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

Disassembly:
push 0x3dc
mov eax, 0x49d7ea
call fcn.0047f7dc
mov ebx, ecx
mov dword [ebp - 0x3e4], ebx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x98]
xor eax, eax
mov dword [ebp - 0x3e0], esi
push 0x4d0aa8
mov edi, eax
mov dword [esi], eax
call fcn.00425270
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x4d0b40]
cmp word [eax], cx
jne 0x43b5f4
cmp dword [ebx], ecx
je 0x43b547
push dword [ebx]
lea ecx, [ebp - 0x98]
call fcn.004252a5
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push 1
push SysReAllocString
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x3e8], eax
cmp eax, ebx
je 0x43b73e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x43b73e
and dword [ebp - 0x3dc], 0
lea esi, [edi + 1]
push esi
call fcn.0047f4b0
pop ecx
mov ecx, dword [ebp - 0x3e0]
push esi
push 0
push eax
mov dword [ecx], eax
call fcn.00481670
mov esi, dword [ebp - 0x3e0]
lea eax, [ebp - 0x3dc]
add esp, 0xc
push 0
push eax
push edi
push dword [esi]
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 - 0x3dc], edi
je 0x43b73e
push dword [esi]
call fcn.0047ecd0
and dword [esi], 0
xor edi, edi
pop ecx
jmp 0x43b73e
push eax
lea ecx, [ebp - 0x98]
call fcn.004252a5
cmp byte [0x4d0a28], 0
je 0x43b617
mov ebx, dword [0x4d37a8]
mov dword [ebp - 0x3e0], ebx
jmp 0x43b672
push 0x4d0bd8
lea ecx, [ebp - 0x1a8]
call fcn.00425270
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a8]
call fcn.00418e51
mov ecx, dword [ebp - 0x98]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x3dc], eax
call fcn.00411f89
mov ebx, eax
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x3e0], ebx
pop ecx
pop ecx
test eax, eax
je 0x43b667
push eax
call fcn.0047ecd0
pop ecx
lea ecx, [ebp - 0x1a8]
call fcn.00425295
test ebx, ebx
jne 0x43b67e
or ebx, 0xffffffff
jmp 0x43b73e
mov eax, dword [ebp - 0x3e4]
lea ecx, [ebp - 0x120]
and dword [ebp - 0x3dc], 0
or ebx, 0xffffffff
push ebx
push dword [eax]
call fcn.0042524c
push 0x4ad218
push 0x4ac4cc
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.004256b6
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3dc]
push eax
push ecx
mov ecx, dword [ebp - 0x3e0]
call fcn.00412003
add esp, 0xc
test eax, eax
jne 0x43b733
mov edi, dword [ebp - 0x1ac]
test edi, edi
je 0x43b733
push edi
call fcn.0047f4b0
mov edx, dword [ebp - 0x3dc]
pop ecx
mov ecx, dword [ebp - 0x3e0]
push 3
push edi
push eax
mov dword [esi], eax
call fcn.00412036
add esp, 0xc
test eax, eax
je 0x43b71f
cmp eax, 0x600
je 0x43b71f
push dword [esi]
call fcn.0047ecd0
and dword [esi], 0
xor edi, edi
pop ecx
cmp byte [0x4d0a28], 0
jne 0x43b733
mov ecx, dword [ebp - 0x3e0]
call fcn.00412069
lea ecx, [ebp - 0x120]
call fcn.00425295
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.00425295
xor eax, eax
cmp dword [esi], eax
jne 0x43b7cc
push eax
push 0x80
push 3
push eax
mov eax, dword [ebp - 0x3e4]
push 1
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3dc], eax
cmp eax, ebx
je 0x43b7cc
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x43b7cc
push edi
mov dword [ebp - 0x3e4], ebx
call fcn.0047f4b0
pop ecx
push ebx
mov ebx, dword [ebp - 0x3dc]
lea ecx, [ebp - 0x3e4]
push ecx
push edi
push eax
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3e4], edi
je 0x43b7cc
push dword [esi]
call fcn.0047ecd0
and dword [esi], 0
xor edi, edi
pop ecx
mov eax, edi
call fcn.0047f79a
ret