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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6852e1
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.005175d0
add esp, 0xc
call fcn.004513a0
push eax
lea ecx, [ebp - 0xa0]
call fcn.0044af60
mov dword [ebp - 4], 0
call fcn.004513b0
mov ecx, eax
call fcn.0044c160
test al, al
je 0x404fc0
push esi
lea ecx, [ebp - 0xa0]
call fcn.0044b5e0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xa0]
call fcn.0044b3c0
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.0044b190
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.0044b190
jmp 0x4051e0
push edi
mov dword [ebp - 0x14], 0
call fcn.00447e5d
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.00447e66
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.0044b190
jmp 0x4051e0
call fcn.004513b0
push eax
lea ecx, [ebp - 0xa0]
call fcn.0044b5b0
push 0x84
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.005175d0
add esp, 0xc
call fcn.004513d0
push eax
lea ecx, [ebp - 0x1a8]
call fcn.0044af60
mov byte [ebp - 4], 1
call fcn.004517e0
test al, al
je 0x405011
call fcn.004513c0
mov ebx, eax
jmp 0x40509c
lea ecx, [ebp - 0x1a8]
call fcn.0044b3c0
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.00447e5d
mov esi, eax
add esp, 4
test esi, esi
je 0x405070
push dword [ebp - 0x18]
push 0
push esi
call fcn.005175d0
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.0044b3c0
push eax
call fcn.00460a10
add esp, 8
mov ebx, eax
test esi, esi
je 0x405096
push esi
call fcn.00447e66
add esp, 4
mov esi, dword [ebp - 0x3dc]
test ebx, ebx
jne 0x4050c2
lea ecx, [ebp - 0x1a8]
call fcn.0044b190
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.0044b190
jmp 0x4051e0
push 0x84
lea eax, [ebp - 0x124]
mov dword [ebp - 0x1c], 0
push 0
push eax
call fcn.005175d0
add esp, 0xc
lea ecx, [ebp - 0x124]
push 0xffffffffffffffff
push esi
call fcn.0044afa0
push 0x693424
push 0x693250
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.0044c550
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x124]
call fcn.0044b3c0
push eax
push ebx
call fcn.0045fd00
add esp, 0x14
test eax, eax
je 0x40513c
lea ecx, [ebp - 0x124]
call fcn.0044b190
jmp 0x4050a0
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x405156
lea ecx, [ebp - 0x124]
call fcn.0044b190
jmp 0x4050a0
push edi
call fcn.00447e5d
push edi
mov esi, eax
push esi
push dword [ebp - 0x1c]
push ebx
call fcn.004612a0
add esp, 0x14
test eax, eax
je 0x4051a2
cmp eax, 0x600
je 0x4051a2
push esi
call fcn.00447e66
add esp, 4
call fcn.004517e0
test al, al
jne 0x405192
push ebx
call fcn.0045f920
add esp, 4
lea ecx, [ebp - 0x124]
call fcn.0044b190
jmp 0x4050a0
call fcn.004517e0
test al, al
jne 0x4051b4
push ebx
call fcn.0045f920
add esp, 4
lea ecx, [ebp - 0x124]
call fcn.0044b190
lea ecx, [ebp - 0x1a8]
call fcn.0044b190
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.0044b190
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.00447e5d
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.00447e66
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.00447d89
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.00447de7
mov esp, ebp
pop ebp
ret 4