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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6740c1
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x71506c]
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.00436470
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ce10
mov dword [ebp - 4], 0
call fcn.00436480
mov ecx, eax
call fcn.0044de90
test al, al
je 0x403f63
push esi
lea ecx, [ebp - 0x94]
call fcn.0044d370
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0044d230
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403ee3
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call fcn.004480f0
jmp 0x40416c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x403f09
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004480f0
jmp 0x40416c
push edi
mov dword [ebp - 0x3d0], 0
call fcn.004300b6
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 0x404156
push esi
call fcn.004300b1
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004480f0
jmp 0x40416c
call fcn.00436480
push eax
lea ecx, [ebp - 0x94]
call fcn.0044d340
call fcn.004364a0
push eax
lea ecx, [ebp - 0x19c]
call fcn.0044ce10
mov byte [ebp - 4], 1
call fcn.004368b0
test al, al
je 0x403f9e
call fcn.00436490
mov ebx, eax
jmp 0x404035
lea ecx, [ebp - 0x19c]
call fcn.0044d230
mov edi, eax
test edi, edi
je 0x404009
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.004300b6
mov esi, eax
add esp, 4
test esi, esi
je 0x404009
push dword [ebp - 0x3d4]
push 0
push esi
call fcn.00508390
add esp, 0xc
push 0
push 0
push dword [ebp - 0x3d0]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
jmp 0x40400b
xor esi, esi
push esi
lea ecx, [ebp - 0x94]
call fcn.0044d230
push eax
call fcn.00440aa0
add esp, 8
mov ebx, eax
test esi, esi
je 0x40402f
push esi
call fcn.004300b1
add esp, 4
mov esi, dword [ebp - 0x3d8]
test ebx, ebx
jne 0x40405b
lea ecx, [ebp - 0x19c]
call fcn.004480f0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004480f0
jmp 0x40416c
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], 0
call fcn.0044ce50
push 0x6fc104
push 0x6fc038
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0044e280
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0044d230
push eax
push ebx
call fcn.0043fd90
add esp, 0x14
test eax, eax
je 0x4040c5
lea ecx, [ebp - 0x118]
call fcn.004480f0
jmp 0x404039
mov edi, dword [ebp - 0x1a0]
test edi, edi
jne 0x4040df
lea ecx, [ebp - 0x118]
call fcn.004480f0
jmp 0x404039
push edi
call fcn.004300b6
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push ebx
call fcn.00441330
add esp, 0x14
test eax, eax
je 0x40412e
cmp eax, 0x600
je 0x40412e
push esi
call fcn.004300b1
add esp, 4
call fcn.004368b0
test al, al
jne 0x40411e
push ebx
call fcn.0043f9b0
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.004480f0
jmp 0x404039
call fcn.004368b0
test al, al
jne 0x404140
push ebx
call fcn.0043f9b0
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.004480f0
lea ecx, [ebp - 0x19c]
call fcn.004480f0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004480f0
test esi, esi
jne 0x4041eb
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 0x4041e7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4041e7
push edi
mov dword [ebp - 0x3d4], 0
call fcn.004300b6
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 0x4041e3
push esi
call fcn.004300b1
add esp, 4
xor al, al
jmp 0x404211
test esi, esi
jne 0x4041eb
xor al, al
jmp 0x404211
mov ecx, dword [ebp - 0x3e0]
cmp byte [ecx + 0x678], 0
je 0x404204
mov eax, dword [ecx]
push edi
push esi
call dword [eax + 0x194]
push 1
push esi
call fcn.00430080
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.0042fa05
mov esp, ebp
pop ebp
ret 4