Function at 0x425670
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5b1098
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov esi, ecx
test esi, esi
jne 0x4256ea
cmp byte [ebp + 0x44], cl
jne 0x4256e3
mov byte [ebp + 0x44], 1
mov dword [ebp + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4256c7
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x4c]
call fcn.00407990
or eax, 0xffffffff
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x6c], eax
xor al, al
jmp 0x4258d7
mov edi, ebp
call fcn.00424b70
push 2
or ebx, 0xffffffff
push 0
push esi
mov dword [ebp + 8], ebx
mov dword [ebp + 4], ebx
call fcn.005869fa
push esi
call fcn.00586c1c
push 0
push 0
push esi
mov edi, eax
call fcn.005869fa
xor eax, eax
add esp, 0x1c
cmp edi, eax
jg 0x425760
cmp byte [ebp + 0x44], al
jne 0x425759
mov byte [ebp + 0x44], 1
mov dword [ebp + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425740
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x4c]
call fcn.00407990
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x6c], ebx
xor al, al
jmp 0x4258d7
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
mov dword [esp + 0x3c], eax
cmp edi, 0xf
je 0x4257a3
push 1
push edi
lea ecx, [esp + 0x1c]
call fcn.004080c0
test al, al
je 0x4257a3
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
jae 0x4257a0
lea eax, [esp + 0x18]
mov byte [eax], 0
lea eax, [edi + 1]
push eax
call fcn.005759c5
push esi
push 1
mov ebx, eax
push edi
push ebx
mov byte [ebx], 0
call fcn.00584b8e
add esp, 0x14
cmp eax, 1
je 0x42581f
push ebx
call fcn.005759d0
add esp, 4
cmp byte [ebp + 0x44], 0
jne 0x425804
mov byte [ebp + 0x44], 1
mov dword [ebp + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4257e8
sub eax, esi
push eax
push edx
lea ecx, [ebp + 0x4c]
call fcn.00407990
or eax, 0xffffffff
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x6c], eax
cmp dword [esp + 0x2c], 0x10
jb 0x425818
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005759d0
add esp, 4
xor al, al
jmp 0x4258d7
mov byte [ebx + edi], 0
cmp byte [ebx], 0
mov eax, ebx
mov esi, ebx
je 0x425887
lea esp, [esp]
mov cl, byte [esi]
cmp cl, 0xa
jne 0x42584c
mov edx, esi
sub edx, eax
inc edx
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00408180
inc esi
mov eax, esi
jmp 0x425882
cmp cl, 0xd
jne 0x425881
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x425864
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00408180
push 0xa
mov eax, 1
lea edi, [esp + 0x18]
call fcn.00426a20
cmp byte [esi + 1], 0xa
jne 0x425847
add esi, 2
mov eax, esi
jmp 0x425882
inc esi
cmp byte [esi], 0
jne 0x425830
sub esi, eax
je 0x425896
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00408180
push ebx
call fcn.005759d0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x2c], 0x10
jae 0x4258ae
lea eax, [esp + 0x18]
mov edx, dword [ebp]
push 1
push 0
push eax
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
cmp byte [ebp + 0x44], 0
lea ecx, [esp + 0x14]
je 0x4258d0
call fcn.00408350
xor al, al
jmp 0x4258d7
call fcn.00408350
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005832f8
add esp, 0x2c
ret 4