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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d0cb
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x5490a4]
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 - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.00419ae0
push eax
lea ecx, [ebp - 0x94]
call fcn.00415190
mov dword [ebp - 4], 0
call fcn.00419af0
mov ecx, eax
call fcn.00415e70
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
je 0x4706a5
push ebx
lea ecx, [ebp - 0x94]
call fcn.004154f0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00415ba0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x470629
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call fcn.00415380
jmp 0x4707cc
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x47064b
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415380
jmp 0x4707c6
push esi
mov dword [ebp - 0x2c8], 0
call fcn.00413c8d
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c8]
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 - 0x2c8], esi
je 0x4707ac
push edi
call fcn.00413ca0
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415380
jmp 0x4707c6
call fcn.00419af0
push eax
lea ecx, [ebp - 0x94]
call fcn.004154d0
call fcn.00419c50
test al, al
je 0x4706c6
call fcn.00419b00
jmp 0x4706de
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.00415ba0
push eax
call fcn.00444300
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4706fb
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415380
jmp 0x4707cc
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.00443c20
add esp, 0x14
test eax, eax
je 0x470735
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415380
jmp 0x4707cc
mov esi, dword [ebp - 0x98]
test esi, esi
jne 0x470753
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415380
jmp 0x4707c6
push esi
call fcn.00413c8d
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00444740
add esp, 0x18
test eax, eax
je 0x47079a
cmp eax, 0x600
je 0x47079a
push edi
call fcn.00413ca0
add esp, 4
call fcn.00419c50
test al, al
jne 0x47068e
push ebx
call fcn.00443a00
jmp 0x47068b
call fcn.00419c50
test al, al
jne 0x4707ac
push ebx
call fcn.00443a00
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00415380
test edi, edi
jne 0x470847
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x470843
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x470843
push esi
mov dword [ebp - 0x2d0], 0
call fcn.00413c8d
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2d0]
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 - 0x2d0], esi
je 0x47083f
push edi
call fcn.00413ca0
add esp, 4
xor eax, eax
jmp 0x470863
test edi, edi
jne 0x470847
xor eax, eax
jmp 0x470863
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00470890
push 1
push edi
mov esi, eax
call fcn.00413c38
add esp, 8
mov eax, esi
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.00413c46
mov esp, ebp
pop ebp
ret 4