Function at 0x48b840
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x588458
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
mov ebp, dword [esp + 0x30]
jne 0x48b8b5
cmp byte [ebp + 0x2c], cl
jne 0x48b8ae
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x48b890
sub eax, edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.0048a4e0
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
xor al, al
jmp 0x48bad8
mov edi, ebp
call fcn.0048ad40
push 2
or eax, 0xffffffff
push 0
push esi
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call fcn.00568555
push esi
call fcn.00568460
push 0
push 0
push esi
mov edi, eax
call fcn.00568555
add esp, 0x1c
test edi, edi
jg 0x48b90f
cmp byte [ebp + 0x2c], 0
jne 0x48b8ae
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 0xd
mov ebx, dword [str.Error_document_empty.]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x48b904
jmp 0x48b899
mov dword [esp + 0x14], 0x5f8934
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0
call fcn.0048a420
lea ecx, [edi + 1]
push ecx
call fcn.00566e45
push esi
mov ebx, eax
push 1
push edi
push ebx
mov dword [esp + 0x30], ebx
mov byte [ebx], 0
call fcn.0056815e
add esp, 0x14
cmp eax, 1
je 0x48b9af
push ebx
call fcn.00563626
add esp, 4
cmp byte [ebp + 0x2c], 0
jne 0x48b990
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x48b972
sub eax, edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.0048a4e0
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0x14]
cmp eax, 0x5f8934
je 0x48b8ae
push eax
call fcn.005649af
add esp, 4
xor al, al
jmp 0x48bad8
mov byte [ebx + edi], 0
cmp byte [ebx], 0
mov edi, dword [esp + 0x14]
mov eax, ebx
mov dword [esp + 0x18], eax
mov esi, ebx
je 0x48ba74
mov cl, byte [esi]
cmp cl, 0xa
jne 0x48ba21
mov ebx, dword [edi]
mov ebp, esi
sub ebp, eax
add ebp, 1
add ebx, ebp
cmp ebx, dword [edi + 4]
jbe 0x48b9f6
mov edi, dword [edi + 4]
lea edx, [esp + 0x14]
add edi, ebx
push edx
call fcn.0048a420
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov eax, dword [edi]
lea ecx, [eax + edi + 8]
push ecx
call fcn.00567870
mov ebp, dword [esp + 0x3c]
add esp, 0xc
mov dword [edi], ebx
add esi, 1
mov byte [ebx + edi + 8], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
mov eax, esi
jmp 0x48ba6b
cmp cl, 0xd
jne 0x48ba68
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x48ba39
push ecx
push eax
lea ebx, [esp + 0x1c]
call fcn.0048a5c0
push 0xa
lea ebx, [esp + 0x18]
call fcn.0048a670
cmp byte [esi + 1], 0xa
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
jne 0x48ba5d
add esi, 2
mov dword [esp + 0x18], esi
mov eax, esi
jmp 0x48ba6b
add esi, 1
mov dword [esp + 0x18], esi
mov eax, esi
jmp 0x48ba6b
add esi, 1
cmp byte [esi], 0
jne 0x48b9c8
sub esi, eax
je 0x48ba8b
push esi
push eax
lea ebx, [esp + 0x1c]
call fcn.0048a5c0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.00563626
mov edx, dword [ebp]
mov edx, dword [edx + 8]
add esp, 4
push 0
push 0
lea eax, [edi + 8]
push eax
mov ecx, ebp
call edx
cmp byte [ebp + 0x2c], 0
je 0x48bac5
cmp edi, 0x5f8934
je 0x48b8ae
push edi
call fcn.005649af
add esp, 4
xor al, al
jmp 0x48bad8
cmp edi, 0x5f8934
je 0x48bad6
push edi
call fcn.005649af
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4