Function at 0x1008a170
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1017c85d
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x101ce00c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ce00c]
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
push edx
pop edx
push 0x1ff
lea eax, [esp + 0x41]
push ebp
push eax
mov byte [esp + 0x48], 0
call fcn.10118770
add esp, 0xc
test cl, cl
push ebx
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.100597b0
add esp, 0xc
push edx
pop edx
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], 0
mov ecx, ecx
push 0x40
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.101191b0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x20], ebx
mov bl, bl
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
test eax, 0xbc1
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
test eax, 0x24cf
cmp ebx, ebp
je 0x1008a3b5
push 2
push ebp
push ebx
call fcn.1011912b
add esp, 0xc
test eax, 0x905
push ebx
call fcn.10119036
add esp, 4
mov edi, eax
mov bl, bl
push ebp
push ebp
push ebx
call fcn.1011912b
add esp, 0xc
mov ah, ah
lea ecx, [edi + 1]
push ecx
call fcn.10117b2c
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
push eax
pop eax
test ebp, ebp
je 0x1008a3aa
push ebx
push edi
push 1
push ebp
call fcn.10118e83
add esp, 0x10
mov ebp, ebp
mov byte [edi + ebp], 0
mov edx, edx
lea edx, [edi + edi*2 + 3]
push edx
call fcn.10117b2c
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
mov dh, dh
test ecx, ecx
je 0x1008a39f
test ah, ah
mov ebx, ecx
test eax, eax
mov byte [ecx], 0
test esi, esi
xor ebp, ebp
test edi, edi
jle 0x1008a36b
lea eax, [edi - 1]
cmp ebp, eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + ebp]
push ecx
je 0x1008a34b
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.10119287
add esp, 0xc
mov ebx, ebx
add ebx, 3
test eax, 0x3945
jmp 0x1008a360
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.10119287
add esp, 0xc
test edx, edx
add ebx, 2
push ecx
pop ecx
add ebp, 1
cmp ebp, edi
jl 0x1008a321
mov ecx, dword [esp + 0x1c]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1008a370
sub eax, edi
add eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.100070b0
mov al, al
mov eax, dword [esp + 0x1c]
push eax
call fcn.10117bef
add esp, 4
test ecx, ecx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push ebp
call fcn.10117bef
add esp, 4
push ecx
pop ecx
push ebx
call fcn.10118b6b
add esp, 4
push edx
pop edx
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.101180ca
add esp, 0x238
ret