Function at 0x8988a2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ecx + 8]
mov eax, edx
push esi
push edi
mov dword [ebp - 0x28], eax
mov edi, dword [eax]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ebx
mov al, byte [edi]
cmp al, 0x35
je 0x898b9a
cmp al, 0x2d
je 0x898b9a
cmp al, 0x32
jne 0x8988e7
mov esi, dword [ebp + 0x14]
mov ecx, ebx
push esi
push 0
push 0x46
pop edx
call fcn.0086b177
pop ecx
jmp 0x898ba7
mov ebx, dword [ebp + 8]
and dword [ebp - 0xc], 0
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebx + 0x40]
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x30], ebx
test dword [ebx + 0x24], 0x400
jne 0x898928
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x898928
mov eax, dword [eax + 0x1c]
cmp byte [ecx + eax], 0
je 0x898928
xor edx, edx
cmp dword [ebp + 0x10], edx
sete dl
mov dword [ebp - 8], edx
jmp 0x89892e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov esi, dword [ebp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x89894e
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x898949
cmp dword [edx], edi
je 0x898ba8
inc eax
cmp eax, ecx
jl 0x898937
movzx edx, word [ebx + 0x28]
cmp ecx, edx
jge 0x898981
mov eax, dword [ebx + 0x30]
sub edx, ecx
mov ebx, dword [ebp - 0xc]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
lea ecx, [ebx + 1]
lea esi, [esi + 4]
cmp dword [eax], edi
cmovne ecx, ebx
mov ebx, ecx
sub edx, 1
jne 0x898961
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x30]
test dword [edi + 4], 0x800
je 0x898a07
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
cmp dword [eax], 1
je 0x898a07
mov eax, dword [ebp - 0x10]
mov edx, ecx
push edi
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call fcn.00898774
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp byte [ecx + 0x49], 0
jne 0x8989f3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
shl eax, 2
push 0
push eax
call fcn.00853ec0
mov edx, dword [ebp - 0x18]
mov ecx, edi
push eax
push 0
push 4
mov dword [ebp - 0x1c], eax
call fcn.0087a207
mov edi, dword [ebp - 0x28]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [edi]
mov eax, dword [eax + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x18]
jmp 0x8989f6
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, eax
call fcn.008793d7
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
jmp 0x898a1d
mov ecx, dword [ebp - 0x10]
mov edx, edi
push 0
push 0
push 4
call fcn.0087a207
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp eax, 4
jne 0x898a2f
xor eax, eax
cmp dword [ebp - 8], eax
sete al
mov dword [ebp - 8], eax
jmp 0x898a32
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0x1c]
test eax, eax
push 0
push ecx
push 0x25
pop edx
mov dword [ebp - 0x20], ecx
push 0x21
pop ecx
cmovne edx, ecx
mov ecx, dword [ebp - 4]
call fcn.0086b177
or dword [ebx + 0x24], 0x800
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x898a6e
mov ecx, dword [ebp - 4]
call fcn.0086b3bd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x30], eax
add eax, dword [ebp - 0xc]
mov dword [ecx + 0x38], eax
imul eax, eax, 0xc
push 0
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.0085405d
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [eax + 0x3c], edx
test edx, edx
je 0x898b87
imul eax, dword [ebp - 0x30], 0xc
mov ecx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebx + 0x28]
cmp ecx, eax
jge 0x898b8b
lea eax, [edx + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], eax
mov edx, esi
mov eax, ecx
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, ecx
sub eax, esi
mov esi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax]
cmp dword [eax], edi
jne 0x898b69
cmp dword [ebp - 0x14], 1
jne 0x898b00
mov ecx, dword [ebp - 4]
push edx
push dword [ebp - 0x20]
push 0x7d
pop edx
call fcn.0086b177
pop ecx
pop ecx
jmp 0x898b28
cmp dword [ebp - 0x1c], 0
je 0x898b13
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x2c], ecx
jmp 0x898b15
xor eax, eax
mov ecx, dword [ebp - 4]
push edx
push eax
push dword [ebp - 0x20]
push 0x62
pop edx
call fcn.0086b0f3
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x32
mov dword [ecx - 4], eax
mov ecx, dword [ebp - 4]
pop edx
call fcn.0086b163
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
pop ecx
cmp eax, esi
jne 0x898b5d
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 0x20]
mov dword [edx - 8], eax
sete al
add al, 4
mov byte [edx], al
jmp 0x898b60
mov byte [edx], 0xa9
add edx, 0xc
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x24], 4
inc edx
mov ecx, dword [ebp - 0x30]
movzx eax, word [ebx + 0x28]
add ecx, edx
mov dword [ebp - 0x18], edx
cmp ecx, eax
jl 0x898ad6
mov esi, dword [ebp + 0x14]
jmp 0x898b8b
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call fcn.00853d0a
jmp 0x898ba8
push dword [ebp + 0x14]
mov edx, dword [edi + 0x10]
call fcn.0087b6e9
mov esi, eax
pop ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
call fcn.00898661
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret