Function at 0x8695fa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x1c], edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov esi, dword [ebx + 8]
mov ecx, esi
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
call fcn.00844fbd
mov dword [ebp - 0x28], eax
xor edx, edx
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov ebx, dword [eax + 4]
movzx ecx, byte [eax]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [edi + 0x10], edx
je 0x86967b
push dword [edi + 0x10]
mov ecx, esi
push dword [edi + 0xc]
push 0xe
pop edx
call fcn.00844d77
mov edx, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, esi
call fcn.00844d8c
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.00844fff
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov edi, dword [edi + 8]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
cmp ecx, 9
je 0x8696a8
cmp ecx, 0xd
je 0x8696a8
cmp ecx, 0xa
je 0x8696a8
mov ecx, ebx
call fcn.00857103
mov edx, edi
mov dword [ebp - 8], eax
call fcn.00857165
xor edx, edx
jmp 0x8696ae
mov eax, dword [eax + 8]
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
sub eax, dword [ecx + 4]
test byte [ecx + 0x1c], 1
mov dword [ebp - 0x34], eax
je 0x869759
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x14], eax
inc eax
mov dword [ebx + 0x28], eax
cmp dword [ecx + 0x10], edx
je 0x8696ee
push 0x14
pop edx
mov ecx, esi
call fcn.00844d55
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x34]
inc ecx
add ecx, edi
push ecx
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0x14]
push 0x71
pop edx
call fcn.00844cf3
mov eax, dword [ebp - 0x2c]
add esp, 0xc
test eax, eax
je 0x869718
mov edx, eax
mov ecx, esi
call fcn.00845298
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x10]
push 0x23
pop edx
call fcn.00844d77
push dword [ebp - 0x28]
inc eax
mov ecx, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
call fcn.00868d04
add esp, 0xc
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x10]
push 0x7b
pop edx
call fcn.00844cf3
add esp, 0xc
xor ecx, ecx
jmp 0x869789
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x10]
push 0x24
pop edx
call fcn.00844d77
push dword [ebp - 0x28]
inc eax
mov ecx, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
call fcn.00868d04
mov eax, dword [ebp - 0x10]
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x14], eax
inc ecx
mov edx, dword [ebp - 0x34]
dec edx
add edx, ecx
mov dword [ebp - 0x1c], edx
test edi, edi
jle 0x8697bb
mov ebx, dword [ebp - 0x38]
add ebx, 0x14
movzx eax, word [ebx]
lea ecx, [edx + 1]
test ax, ax
lea ebx, [ebx + 0x18]
cmovne ecx, edx
mov edx, ecx
sub edi, 1
jne 0x86979c
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
lea eax, [edi - 1]
mov dword [ebp - 0x34], eax
test eax, eax
js 0x869817
mov ecx, dword [ebp - 0x38]
mov ebx, eax
mov edi, dword [ebp - 4]
add ecx, 0x14
imul eax, ebx, 0x18
add eax, ecx
mov dword [ebp - 0x38], eax
movzx eax, word [eax]
test ax, ax
je 0x8697e5
lea ecx, [eax - 1]
jmp 0x8697eb
mov ecx, edx
dec edx
mov dword [ebp - 0x1c], edx
lea eax, [ebx + edi]
push eax
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push 0x62
pop edx
call fcn.00844cf3
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
sub eax, 0x18
sub ebx, 1
mov dword [ebp - 0x38], eax
jns 0x8697d8
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, ecx
sub eax, 0xa
je 0x8698e4
sub eax, 1
je 0x8698a1
sub eax, 1
je 0x86986f
dec eax
sub eax, 1
je 0x86986f
mov eax, dword [ebp + 0x10]
cmp ecx, 9
mov ecx, esi
jne 0x869861
push edi
push dword [eax + 8]
push 0x4e
pop edx
call fcn.00844d77
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push edi
mov edx, dword [eax + 8]
call fcn.00855214
add esp, 0xc
jmp 0x8698e1
push dword [eax + 4]
push 0x10
pop edx
call fcn.00844d63
pop ecx
jmp 0x8698e1
push dword [ebp - 8]
mov ecx, esi
push dword [ebp - 0x24]
push 0x75
pop edx
call fcn.00844d77
push dword [ebp - 8]
mov ecx, esi
push dword [ebp - 4]
push dword [ebp - 0x24]
push 0x76
pop edx
call fcn.00844cf3
add esp, 0x14
mov ecx, esi
push 8
pop edx
call fcn.00845280
jmp 0x8698e1
mov eax, dword [ebp + 0x10]
mov ecx, esi
push edi
push dword [eax + 0x10]
push dword [ebp - 8]
push edi
push dword [ebp - 4]
push 0x65
pop edx
call fcn.00844e3d
mov edx, dword [ebp - 4]
add esp, 0x14
mov ecx, ebx
push edi
call fcn.00855214
pop ecx
push edi
push dword [ebp - 4]
mov edx, 0x81
mov ecx, esi
push dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.00844f6e
add esp, 0x10
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], 0
je 0x86990c
mov edx, dword [ebp - 4]
cmp ecx, 0xb
mov ecx, ebx
jne 0x8698fd
push edi
call fcn.0085719b
pop ecx
jmp 0x869902
call fcn.00857122
mov edx, dword [ebp - 8]
mov ecx, ebx
call fcn.00857122
mov edx, dword [ebp - 0x28]
mov ecx, esi
call fcn.00844fff
mov edi, dword [ebp + 8]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
test byte [edi + 0x1c], 1
je 0x869929
push 3
jmp 0x86992b
push 7
pop edx
call fcn.00844d77
cmp dword [edi + 0xc], 0
pop ecx
pop ecx
je 0x869947
push dword [edi + 0xc]
mov ecx, esi
push 0x3f
pop edx
call fcn.00844d63
pop ecx
mov edx, dword [ebp - 0x18]
mov ecx, esi
call fcn.00844fff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret