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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47009a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b0408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x458289
cmp byte [eax], 0
je 0x458289
mov ecx, 0x4b2d9c
call fcn.00412ca0
mov dword [ebp - 4], edi
push 0x4b2d9c
lea ecx, [ebp - 0x34]
call fcn.004128c0
mov byte [ebp - 4], 1
nop
lea ecx, [ebp - 0x34]
call fcn.004132f0
mov esi, eax
test esi, esi
je 0x4580b2
mov ecx, dword [ebp + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4580a1
test dl, dl
je 0x45809d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4580a1
add eax, 2
add ecx, 2
test dl, dl
jne 0x458081
xor eax, eax
jmp 0x4580a6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458070
mov edi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4581e0
xor esi, esi
mov dword [ebp - 0x24], esi
nop
cmp esi, 0x32
jge 0x4580fb
cmp ebx, 0xffffffff
jne 0x458104
test esi, esi
jle 0x4580d6
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov dword [ebp - 0x24], esi
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call fcn.004566f0
mov ebx, eax
mov dword [ebp - 0x18], ebx
jmp 0x4580c0
cmp ebx, 0xffffffff
je 0x4581e0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0042c0b7
mov dword [ebp - 0x14], eax
push esi
push 0
push eax
call fcn.00431580
add esp, 0x10
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4581d0
push 0x10c
call fcn.0042c084
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x458182
push 0x10c
push 0
push esi
call fcn.00431580
add esp, 0xc
mov ecx, esi
call fcn.00456200
mov edi, eax
jmp 0x458184
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
push 0x103
push dword [ebp + 8]
push edi
call fcn.0043f7d0
add esp, 0xc
push dword [ebp - 0x14]
lea ecx, [edi + 0x104]
call fcn.0041ab20
push dword [ebp - 0x14]
lea ecx, [edi + 0x108]
call fcn.0041ab20
lea ecx, [edi + 0x108]
call fcn.0041ba50
push edi
mov ecx, 0x4b2d9c
call fcn.00412b40
jmp 0x4581d3
mov edi, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004129a0
mov dword [ebp - 4], 0xffffffff
jmp 0x458219
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x458230
push eax
call fcn.0042c0c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x45825d
mov ecx, 0x4b2d9c
call fcn.00413420
cmp ebx, 0xffffffff
je 0x458273
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4