Function at 0x458aa9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c883
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4c54e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
push 0x4a486c
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call fcn.00452989
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00404749
mov edi, 0x10
cmp dword [ebp - 0x74], edi
mov byte [ebp - 4], 1
jb 0x458b39
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00475c61
add esp, 4
cmp dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x3c]
jae 0x458b44
lea eax, [ebp - 0x3c]
push 0x4a063c
push eax
call fcn.00477def
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [ebp - 0x48], edi
jne 0x458b6c
push 0x4bb980
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], ebx
call fcn.00475dbf
push edi
push 1
lea eax, [esi + 0x488]
push 0x20
push eax
call fcn.00478118
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x458b9f
push 0x4bb980
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 1
call fcn.00475dbf
push edi
push 1
lea ecx, [ebp - 0x24]
push 0x10
push ecx
call fcn.00478118
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x458bcf
push 0x4bb980
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], 2
call fcn.00475dbf
push edi
push 1
lea ebx, [esi + 0x4c8]
push 4
push ebx
call fcn.00478118
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x458c02
push 0x4bb980
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 3
call fcn.00475dbf
mov eax, dword [ebx]
test eax, eax
jle 0x458d40
cmp eax, 0x100000
ja 0x458d40
push 0
mov ecx, esi
call fcn.00469059
mov ecx, eax
mov eax, dword [ebx]
cdq
idiv ecx
test edx, edx
jne 0x458d40
mov eax, dword [ebx]
push eax
call fcn.0046f927
add esp, 4
test eax, eax
mov dword [esi + 0x4c4], eax
jne 0x458c59
push 0x4bb980
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x58], 5
call fcn.00475dbf
mov edx, dword [ebx]
push edx
call fcn.0046f927
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x44], ebx
jne 0x458c82
push 0x4bb980
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 6
call fcn.00475dbf
mov ecx, dword [esi + 0x4c8]
push edi
push 1
push ecx
push ebx
call fcn.00478118
push edi
call fcn.00478a32
add esp, 0x14
test eax, eax
je 0x458cb4
push 0x4bb980
lea edx, [ebp - 0x64]
push edx
mov dword [ebp - 0x64], 7
call fcn.00475dbf
push edi
call fcn.004777cb
push 0x20
lea edi, [esi + 0x488]
push edi
push edi
mov dword [ebp - 4], 0
call fcn.00450879
add esp, 0x10
push 0
push 0
push 0x10
push 0x10
push 0x4a93f0
push 0x20
push edi
mov ecx, esi
call fcn.00469169
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
push 0x10
lea ecx, [esi + 0x4ac]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
call eax
mov eax, dword [esi + 0x4c8]
mov ecx, dword [esi + 0x4c4]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push eax
push ecx
push ebx
mov ecx, esi
call edx
push ebx
call fcn.004761f9
add esp, 4
mov ecx, esi
call fcn.00457e19
cmp eax, 1
lea ecx, [ebp - 0x40]
jne 0x458dbd
call fcn.00413419
mov al, 1
jmp 0x458dc4
push 0x4bb980
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 4
call fcn.00475dbf
mov eax, dword [0x4c7aac]
xor edi, edi
cmp eax, edi
je 0x458d72
mov ecx, dword [ebp - 0x70]
push ecx
push 0x4a4954
push eax
call fcn.00450159
add esp, 0xc
mov eax, dword [ebp - 0x48]
cmp eax, edi
je 0x458d82
push eax
call fcn.004777cb
add esp, 4
mov eax, dword [ebp - 0x44]
cmp eax, edi
je 0x458d92
push eax
call fcn.004761f9
add esp, 4
mov esi, dword [ebp - 0x54]
mov eax, dword [esi + 0x4c4]
cmp eax, edi
je 0x458dae
push eax
call fcn.004761f9
add esp, 4
mov dword [esi + 0x4c4], edi
mov dword [esi + 0x4c8], edi
mov eax, 0x455b81
ret
call fcn.00413419
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004761ea
mov esp, ebp
pop ebp
ret