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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x487490]
mov dword [ebp - 0x28], eax
push esi
push edi
mov dword [ebp - 0x44c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x416ff6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0x44c]
call fcn.00417350
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x44c]
mov eax, dword [edx + 0x414]
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x434]
mov dword [ebp - 4], edx
jmp 0x417058
mov eax, dword [ebp - 4]
add eax, 0x504
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ecx + 0x418]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x438]
sbb edx, edx
neg edx
movzx eax, dl
test eax, eax
je 0x4172c3
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x500]
mov dword [ebp - 0x450], edx
cmp dword [ebp - 0x450], 1
je 0x4170bb
cmp dword [ebp - 0x450], 2
je 0x417101
jmp 0x417285
push 0x2000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x100
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x473608
mov eax, dword [ebp - 0x10]
push eax
call fcn.00443eb6
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00444520
add esp, 4
mov dword [ebp - 8], eax
jmp 0x417285
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
push 0
push 0x8000080
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp - 4]
add edx, 0x100
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1801
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
mov dl, byte [0x473640]
mov byte [ebp - 0x430], dl
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x42f]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x444], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x448], ecx
mov edx, dword [ebp - 4]
add edx, 0x100
push edx
mov ecx, dword [ebp - 0x44c]
call fcn.00417430
push eax
mov eax, dword [ebp - 0x444]
add eax, 0x100
push eax
mov ecx, dword [ebp - 0x448]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x473648
mov eax, dword [ebp - 0x10]
push eax
call fcn.00443eb6
add esp, 0x18
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00444520
add esp, 4
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x14]
push edx
push 0x400
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41723e
cmp dword [ebp - 0x14], 0
jbe 0x41723e
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x18]
ja 0x41723e
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x24]
push edx
call fcn.00443860
add esp, 0xc
push 0x401
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.00444850
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
jmp 0x4171d2
push 0x4736a0
call fcn.00444520
add esp, 4
push eax
push 0x4736a4
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x24]
push edx
call fcn.00443860
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x20]
add esi, dword [ebp - 0x24]
push 0x4736a8
call fcn.00444520
add esp, 4
add esi, eax
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0xc]
push ecx
call fcn.00443860
add esp, 0xc
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
je 0x4172be
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], 0
jmp 0x41704d
push 2
push 0x4736ac
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0xc]
push edx
call fcn.00443860
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.00444520
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
lea edx, [eax + ecx + 2]
push edx
call fcn.00443860
add esp, 0xc
push 3
push 0x4736b0
mov eax, dword [ebp + 8]
mov esi, dword [eax]
add esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00444520
add esp, 4
lea edx, [esi + eax + 2]
push edx
call fcn.00443860
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.00444520
add esp, 4
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 5]
mov ecx, dword [ebp - 0x28]
call fcn.004457b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8