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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x56a434]
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 - 0x2dc], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c8], ebx
call fcn.0042ea90
push eax
lea ecx, [ebp - 0x94]
call fcn.00428410
mov dword [ebp - 4], 0
call fcn.0042eaa0
mov ecx, eax
call fcn.00429050
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, al
je 0x478ad5
push ebx
lea ecx, [ebp - 0x94]
call fcn.00428820
push 0
push 0x80
push 3
push 0
push 1
push bind
lea ecx, [ebp - 0x94]
call fcn.0051f050
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x478a59
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call fcn.00428560
jmp 0x478d04
push 0
push ebx
call esi
mov esi, eax
test esi, esi
jne 0x478a7b
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
jmp 0x478cfe
push esi
mov dword [ebp - 0x2cc], 0
call fcn.004dc8a0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2cc]
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 - 0x2cc], esi
je 0x478ce4
push edi
call fcn.004dc663
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
jmp 0x478cfe
call fcn.0042ed60
test al, al
jne 0x478bf2
call fcn.0042eaa0
push eax
lea ecx, [ebp - 0x94]
call fcn.00428800
call fcn.0042ed10
test al, al
je 0x478b03
call fcn.0042eab0
jmp 0x478b1b
push 2
push 0
lea ecx, [ebp - 0x94]
call fcn.0051f050
push eax
call fcn.00445b70
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x478b38
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
jmp 0x478d04
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2c8]
push ebx
call fcn.00445480
add esp, 0x14
test eax, eax
je 0x478b72
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
jmp 0x478d04
mov esi, dword [ebp - 0x98]
test esi, esi
jne 0x478b93
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
jmp 0x478cfe
push esi
call fcn.004dc8a0
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00446000
add esp, 0x18
test eax, eax
je 0x478bda
cmp eax, 0x600
je 0x478bda
push edi
call fcn.004dc663
add esp, 4
call fcn.0042ed10
test al, al
jne 0x478abe
push ebx
call fcn.00445260
jmp 0x478abb
call fcn.0042ed10
test al, al
jne 0x478ce4
push ebx
call fcn.00445260
jmp 0x478ce1
call fcn.0042eaa0
push eax
lea ecx, [ebp - 0x94]
call fcn.00428800
call fcn.0042ed10
test al, al
je 0x478c13
call fcn.0042eab0
jmp 0x478c2b
push 0
push 0
lea ecx, [ebp - 0x94]
call fcn.0051f050
push eax
call fcn.0044a020
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x478c48
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
jmp 0x478d04
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2d8]
push eax
push dword [ebp - 0x2c8]
push ebx
call fcn.00449920
add esp, 0x10
test eax, eax
je 0x478c80
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
jmp 0x478d04
mov esi, dword [ebp - 0x2e4]
test esi, esi
je 0x478abe
push esi
call fcn.004dc8a0
mov edi, eax
push edi
push dword [ebp - 0x2d8]
push ebx
call fcn.0044a290
add esp, 0x10
test eax, eax
je 0x478cd2
cmp eax, 0x600
je 0x478cd2
push edi
call fcn.004dc663
add esp, 4
call fcn.0042ed10
test al, al
jne 0x478abe
push ebx
call fcn.00449830
jmp 0x478abb
call fcn.0042ed10
test al, al
jne 0x478ce4
push ebx
call fcn.00449830
add esp, 4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00428560
test edi, edi
jne 0x478d7f
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x478d7b
push 0
push ebx
call esi
mov esi, eax
test esi, esi
je 0x478d7b
push esi
mov dword [ebp - 0x2d0], 0
call fcn.004dc8a0
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 0x478d77
push edi
call fcn.004dc663
add esp, 4
xor eax, eax
jmp 0x478d9b
test edi, edi
jne 0x478d7f
xor eax, eax
jmp 0x478d9b
mov ecx, dword [ebp - 0x2dc]
push esi
push edi
call fcn.00478dc0
push 1
push edi
mov esi, eax
call fcn.004dc397
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.004dc386
mov esp, ebp
pop ebp
ret 4