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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66d851
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x70d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3e0], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3d8], esi
call fcn.00430190
push eax
lea ecx, [ebp - 0x94]
call fcn.00446c40
mov dword [ebp - 4], 0
call fcn.004301a0
mov ecx, eax
call fcn.00447cc0
test al, al
je 0x404063
push esi
lea ecx, [ebp - 0x94]
call fcn.004471a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00447060
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403fe3
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call fcn.00441f20
jmp 0x40426c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x404009
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00441f20
jmp 0x40426c
push edi
mov dword [ebp - 0x3d0], 0
call fcn.00429d96
add esp, 4
mov esi, eax
lea eax, [ebp - 0x3d0]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x404256
push esi
call fcn.00429d91
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00441f20
jmp 0x40426c
call fcn.004301a0
push eax
lea ecx, [ebp - 0x94]
call fcn.00447170
call fcn.004301c0
push eax
lea ecx, [ebp - 0x19c]
call fcn.00446c40
mov byte [ebp - 4], 1
call fcn.004305d0
test al, al
je 0x40409e
call fcn.004301b0
mov ebx, eax
jmp 0x404135
lea ecx, [ebp - 0x19c]
call fcn.00447060
mov edi, eax
test edi, edi
je 0x404109
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
mov dword [ebp - 0x3d0], eax
inc eax
push eax
mov dword [ebp - 0x3d4], eax
call fcn.00429d96
mov esi, eax
add esp, 4
test esi, esi
je 0x404109
push dword [ebp - 0x3d4]
push 0
push esi
call fcn.00501b40
add esp, 0xc
push 0
push 0
push dword [ebp - 0x3d0]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
jmp 0x40410b
xor esi, esi
push esi
lea ecx, [ebp - 0x94]
call fcn.00447060
push eax
call fcn.0043a8d0
add esp, 8
mov ebx, eax
test esi, esi
je 0x40412f
push esi
call fcn.00429d91
add esp, 4
mov esi, dword [ebp - 0x3d8]
test ebx, ebx
jne 0x40415b
lea ecx, [ebp - 0x19c]
call fcn.00441f20
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00441f20
jmp 0x40426c
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], 0
call fcn.00446c80
push 0x6f5084
push 0x6f4fb8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.004480b0
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00447060
push eax
push ebx
call fcn.00439bc0
add esp, 0x14
test eax, eax
je 0x4041c5
lea ecx, [ebp - 0x118]
call fcn.00441f20
jmp 0x404139
mov edi, dword [ebp - 0x1a0]
test edi, edi
jne 0x4041df
lea ecx, [ebp - 0x118]
call fcn.00441f20
jmp 0x404139
push edi
call fcn.00429d96
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push ebx
call fcn.0043b160
add esp, 0x14
test eax, eax
je 0x40422e
cmp eax, 0x600
je 0x40422e
push esi
call fcn.00429d91
add esp, 4
call fcn.004305d0
test al, al
jne 0x40421e
push ebx
call fcn.004397e0
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.00441f20
jmp 0x404139
call fcn.004305d0
test al, al
jne 0x404240
push ebx
call fcn.004397e0
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.00441f20
lea ecx, [ebp - 0x19c]
call fcn.00441f20
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00441f20
test esi, esi
jne 0x4042eb
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x3d8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4042e7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4042e7
push edi
mov dword [ebp - 0x3d4], 0
call fcn.00429d96
add esp, 4
mov esi, eax
lea eax, [ebp - 0x3d4]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], edi
je 0x4042e3
push esi
call fcn.00429d91
add esp, 4
xor al, al
jmp 0x404311
test esi, esi
jne 0x4042eb
xor al, al
jmp 0x404311
mov ecx, dword [ebp - 0x3e0]
cmp byte [ecx + 0x678], 0
je 0x404304
mov eax, dword [ecx]
push edi
push esi
call dword [eax + 0x194]
push 1
push esi
call fcn.00429d60
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004296e5
mov esp, ebp
pop ebp
ret 4