Function at 0x8689f7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ecx + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
movzx edx, byte [edi + 0x1c]
mov eax, dword [edi]
not edx
and edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [eax]
add edx, eax
add edx, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
je 0x868a3f
mov esi, dword [ebp + 0xc]
sub esi, dword [ebp + 0x18]
jmp 0x868a4a
mov eax, dword [ecx + 0x2c]
lea esi, [eax + 1]
add eax, edx
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x868a5c
lea eax, [ecx + 1]
jmp 0x868a5f
mov eax, dword [eax + 0xc]
mov ecx, ebx
mov dword [ebp - 0x1c], eax
call fcn.00844fbd
cmp dword [ebp + 0x10], 0
mov edx, dword [edi]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x18], eax
setne al
lea eax, [eax*4 + 1]
push eax
push dword [ebp + 0x10]
push esi
call fcn.008560fd
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x868aab
mov eax, dword [ebp - 0xc]
mov ecx, ebx
add eax, esi
push eax
push dword [edi + 8]
push 0x74
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
cmp dword [ebp + 0x18], 0
jne 0x868ace
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x868ace
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
add eax, esi
add eax, ecx
mov ecx, dword [ebp - 4]
push eax
call fcn.0085521d
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
jle 0x868c3d
push dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, edi
push esi
push dword [ebp + 8]
call fcn.008689b2
mov dword [ebp - 0x10], eax
add esp, 0xc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
lea ecx, [edx + 1]
mov dword [ebp + 0x10], ecx
mov ecx, dword [edi + 4]
add ecx, edx
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov edx, ecx
sub edx, dword [edi + 4]
mov eax, dword [ebp - 0x18]
add edx, eax
mov dword [ebp - 0x18], edx
test eax, eax
je 0x868b1f
lea eax, [esi + ecx]
push eax
push 0x16
jmp 0x868b24
push dword [edi + 8]
push 0x70
pop edx
mov ecx, ebx
call fcn.00844d63
pop ecx
push dword [edi + 4]
mov ecx, ebx
mov dword [ebp + 0x18], eax
push esi
push dword [ebp + 0x10]
push 0x54
pop edx
call fcn.00844cf3
mov edx, dword [edi + 0x14]
add esp, 0xc
mov ecx, ebx
call fcn.0084556a
mov edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax]
cmp byte [ecx + 0x49], 0
jne 0x868cfd
mov esi, dword [edx + 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0x14]
mov dword [edx + 8], ecx
movzx eax, word [esi + 6]
push eax
push 0
push dword [esi + 0x10]
call fcn.008856c0
add esp, 0xc
or edx, 0xffffffff
mov ecx, ebx
push 0xfffffffffffffff7
push esi
call fcn.008454a2
movzx ecx, word [esi + 8]
movzx eax, word [esi + 6]
mov esi, dword [ebp - 4]
sub ecx, eax
mov edx, dword [edi]
dec ecx
push ecx
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0086953c
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x10], eax
mov ecx, ebx
call fcn.00845161
mov dword [ebp + 0x14], eax
lea ecx, [eax + 1]
push ecx
push 0
push ecx
push 0x12
pop edx
mov ecx, ebx
call fcn.00844cf3
add esp, 0x1c
mov ecx, ebx
call fcn.00844fbd
mov dword [edi + 0x10], eax
mov ecx, ebx
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
push eax
push 0xe
pop edx
call fcn.00844d77
push dword [edi + 8]
mov edx, 0x88
mov ecx, ebx
call fcn.00844d63
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x868c17
push dword [edi + 0x18]
mov ecx, ebx
push eax
push 0x16
pop edx
call fcn.00844d77
pop ecx
pop ecx
mov edx, dword [ebp + 0x18]
mov ecx, ebx
call fcn.00845298
push dword [edi + 4]
mov edx, dword [ebp - 8]
mov ecx, esi
push dword [ebp + 0x10]
call fcn.0085521d
mov edx, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, ebx
call fcn.00845298
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x868c94
mov esi, dword [edi + 8]
mov ecx, ebx
call fcn.00845161
add eax, 4
push eax
push edx
push 0x31
pop edx
call fcn.00844d77
push 0
push esi
push 0x21
pop edx
mov ecx, ebx
call fcn.00844d77
mov eax, dword [ebp - 0xc]
mov ecx, ebx
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
push eax
push 0
push esi
push 0x26
pop edx
call fcn.00844f6e
push esi
push 0x78
pop edx
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.00844d63
add esp, 0x24
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x868cb6
push dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov edx, edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.008689b2
add esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, eax
mov eax, dword [ebp - 0x20]
mov ecx, ebx
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
push eax
push edx
mov dl, byte [edi + 0x1c]
push dword [edi + 8]
not dl
and edx, 1
or edx, 0x80
call fcn.00844f6e
mov esi, dword [ebp - 0x24]
add esp, 0x10
test esi, esi
je 0x868cfd
mov ecx, ebx
call fcn.00845161
movzx edx, byte [edi + 0x1d]
add eax, edx
mov edx, esi
push eax
call fcn.00845260
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret