Function at 0x87e464
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
xor eax, eax
inc eax
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
inc eax
push ebx
mov dword [ebp + 0x10], eax
inc eax
mov ebx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ebx
inc ebx
mov dword [ebp - 0x10], ebx
inc ebx
mov dword [ebp - 0x3c], ebx
inc ebx
mov dword [ebp - 0x48], ebx
inc ebx
mov dword [ebp - 0x44], ebx
inc ebx
cmp dword [ecx + 0x2c], ebx
mov eax, ebx
push esi
cmovg eax, dword [ecx + 0x2c]
mov esi, edx
push edi
mov dword [ebp - 0x4c], esi
mov dword [ecx + 0x2c], eax
call fcn.008903a5
mov edi, eax
test edi, edi
je 0x87e922
test esi, esi
je 0x87e922
cmp dword [esi + 0x1c], 0
je 0x87e922
push 0x5c
push dword [esi]
push 0x4a4a04
call fcn.00885f68
add esp, 0xc
test eax, eax
je 0x87e922
mov edx, dword [esi + 0x48]
mov ecx, dword [ebp - 0x34]
call fcn.0088e18e
mov ecx, dword [ecx + 0x10]
mov edx, eax
add edx, edx
mov dword [ebp - 0x24], eax
push dword [ecx + edx*8]
mov ecx, dword [ebp - 0xc]
push 0
push dword [esi]
push 0x1c
pop edx
call fcn.0087f84e
add esp, 0xc
test eax, eax
jne 0x87e922
push dword [esi]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
push eax
push dword [esi + 0x1c]
call fcn.0087f8f7
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, eax
inc eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x18], eax
inc eax
push 0x6a
cmp dword [ecx + 0x28], eax
push esi
cmovg eax, dword [ecx + 0x28]
push dword [ebp - 0x24]
mov dword [ecx + 0x28], eax
call fcn.0088842c
mov edx, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, edi
push dword [esi]
call fcn.0086b19d
mov esi, dword [esi + 8]
pop ecx
jmp 0x87e880
cmp dword [ebp + 8], 0
je 0x87e57c
cmp dword [ebp + 8], esi
jne 0x87e87d
movzx eax, byte [ebp - 1]
xor ecx, ecx
cmp dword [esi + 0x24], ecx
cmovne ecx, eax
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x4c]
test byte [ecx + 0x24], 0x20
je 0x87e5a8
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x87e5a8
movzx eax, word [esi + 0x32]
mov ecx, dword [ecx]
mov dword [ebp - 0x38], eax
jmp 0x87e5bb
test byte [esi + 0x38], 8
movzx eax, word [esi + 0x34]
mov ecx, dword [esi]
mov dword [ebp - 0x38], eax
je 0x87e5bb
movzx eax, word [esi + 0x32]
mov edx, dword [ebp - 0x48]
dec eax
push ecx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0086b19d
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp - 0xc]
add eax, ebx
push dword [ebp - 0x24]
cmp dword [ecx + 0x2c], eax
cmovg eax, dword [ecx + 0x2c]
mov dword [ecx + 0x2c], eax
mov ecx, edi
push dword [esi + 0x2c]
push dword [ebp - 0x18]
push 0x6a
pop edx
call fcn.0086b0f3
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, esi
call fcn.0086b94f
push dword [ebp - 0x40]
mov ecx, edi
push dword [ebp - 0x38]
push 0x43
pop edx
call fcn.0086b177
mov eax, dword [ebp + 0x10]
mov ecx, edi
add eax, 2
push eax
movzx eax, word [esi + 0x32]
push eax
push 0x43
pop edx
call fcn.0086b177
push 0xfffffffffffffff8
push 0x49e0c0
push dword [ebp + 0x10]
mov edx, 0xa4
mov ecx, edi
push dword [ebp - 0x40]
push 0
call fcn.0086b23d
add esp, 0x24
mov ecx, edi
push 2
pop edx
call fcn.0086b680
push dword [ebp - 0x18]
push 0x25
pop edx
call fcn.0086b163
pop ecx
push dword [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 0x50], eax
push 0
push 0x43
pop edx
call fcn.0086b177
pop ecx
pop ecx
mov ecx, edi
call fcn.0086b561
cmp dword [ebp - 8], 0
mov dword [ebp - 0x38], eax
jle 0x87e7db
call fcn.0086b3bd
mov ecx, dword [ebp - 8]
shl ecx, 2
push 0
push ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
call fcn.00853f2c
mov dword [ebp - 0x30], eax
pop ecx
pop ecx
test eax, eax
je 0x87e87d
push 0xd
pop edx
mov ecx, edi
call fcn.0086b155
mov ecx, edi
call fcn.0086b561
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
inc ecx
cmp eax, ecx
jne 0x87e6e2
cmp word [esi + 0x32], cx
jne 0x87e6e2
cmp byte [esi + 0x36], 0
je 0x87e6e2
push dword [ebp - 0x2c]
mov ecx, edi
push ebx
push 0x33
pop edx
call fcn.0086b177
mov eax, dword [ebp - 8]
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test eax, eax
jle 0x87e75f
mov edx, dword [esi + 0x20]
mov edx, dword [edx + ecx*4]
mov ecx, dword [ebp - 0xc]
call fcn.00880d4f
push dword [ebp - 0x28]
mov ecx, edi
mov esi, eax
push dword [ebp - 0x14]
push 0x43
pop edx
call fcn.0086b177
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x62
pop edx
call fcn.0086b0f3
add esp, 0x14
mov ecx, edi
push 0xfffffffffffffffe
push esi
mov esi, dword [ebp - 0x14]
lea eax, [esi + ebx]
push eax
push 0
push dword [ebp - 0x10]
push 0x34
pop edx
call fcn.0086b23d
mov ecx, dword [ebp - 0x30]
add esp, 0x14
mov edx, 0x80
mov dword [ecx + esi*4], eax
mov ecx, edi
call fcn.0086b680
mov eax, dword [ebp - 8]
mov ecx, esi
mov esi, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jl 0x87e6eb
push dword [ebp - 0x28]
mov ecx, edi
push eax
push 0x43
pop edx
call fcn.0086b177
mov edx, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, edi
call fcn.0086b18c
mov edx, dword [ebp - 0x38]
mov ecx, edi
lea edx, [edx - 1]
call fcn.0086b698
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], eax
jle 0x87e7c6
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax*4]
mov ecx, edi
call fcn.0086b698
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + ebx]
push eax
push ecx
push dword [ebp - 0x18]
mov ecx, edi
push 0x62
pop edx
call fcn.0086b0f3
mov eax, dword [ebp - 0x14]
add esp, 0xc
inc eax
mov dword [ebp - 0x14], eax
cmp eax, esi
jl 0x87e793
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.0086b3ff
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
call fcn.00853d0a
push 0xfffffffffffffff8
push 0x49fff0
push dword [ebp - 0x10]
xor eax, eax
mov edx, 0xa4
push dword [ebp + 0x10]
inc eax
mov ecx, edi
push eax
call fcn.0086b23d
add esp, 0x14
mov ecx, edi
push 2
pop edx
call fcn.0086b680
push dword [ebp - 0x38]
push dword [ebp - 0x18]
push 7
pop edx
call fcn.0086b177
mov edx, dword [ebp + 0x10]
pop ecx
pop ecx
push dword [ebp - 0x44]
push ecx
mov ecx, edi
call fcn.0087e435
push 0
push 0x4a4a10
push dword [ebp - 0x10]
mov ecx, edi
push 3
push dword [ebp - 0x3c]
push 0x65
pop edx
call fcn.0086b23d
add esp, 0x1c
mov ecx, edi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push 0x75
pop edx
call fcn.0086b177
push dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0x76
pop edx
call fcn.0086b0f3
add esp, 0x14
mov ecx, edi
push 8
pop edx
call fcn.0086b680
mov edx, dword [ebp - 0x50]
call fcn.0086b698
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x87e56d
cmp dword [ebp + 8], 0
jne 0x87e922
mov al, byte [ebp - 1]
test al, al
je 0x87e922
mov ebx, dword [ebp - 0x44]
mov ecx, edi
push ebx
push dword [ebp - 0x54]
push 0x66
pop edx
call fcn.0086b177
push ebx
push 0x16
pop edx
mov ecx, edi
call fcn.0086b163
add esp, 0xc
mov ecx, edi
mov esi, eax
push dword [ebp - 0x48]
push 0
push 0x46
pop edx
call fcn.0086b177
mov ebx, dword [ebp - 0x10]
mov ecx, edi
push 0
push 0x4a4a10
push ebx
push 3
push dword [ebp - 0x3c]
push 0x65
pop edx
call fcn.0086b23d
add esp, 0x1c
mov ecx, edi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push 0x75
pop edx
call fcn.0086b177
push dword [ebp - 0x20]
mov ecx, edi
push ebx
push dword [ebp + 0xc]
push 0x76
pop edx
call fcn.0086b0f3
add esp, 0x14
mov ecx, edi
push 8
pop edx
call fcn.0086b680
mov edx, esi
call fcn.0086b698
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret