Function at 0x10089450
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1017b1ed
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x101ce2ac]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce2ac]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x248], ebp
mov esi, dword [esp + 0x250]
mov edi, dword [esp + 0x254]
mov ebx, dword [esp + 0x258]
mov dword [esp + 0x24], ebp
mov dword [esi + 0x10], esi
mov dword [esp + 0x28], esi
mov dword [esi + 0x14], esi
mov ecx, 1
mov dword [esp + 0x248], ecx
mov eax, dword [esi + 0x10]
mov byte [eax], 0
mov dword [esp + 0x248], ebp
mov dword [esp + 0x24], ecx
test ch, ch
push 0x1ff
lea eax, [esp + 0x41]
push ebp
push eax
mov byte [esp + 0x48], 0
call fcn.10117df0
add esp, 0xc
xchg ebx, eax
xchg ebx, eax
push ebx
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.10058ce0
add esp, 0xc
test eax, eax
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], 0
test ah, ah
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.10118d36
mov ebx, eax
add esp, 8
mov dword [esp + 0x20], ebx
push ebx
pop ebx
mov dl, 0x30
mov cl, 0x32
mov al, 0x58
mov byte [esp + 0x34], 0x25
mov byte [esp + 0x35], dl
mov byte [esp + 0x36], cl
mov byte [esp + 0x37], al
mov byte [esp + 0x38], 0x20
mov byte [esp + 0x39], 0
mov ch, ch
mov byte [esp + 0x2c], 0x25
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], 0
mov ch, ch
cmp ebx, ebp
je 0x10089698
push 2
push ebp
push ebx
call fcn.10118bed
add esp, 0xc
mov cl, cl
push ebx
call fcn.10118af8
add esp, 4
mov edi, eax
mov bl, bl
push ebp
push ebp
push ebx
call fcn.10118bed
add esp, 0xc
mov cl, cl
lea ecx, [edi + 1]
push ecx
call fcn.1011671b
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
mov ebx, ebx
test ebp, ebp
je 0x1008968d
push ebx
push edi
push 1
push ebp
call fcn.10118945
add esp, 0x10
mov esi, esi
mov byte [edi + ebp], 0
test al, al
lea edx, [edi + edi*2 + 3]
push edx
call fcn.1011671b
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test eax, 0x6f10
test ecx, ecx
je 0x1008967f
test al, al
mov ebx, ecx
mov eax, eax
mov byte [ecx], 0
nop
xor ebp, ebp
test edi, edi
jle 0x10089647
jmp 0x10089600
lea eax, [edi - 1]
cmp ebp, eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + ebp]
push ecx
je 0x10089627
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.10118d49
add esp, 0xc
mov edx, edx
add ebx, 3
push edx
pop edx
jmp 0x1008963c
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.10118d49
add esp, 0xc
mov esi, esi
add ebx, 2
test edi, edi
add ebp, 1
cmp ebp, edi
jl 0x10089600
mov ecx, dword [esp + 0x1c]
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10089650
sub eax, edi
add eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.1000d090
test al, al
mov eax, dword [esp + 0x1c]
push eax
call fcn.101167de
add esp, 4
mov edi, edi
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push ebp
call fcn.101167de
add esp, 4
test eax, 0x1dca
push ebx
call fcn.1011862d
add esp, 4
test dl, dl
mov eax, esi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10116cb9
add esp, 0x238
ret