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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6855c1
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x732694]
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]
lea eax, [ebp - 0xa0]
push 0x84
push 0
push eax
mov dword [ebp - 0x3dc], esi
call fcn.00517830
add esp, 0xc
call fcn.00451530
push eax
lea ecx, [ebp - 0xa0]
call fcn.0044b0f0
mov dword [ebp - 4], 0
call fcn.00451540
mov ecx, eax
call fcn.0044c2f0
test al, al
je 0x404fc0
push esi
lea ecx, [ebp - 0xa0]
call fcn.0044b770
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xa0]
call fcn.0044b550
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404f49
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], eax
call fcn.0044b320
jmp 0x4051e0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x404f6f
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.0044b320
jmp 0x4051e0
push edi
mov dword [ebp - 0x14], 0
call fcn.00447fed
add esp, 4
mov esi, eax
lea eax, [ebp - 0x14]
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 - 0x14], edi
je 0x4051ca
push esi
call fcn.00447ff6
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.0044b320
jmp 0x4051e0
call fcn.00451540
push eax
lea ecx, [ebp - 0xa0]
call fcn.0044b740
push 0x84
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.00517830
add esp, 0xc
call fcn.00451560
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0044b0f0
mov byte [ebp - 4], 1
call fcn.00451970
test al, al
je 0x405011
call fcn.00451550
mov ebx, eax
jmp 0x40509c
lea ecx, [ebp - 0x1a8]
call fcn.0044b550
mov edi, eax
test edi, edi
je 0x405070
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 - 0x14], eax
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.00447fed
mov esi, eax
add esp, 4
test esi, esi
je 0x405070
push dword [ebp - 0x18]
push 0
push esi
call fcn.00517830
add esp, 0xc
push 0
push 0
push dword [ebp - 0x14]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
jmp 0x405072
xor esi, esi
push esi
lea ecx, [ebp - 0xa0]
call fcn.0044b550
push eax
call fcn.00460bc0
add esp, 8
mov ebx, eax
test esi, esi
je 0x405096
push esi
call fcn.00447ff6
add esp, 4
mov esi, dword [ebp - 0x3dc]
test ebx, ebx
jne 0x4050c2
lea ecx, [ebp - 0x1a8]
call fcn.0044b320
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.0044b320
jmp 0x4051e0
push 0x84
lea eax, [ebp - 0x124]
mov dword [ebp - 0x1c], 0
push 0
push eax
call fcn.00517830
add esp, 0xc
lea ecx, [ebp - 0x124]
push 0xffffffffffffffff
push esi
call fcn.0044b130
push 0x693424
push 0x693250
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.0044c6e0
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x124]
call fcn.0044b550
push eax
push ebx
call fcn.0045feb0
add esp, 0x14
test eax, eax
je 0x40513c
lea ecx, [ebp - 0x124]
call fcn.0044b320
jmp 0x4050a0
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x405156
lea ecx, [ebp - 0x124]
call fcn.0044b320
jmp 0x4050a0
push edi
call fcn.00447fed
push edi
mov esi, eax
push esi
push dword [ebp - 0x1c]
push ebx
call fcn.00461450
add esp, 0x14
test eax, eax
je 0x4051a2
cmp eax, 0x600
je 0x4051a2
push esi
call fcn.00447ff6
add esp, 4
call fcn.00451970
test al, al
jne 0x405192
push ebx
call fcn.0045fad0
add esp, 4
lea ecx, [ebp - 0x124]
call fcn.0044b320
jmp 0x4050a0
call fcn.00451970
test al, al
jne 0x4051b4
push ebx
call fcn.0045fad0
add esp, 4
lea ecx, [ebp - 0x124]
call fcn.0044b320
lea ecx, [ebp - 0x1a8]
call fcn.0044b320
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.0044b320
test esi, esi
jne 0x405256
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x3dc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405252
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x405252
push edi
mov dword [ebp - 0x18], 0
call fcn.00447fed
add esp, 4
mov esi, eax
lea eax, [ebp - 0x18]
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 - 0x18], edi
je 0x40524e
push esi
call fcn.00447ff6
add esp, 4
xor al, al
jmp 0x40527c
test esi, esi
jne 0x405256
xor al, al
jmp 0x40527c
mov ecx, dword [ebp - 0x3e0]
cmp byte [ecx + 0x678], 0
je 0x40526f
mov eax, dword [ecx]
push edi
push esi
call dword [eax + 0x194]
push 1
push esi
call fcn.00447f19
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.00447f77
mov esp, ebp
pop ebp
ret 4