Function at 0x10028d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007300d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10089040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10028100
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x20]
mov esi, dword [ebp + 8]
push dword [esi]
lea eax, [esi + 8]
push eax
call fcn.10027ff0
mov eax, dword [ebx + 0x20]
add eax, 8
mov dword [ebp - 0x18], 0
push 0x1007f0b4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1006cbd2
add esp, 0xc
test eax, eax
jne 0x10028f47
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10028f47
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x10028dd5
mov esi, eax
nop dword [eax + eax]
mov ecx, edi
mov edi, dword [edi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x10028dc0
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
push 2
push 0
push edi
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
call fcn.1006cae1
push edi
call fcn.1006c78e
push 0
push 0
push edi
mov dword [ebp - 0x14], eax
call fcn.1006cae1
mov eax, dword [ebp - 0x14]
add esp, 0x1c
test eax, eax
jg 0x10028e72
cmp byte [ebx + 0x2c], 0
jne 0x10028e62
mov edx, dword [str.Error_document_empty.]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 0xc
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028e40
sub ecx, dword [ebp - 0x14]
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.10027ff0
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
push edi
xor bl, bl
call fcn.10065c69
add esp, 4
jmp 0x10028f86
inc eax
push eax
call fcn.10043d49
push edi
push 1
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push eax
mov byte [eax], 0
call fcn.1006cdf2
add esp, 0x14
cmp eax, 1
je 0x10028ecf
push dword [ebp - 0x10]
call fcn.10043285
add esp, 4
cmp byte [ebx + 0x2c], 0
jne 0x10028e62
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028ec0
sub ecx, dword [ebp - 0x14]
jmp 0x10028e4a
mov edx, dword [ebp - 0x10]
mov eax, edx
mov esi, dword [ebp - 0x14]
mov ecx, edx
mov byte [edx + esi], 0
mov dl, byte [edx]
mov esi, dword [ebp + 8]
test dl, dl
je 0x10028f19
lea esi, [ecx + 1]
mov dword [ebp - 0x1c], esi
lea esi, [eax + 1]
mov dword [ebp - 0x14], esi
cmp dl, 0xd
jne 0x10028f04
mov eax, esi
mov byte [ecx], 0xa
cmp byte [eax], 0xa
jne 0x10028f0b
inc eax
jmp 0x10028f0b
mov al, byte [eax]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
mov dl, byte [eax]
mov esi, dword [ebp - 0x1c]
mov ecx, esi
test dl, dl
jne 0x10028ee6
mov esi, dword [ebp + 8]
push 0
mov byte [ecx], 0
mov ecx, ebx
mov eax, dword [ebx]
push 0
push dword [ebp - 0x10]
call dword [eax + 8]
push dword [ebp - 0x10]
call fcn.10043285
add esp, 4
cmp byte [ebx + 0x2c], 0
sete bl
push edi
call fcn.10065c69
add esp, 4
jmp 0x10028f86
cmp byte [ebx + 0x2c], 0
jne 0x10028f84
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028f63
sub ecx, edi
push ecx
push edx
lea ecx, [ebx + 0x34]
call fcn.10027ff0
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
xor bl, bl
cmp esi, 0x1008b928
je 0x10028f97
push esi
call fcn.10043285
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 esp, ebp
pop ebp
ret 8