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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d567
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x55d184]
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 - 0x748], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00436c20
push 0
push 0
push esi
lea ecx, [ebp - 0x508]
mov dword [ebp - 4], 0
call fcn.0043c1c0
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004348c0
mov byte [ebp - 4], 1
call fcn.00438d20
push eax
lea ecx, [ebp - 0x94]
call fcn.004348c0
mov byte [ebp - 4], 2
call fcn.00438d30
mov ecx, eax
call fcn.004358e0
test al, al
je 0x409299
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00434ed0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00421810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409287
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x409287
push esi
mov dword [ebp - 0x73c], 0
call fcn.0049be25
add esp, 4
mov edi, eax
lea eax, [ebp - 0x73c]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x73c], esi
je 0x40945a
push edi
call fcn.0049be2e
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.00434b40
xor bl, bl
jmp 0x409497
call fcn.00438d30
push eax
lea ecx, [ebp - 0x94]
call fcn.00434ed0
call fcn.00438fa0
test al, al
je 0x4092bf
call fcn.00438d40
mov ebx, eax
jmp 0x409374
call fcn.00438d50
push eax
lea ecx, [ebp - 0x220]
call fcn.004348c0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00421810
mov edi, eax
test edi, edi
je 0x40933f
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 - 0x744], eax
inc eax
push eax
mov dword [ebp - 0x73c], eax
call fcn.0049be25
mov esi, eax
add esp, 4
test esi, esi
je 0x40933f
push dword [ebp - 0x73c]
push 0
push esi
call fcn.004cbbe0
add esp, 0xc
push 0
push 0
push dword [ebp - 0x744]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
jmp 0x409341
xor esi, esi
push esi
lea ecx, [ebp - 0x94]
call fcn.00421810
push eax
call fcn.00443260
add esp, 8
mov ebx, eax
test esi, esi
je 0x409365
push esi
call fcn.0049be2e
add esp, 4
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00434b40
test ebx, ebx
je 0x409287
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x740], 0
push eax
lea ecx, [ebp - 0x118]
call fcn.004348c0
push 0x525d80
push 0x525b5c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00435c40
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x740]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00421810
push eax
push ebx
call fcn.00442980
add esp, 0x14
test eax, eax
jne 0x409423
mov esi, dword [ebp - 0x50c]
test esi, esi
je 0x409423
push esi
call fcn.0049be25
push esi
mov edi, eax
push edi
push dword [ebp - 0x740]
push ebx
call fcn.00443860
add esp, 0x14
test eax, eax
je 0x40943d
cmp eax, 0x600
je 0x40943d
push edi
call fcn.0049be2e
add esp, 4
call fcn.00438fa0
test al, al
jne 0x409423
push ebx
call fcn.004424e0
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.00434b40
lea ecx, [ebp - 0x94]
call fcn.00434b40
xor bl, bl
jmp 0x409497
call fcn.00438fa0
test al, al
jne 0x40944f
push ebx
call fcn.004424e0
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.00434b40
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00434b40
test edi, edi
jne 0x409471
xor bl, bl
jmp 0x409497
mov ecx, dword [ebp - 0x748]
cmp byte [ecx + 0x65c], 0
je 0x40948a
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0x190]
push 1
push edi
call fcn.0049bb5c
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x19c]
call fcn.00434b40
lea ecx, [ebp - 0x2a4]
call fcn.00434b40
lea ecx, [ebp - 0x37c]
call fcn.00434b40
lea ecx, [ebp - 0x400]
call fcn.00434b40
lea ecx, [ebp - 0x484]
call fcn.00434b40
lea ecx, [ebp - 0x508]
call fcn.00434b40
mov al, bl
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.0049be04
mov esp, ebp
pop ebp
ret 4