Function at 0x8724a2
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 0x87279a
cmp al, 0x2d
je 0x87279a
cmp al, 0x32
jne 0x8724e7
mov esi, dword [ebp + 0x14]
mov ecx, ebx
push esi
push 0
push 0x46
pop edx
call fcn.00844d77
pop ecx
jmp 0x8727a7
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 0x872528
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x872528
mov eax, dword [eax + 0x1c]
cmp byte [ecx + eax], 0
je 0x872528
xor edx, edx
cmp dword [ebp + 0x10], edx
sete dl
mov dword [ebp - 8], edx
jmp 0x87252e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov esi, dword [ebp + 0x14]
xor eax, eax
test ecx, ecx
jle 0x87254e
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x872549
cmp dword [edx], edi
je 0x8727a8
inc eax
cmp eax, ecx
jl 0x872537
movzx edx, word [ebx + 0x28]
cmp ecx, edx
jge 0x872581
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 0x872561
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 0x872607
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
cmp dword [eax], 1
je 0x872607
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.00872374
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp byte [ecx + 0x49], 0
jne 0x8725f3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
shl eax, 2
push 0
push eax
call fcn.0082dac0
mov edx, dword [ebp - 0x18]
mov ecx, edi
push eax
push 0
push 4
mov dword [ebp - 0x1c], eax
call fcn.00853e07
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 0x8725f6
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, eax
call fcn.00852fd7
mov edi, dword [edi]
mov eax, dword [ebp - 0x14]
jmp 0x87261d
mov ecx, dword [ebp - 0x10]
mov edx, edi
push 0
push 0
push 4
call fcn.00853e07
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp eax, 4
jne 0x87262f
xor eax, eax
cmp dword [ebp - 8], eax
sete al
mov dword [ebp - 8], eax
jmp 0x872632
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.00844d77
or dword [ebx + 0x24], 0x800
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
jne 0x87266e
mov ecx, dword [ebp - 4]
call fcn.00844fbd
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.0082dc5d
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov dword [eax + 0x3c], edx
test edx, edx
je 0x872787
imul eax, dword [ebp - 0x30], 0xc
mov ecx, dword [ebp + 0xc]
add edx, eax
movzx eax, word [ebx + 0x28]
cmp ecx, eax
jge 0x87278b
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 0x872769
cmp dword [ebp - 0x14], 1
jne 0x872700
mov ecx, dword [ebp - 4]
push edx
push dword [ebp - 0x20]
push 0x7d
pop edx
call fcn.00844d77
pop ecx
pop ecx
jmp 0x872728
cmp dword [ebp - 0x1c], 0
je 0x872713
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x2c], ecx
jmp 0x872715
xor eax, eax
mov ecx, dword [ebp - 4]
push edx
push eax
push dword [ebp - 0x20]
push 0x62
pop edx
call fcn.00844cf3
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.00844d63
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
pop ecx
cmp eax, esi
jne 0x87275d
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 0x872760
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 0x8726d6
mov esi, dword [ebp + 0x14]
jmp 0x87278b
and dword [eax + 0x38], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call fcn.0082d90a
jmp 0x8727a8
push dword [ebp + 0x14]
mov edx, dword [edi + 0x10]
call fcn.008552e9
mov esi, eax
pop ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
call fcn.00872261
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret