Function at 0x10087170
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1017c37d
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x101cf40c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cf40c]
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
mov ebx, ebx
push 0x1ff
lea eax, [esp + 0x41]
push ebp
push eax
mov byte [esp + 0x48], 0
call fcn.101184b0
add esp, 0xc
mov ebp, ebp
push ebx
lea ecx, [esp + 0x40]
push ecx
push edi
call fcn.10056990
add esp, 0xc
mov al, al
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], 0
mov bh, bh
push 0x40
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.101191b9
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x20], ebx
mov al, al
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 ebx, ebx
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 al, al
cmp ebx, ebp
je 0x100873b5
push 2
push ebp
push ebx
call fcn.10119134
add esp, 0xc
mov ebx, ebx
push ebx
call fcn.1011903f
add esp, 4
mov edi, eax
mov ecx, ecx
push ebp
push ebp
push ebx
call fcn.10119134
add esp, 0xc
mov ecx, ecx
lea ecx, [edi + 1]
push ecx
call fcn.1011741c
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
mov eax, eax
test ebp, ebp
je 0x100873aa
push ebx
push edi
push 1
push ebp
call fcn.10118e8c
add esp, 0x10
mov eax, eax
mov byte [edi + ebp], 0
mov al, al
lea edx, [edi + edi*2 + 3]
push edx
call fcn.1011741c
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
mov edi, edi
test ecx, ecx
je 0x1008739f
mov edi, edi
mov ebx, ecx
mov edx, edx
mov byte [ecx], 0
mov ebp, ebp
xor ebp, ebp
test edi, edi
jle 0x10087367
jmp 0x10087320
lea eax, [edi - 1]
cmp ebp, eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + ebp]
push ecx
je 0x10087347
lea edx, [esp + 0x38]
push edx
push ebx
call fcn.10119290
add esp, 0xc
mov ch, ch
add ebx, 3
mov cl, cl
jmp 0x1008735c
lea edx, [esp + 0x30]
push edx
push ebx
call fcn.10119290
add esp, 0xc
push edx
pop edx
add ebx, 2
mov edi, edi
add ebp, 1
cmp ebp, edi
jl 0x10087320
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 0x10087370
sub eax, edi
add eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.1000d190
mov bh, bh
mov eax, dword [esp + 0x1c]
push eax
call fcn.101174df
add esp, 4
xchg ebx, eax
xchg ebx, eax
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push ebp
call fcn.101174df
add esp, 4
mov edi, edi
push ebx
call fcn.10118b74
add esp, 4
mov ebp, ebp
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.101179ba
add esp, 0x238
ret