Function at 0x887127
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edi
call fcn.008903a5
mov esi, eax
mov eax, dword [edi + 0x28]
dec eax
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.0086b3bd
cmp dword [ebp + 0x1c], 0
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jge 0x88716b
movzx ecx, byte [ebx + 0x18]
push eax
push ecx
push 0x2f
pop edx
mov ecx, esi
call fcn.0086b177
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x14], eax
jle 0x8871a1
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push edi
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x18]
inc ecx
add eax, ecx
mov ecx, esi
push eax
push 0x32
pop edx
call fcn.0086b177
mov eax, dword [ebp - 0x14]
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0x14]
jl 0x887178
mov edi, dword [ebp - 0xc]
cmp dword [ebp + 0x20], 0
jne 0x8873c7
cmp dword [ebp + 0xc], 0
mov ecx, edi
jne 0x887277
call fcn.0087d503
push eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x18]
inc eax
add ecx, eax
push ecx
push 0x4c
pop edx
mov ecx, esi
call fcn.0086b177
push 0
push dword [ebp + 0x10]
mov ecx, esi
push 0x11
pop edx
call fcn.0086b177
mov dword [ebp + 0x20], eax
add esp, 0x10
mov eax, dword [ebp + 8]
cmp eax, dword [ebx]
jne 0x88721d
cmp dword [ebp + 0x1c], 1
jne 0x88721d
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp - 4]
push dword [ebp + 0x18]
push 0x35
pop edx
call fcn.0086b0f3
add esp, 0xc
mov edx, 0x90
mov ecx, esi
call fcn.0086b680
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, edi
push 0x6a
push eax
push dword [ebp - 0x18]
call fcn.0088842c
add esp, 0xc
mov ecx, esi
push dword [ebp + 0x10]
push 0
push dword [ebp - 8]
push 0x20
pop edx
call fcn.0086b0f3
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, esi
call fcn.0086b18c
mov ecx, esi
call fcn.0086b561
lea edx, [eax - 2]
call fcn.0086b698
mov edx, dword [ebp + 0x20]
mov ecx, esi
call fcn.0086b698
mov edx, dword [ebp + 0x10]
mov ecx, edi
call fcn.0087d522
jmp 0x8873c7
mov eax, dword [ebx + 0x14]
mov edx, eax
mov dword [ebp + 0x20], eax
call fcn.0087d565
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.0087d503
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
push dword [eax + 0x2c]
push dword [ebp - 8]
push 0x6a
pop edx
call fcn.0086b0f3
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edi
call fcn.0086b94f
and dword [ebp - 0x18], 0
mov edx, dword [ebp + 0x20]
test edx, edx
jle 0x8872f1
mov ebx, dword [ebp - 0x18]
mov edi, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
add eax, ebx
push eax
mov eax, dword [ebp + 0x14]
inc ecx
mov eax, dword [eax + ebx*4]
add eax, ecx
mov ecx, esi
push eax
push 0x4b
pop edx
call fcn.0086b177
inc ebx
pop ecx
pop ecx
cmp ebx, edi
jl 0x8872c4
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
cmp eax, dword [ebx]
jne 0x887374
cmp dword [ebp + 0x1c], 1
jne 0x887374
mov ecx, esi
call fcn.0086b561
inc eax
xor ecx, ecx
add eax, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
test edx, edx
jle 0x88736a
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
lea edx, [edi + 1]
mov ebx, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
add edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
movzx ecx, word [eax + ecx*2]
movsx eax, cx
inc eax
add eax, edi
cmp cx, word [ebx + 0x28]
mov ecx, esi
cmove eax, edi
push eax
push dword [ebp - 0x1c]
push edx
push 0x34
pop edx
call fcn.0086b0f3
add esp, 0xc
mov ecx, esi
push 0x10
pop edx
call fcn.0086b680
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp + 0x20]
jl 0x887317
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.0086b18c
push dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [edi]
call fcn.008884b2
pop ecx
push eax
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp + 0x20]
push dword [ebp - 0x14]
push 0x65
pop edx
call fcn.0086b23d
add esp, 0x14
mov ecx, esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x1e
pop edx
call fcn.0086b36e
mov edx, dword [ebp - 0x10]
mov ecx, edi
call fcn.0087d522
push dword [ebp + 0x20]
mov edx, dword [ebp - 0x14]
call fcn.0087d59b
add esp, 0x14
mov cl, byte [ebx + 0x18]
test cl, cl
jne 0x8873fd
mov eax, dword [edi]
test dword [eax + 0x1c], 0x80000
jne 0x8873fd
cmp dword [edi + 0x78], 0
jne 0x8873fd
cmp byte [edi + 0x14], cl
jne 0x8873fd
push 4
push 0xffffffffffffffff
push 0
push 2
mov edx, 0x313
mov ecx, edi
call fcn.00883912
add esp, 0x10
jmp 0x887424
cmp dword [ebp + 0x1c], 0
jle 0x88740e
test cl, cl
jne 0x88740e
mov ecx, edi
call fcn.00883905
push dword [ebp + 0x1c]
movzx eax, byte [ebx + 0x18]
mov edx, 0x93
push eax
mov ecx, esi
call fcn.0086b177
pop ecx
pop ecx
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.0086b3ff
push dword [ebp - 8]
push 0x72
pop edx
call fcn.0086b163
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret