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

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x448018]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0x18
mov eax, 0x438670
call fcn.00436b5a
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp + 0x2c0]
mov dword [ebp - 0x20], esi
call fcn.004046af
push eax
lea ecx, [ebp + 0x230]
call fcn.00408cb5
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004046b5
mov ecx, eax
call fcn.00408a28
test al, al
je 0x433a33
push esi
lea ecx, [ebp + 0x230]
call fcn.00408ab8
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp + 0x230]
call fcn.0040891a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4339ee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.00408900
jmp 0x433b0d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x4339da
push esi
mov dword [ebp - 0x18], edi
call fcn.00403b64
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x433afa
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x4339da
call fcn.004046b5
push eax
lea ecx, [ebp + 0x230]
call fcn.00408a9e
call fcn.004046bb
test al, al
je 0x433a54
call fcn.004046c1
jmp 0x433a6b
push 2
push edi
lea ecx, [ebp + 0x230]
call fcn.0040891a
push eax
call fcn.0040f287
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4339da
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x10]
call fcn.0040d985
add esp, 0x14
test eax, eax
jne 0x4339da
mov esi, dword [ebp + 0x22c]
cmp esi, edi
je 0x4339da
push esi
call fcn.00403b64
push 3
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.0040f2e4
add esp, 0x18
cmp eax, edi
je 0x433ae8
cmp eax, 0x600
je 0x433ae8
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.004046bb
test al, al
jne 0x4339da
push dword [ebp - 0x10]
call fcn.0040f31e
jmp 0x433a30
call fcn.004046bb
test al, al
jne 0x433afa
push dword [ebp - 0x10]
call fcn.0040f31e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.00408900
cmp ebx, edi
jne 0x433b77
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x433b73
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x433b73
push esi
mov dword [ebp - 0x14], edi
call fcn.00403b64
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x433b6f
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
xor ebx, ebx
cmp ebx, edi
jne 0x433b77
xor eax, eax
jmp 0x433b8c
mov ecx, dword [ebp - 0x24]
push esi
push ebx
call fcn.00433733
push ebx
mov esi, eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.00403b76
add ebp, 0x2b8
leave
ret 4