Function at 0x457c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6d58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x645624]
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 ebx, ecx
mov dword [ebp - 0x28], ebx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x457cfb
cmp byte [ebx + 0x2c], 0
jne 0x457cf4
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457cd3
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.00456200
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
xor al, al
jmp 0x457f28
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x457d11
mov ecx, esi
mov esi, dword [esi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x457d02
push 2
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
push 0
push edi
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.00589ca8
push edi
call fcn.005897a5
push 0
push 0
push edi
mov esi, eax
call fcn.00589ca8
add esp, 0x1c
test esi, esi
jg 0x457d7c
cmp byte [ebx + 0x2c], 0
jne 0x457cf4
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xd
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457d70
jmp 0x457cda
mov dword [ebp - 0x14], 0x64cec0
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00456130
lea eax, [esi + 1]
push eax
call fcn.0057b68c
push edi
push 1
push esi
push eax
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
call fcn.005915f1
add esp, 0x14
cmp eax, 1
je 0x457e0b
push dword [ebp - 0x1c]
call fcn.0057b687
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x457e01
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457de0
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.00456200
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
mov esi, dword [ebp - 0x14]
xor bl, bl
jmp 0x457f15
mov eax, dword [ebp - 0x1c]
mov ebx, eax
mov edi, eax
mov byte [eax + esi], 0
cmp byte [eax], 0
mov esi, dword [ebp - 0x14]
je 0x457edb
mov al, byte [edi]
cmp al, 0xa
jne 0x457e70
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [esi + 4]
sub ecx, ebx
inc ecx
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
cmp eax, edx
jbe 0x457e4f
add eax, edx
lea ecx, [ebp - 0x14]
push eax
call fcn.00456130
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi]
push ecx
add eax, 8
add eax, esi
push ebx
push eax
call fcn.0057ec50
mov eax, dword [ebp - 0x24]
add esp, 0xc
inc edi
mov dword [esi], eax
mov ebx, edi
mov byte [eax + esi + 8], 0
jmp 0x457ed2
cmp al, 0xd
jne 0x457ed1
mov eax, edi
sub eax, ebx
test eax, eax
jle 0x457e89
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.004562f0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 0x18], 0xa
mov ebx, dword [esi]
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jbe 0x457ea5
add eax, ebx
lea ecx, [ebp - 0x14]
push eax
call fcn.00456130
mov esi, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi]
add eax, 8
add eax, esi
push eax
call fcn.0057ec50
mov dword [esi], ebx
add esp, 0xc
mov byte [ebx + esi + 8], 0
lea ebx, [edi + 1]
cmp byte [ebx], 0xa
jne 0x457ecd
lea ebx, [edi + 2]
mov edi, ebx
jmp 0x457ed2
inc edi
cmp byte [edi], 0
jne 0x457e22
sub edi, ebx
je 0x457eec
push edi
push ebx
lea ecx, [ebp - 0x14]
call fcn.004562f0
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0057b687
mov edi, dword [ebp - 0x28]
lea eax, [esi + 8]
add esp, 4
mov ecx, edi
mov edx, dword [edi]
push 0
push 0
push eax
call dword [edx + 0xc]
cmp byte [edi + 0x2c], 0
je 0x457f13
xor bl, bl
jmp 0x457f15
mov bl, 1
cmp esi, 0x64cec0
je 0x457f26
push esi
call fcn.0057b687
add esp, 4
mov al, bl
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.0057b676
mov esp, ebp
pop ebp
ret 8