Function at 0x413ad0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x458c18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor ebx, ebx
cmp ebp, ebx
jne 0x413b4b
cmp byte [esi + 0x44], bl
jne 0x413b44
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413b26
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00402d90
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
xor al, al
jmp 0x413d3e
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x413b63
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
cmp edi, ebx
jne 0x413b52
push 2
or eax, 0xffffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push ebx
push ebp
mov dword [esi + 8], eax
mov dword [esi + 4], eax
call fcn.0043f95a
push ebp
call fcn.0043fb77
push ebx
push ebx
push ebp
mov edi, eax
call fcn.0043f95a
add esp, 0x1c
cmp edi, ebx
jg 0x413bbe
cmp byte [esi + 0x44], bl
jne 0x413b44
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413bb0
jmp 0x413b2f
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp edi, 0xf
mov dword [esp + 0x38], ebx
je 0x413bfd
push 1
push edi
lea ecx, [esp + 0x18]
call fcn.00402a80
test al, al
je 0x413bfd
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
jae 0x413bfa
lea eax, [esp + 0x14]
mov byte [eax], 0
lea eax, [edi + 1]
push eax
call fcn.0041a861
push ebp
push 1
mov ebx, eax
push edi
push ebx
mov byte [ebx], 0
call fcn.0043fe81
add esp, 0x14
cmp eax, 1
je 0x413c7f
push ebx
call fcn.0041a866
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x413c60
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413c42
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00402d90
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
cmp dword [esp + 0x28], 0x10
jb 0x413b44
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041a866
add esp, 4
xor al, al
jmp 0x413d3e
mov byte [ebx + edi], 0
cmp byte [ebx], 0
mov eax, ebx
mov ebp, ebx
je 0x413cef
lea esp, [esp]
mov cl, byte [ebp]
cmp cl, 0xa
jne 0x413cb1
mov edx, ebp
sub edx, eax
add edx, 1
push edx
push eax
lea eax, [esp + 0x18]
call fcn.004149e0
add ebp, 1
mov eax, ebp
jmp 0x413ce9
cmp cl, 0xd
jne 0x413ce6
mov ecx, ebp
sub ecx, eax
test ecx, ecx
jle 0x413cc9
push ecx
push eax
lea eax, [esp + 0x18]
call fcn.004149e0
push 0xa
mov eax, 1
lea edi, [esp + 0x14]
call fcn.00414bc0
cmp byte [ebp + 1], 0xa
jne 0x413caa
add ebp, 2
mov eax, ebp
jmp 0x413ce9
add ebp, 1
cmp byte [ebp], 0
jne 0x413c90
sub ebp, eax
je 0x413cfe
push ebp
push eax
lea eax, [esp + 0x18]
call fcn.004149e0
push ebx
call fcn.0041a866
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x28], 0x10
jae 0x413d16
lea eax, [esp + 0x14]
mov edx, dword [esi]
push 1
push 0
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
cmp byte [esi + 0x44], 0
lea ecx, [esp + 0x10]
je 0x413d37
call fcn.00402d20
xor al, al
jmp 0x413d3e
call fcn.00402d20
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043d963
add esp, 0x2c
ret 4