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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ee34
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x604e14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0xdb4
call fcn.004177a0
test eax, eax
jne 0x416714
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x378]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], 1
jmp 0x41693d
mov eax, dword [ebp - 0x54]
add eax, 0xba8
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.00416420
mov edx, dword [ebp - 0x54]
add edx, 0x9a0
push edx
mov eax, dword [ebp - 0x54]
add eax, 0xba8
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00416ab0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x54]
add edx, 0xba8
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00416370
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp - 0x54]
add eax, 0xba8
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00416370
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x28], 0
jne 0x41679d
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0xdb4
call fcn.00417830
xor eax, eax
jmp 0x4169a8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp - 0x54]
add ecx, 0x9a0
push ecx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4167eb
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0xdb4
call fcn.00417830
xor eax, eax
jmp 0x4169a8
push 0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
mov eax, dword [0x606abc]
shl eax, 0x14
mov dword [ebp - 0x38], eax
cmp dword [0x606ab8], 1
jne 0x41681c
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x38]
jbe 0x41681c
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.0045ee00
add esp, 4
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416885
push 0x8000
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x30]
push eax
call fcn.00460e10
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0xdb4
call fcn.00417830
xor eax, eax
jmp 0x4169a8
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00460e10
add esp, 4
push 0x5c
call fcn.0052601f
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0
je 0x4168b8
mov ecx, dword [ebp - 0x40]
call fcn.00461040
mov dword [ebp - 0x58], eax
jmp 0x4168bf
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00461100
test eax, eax
jne 0x41693d
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x416918
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0040eb20
mov dword [ebp - 0x5c], eax
jmp 0x41691f
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0xdb4
call fcn.00417830
xor eax, eax
jmp 0x4169a8
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.004164a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0
jne 0x416991
push 0x8000
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
je 0x416988
push 1
mov ecx, dword [ebp - 0x4c]
call fcn.0040eb20
mov dword [ebp - 0x60], eax
jmp 0x41698f
mov dword [ebp - 0x60], 0
jmp 0x4169a5
push 2
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0xdb4
call fcn.00417740
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4