Function at 0x458fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5636a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5cc5b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x458ff3
mov eax, dword [eax]
push 0x5688b4
push eax
call fcn.00505b47
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45919c
xor esi, esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
push eax
push 1
lea eax, [ebp - 0xd]
mov dword [ebp - 4], edi
push 1
push eax
call fcn.0050558d
add esp, 0x10
test eax, eax
je 0x459117
lea ebx, [ebx]
lea eax, [ebp - 0xd]
cmp eax, esi
jae 0x4590a6
cmp ebx, eax
ja 0x4590a6
sub eax, ebx
mov dword [ebp + 8], eax
cmp esi, edi
jne 0x45909d
mov eax, edi
sub eax, esi
cmp eax, 1
jae 0x45909a
mov eax, ebx
sub eax, esi
dec eax
cmp eax, 1
jb 0x459136
sub edi, ebx
or eax, 0xffffffff
mov ecx, edi
sub esi, ebx
shr ecx, 1
inc esi
sub eax, ecx
cmp eax, edi
jae 0x459081
xor edi, edi
jmp 0x459083
add edi, ecx
cmp edi, esi
lea ecx, [ebp - 0x24]
cmovb edi, esi
push edi
call fcn.00457590
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
test esi, esi
je 0x4590f5
mov al, byte [ebx + eax]
jmp 0x4590f3
cmp esi, edi
jne 0x4590ec
mov eax, edi
sub eax, esi
cmp eax, 1
jae 0x4590ec
mov eax, ebx
sub eax, esi
dec eax
cmp eax, 1
jb 0x459136
sub edi, ebx
or eax, 0xffffffff
mov ecx, edi
sub esi, ebx
shr ecx, 1
inc esi
sub eax, ecx
cmp eax, edi
jae 0x4590d3
xor edi, edi
jmp 0x4590d5
add edi, ecx
cmp edi, esi
lea ecx, [ebp - 0x24]
cmovb edi, esi
push edi
call fcn.00457590
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
test esi, esi
je 0x4590f5
mov al, byte [ebp - 0xd]
mov byte [esi], al
push dword [ebp - 0x18]
lea eax, [ebp - 0xd]
inc esi
push 1
push 1
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
call fcn.0050558d
add esp, 0x10
test eax, eax
jne 0x459040
push dword [ebp - 0x18]
call fcn.00503e3c
mov edi, dword [ebp + 0xc]
mov eax, esi
sub eax, ebx
add esp, 4
mov ecx, dword [edi + 0x10]
cmp eax, ecx
ja 0x459140
mov byte [ebp + 0xb], 0
jmp 0x4591b4
push str.vector_T__too_long
call fcn.004d9876
xor eax, eax
mov dword [ebp + 8], eax
xor edx, edx
test ecx, ecx
je 0x459179
mov esi, dword [ebp + 8]
mov edi, edi
cmp dword [edi + 0x14], 8
jb 0x45915a
mov eax, dword [edi]
jmp 0x45915c
mov eax, edi
movzx ecx, word [eax + edx*2]
lea eax, [ebx + edx]
movsx eax, byte [eax + esi]
cmp eax, ecx
mov ecx, dword [edi + 0x10]
jne 0x459173
inc edx
cmp edx, ecx
jb 0x459150
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
cmp edx, ecx
je 0x4591b0
inc eax
mov dword [ebp + 8], eax
mov eax, esi
sub eax, ecx
sub eax, ebx
cmp dword [ebp + 8], eax
mov eax, dword [ebp + 8]
jbe 0x459145
test ebx, ebx
je 0x45919c
push ebx
call fcn.00503a69
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp + 0xb], 1
test ebx, ebx
je 0x4591c1
push ebx
call fcn.00503a69
add esp, 4
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret