Function at 0x66eaef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax + 8]
mov esi, edx
mov ecx, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
call fcn.0064950e
mov dword [ebp - 0x14], eax
call fcn.0064935e
mov ebx, dword [ebp + 8]
mov ecx, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x66ebac
push eax
push 0x16
pop edx
mov ecx, edi
call fcn.0064917e
mov edi, dword [ebp + 0x14]
mov esi, eax
pop ecx
mov ecx, dword [ebp + 0x18]
inc edi
push 0xfffffffffffffff7
call fcn.0066d3a1
mov ecx, dword [ebp - 8]
push eax
push dword [ebx + 0xc]
push edi
push dword [ebx + 8]
push 0x5e
pop edx
call fcn.00649258
mov ecx, dword [ebp - 8]
add esp, 0x14
add eax, 2
push eax
push dword [ebp - 0xc]
push eax
push 0x12
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, esi
call fcn.00649643
mov eax, dword [ebx + 0xc]
dec eax
push eax
push edi
push dword [ebx + 8]
mov edi, dword [ebp - 8]
mov ecx, edi
push 0x40
pop edx
call fcn.0064910e
add esp, 0xc
mov ecx, edi
push dword [ebp + 0x14]
push 1
push 0x38
pop edx
call fcn.00649192
mov esi, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax + 0x45], 0
je 0x66ebbe
xor eax, eax
jmp 0x66ed55
mov edx, dword [esi + 0x10]
push ecx
mov ecx, edi
call fcn.0066cbeb
mov esi, dword [ebp + 0xc]
pop ecx
movzx eax, byte [esi]
sub eax, 0xa
je 0x66ed0f
dec eax
je 0x66ecb3
dec eax
je 0x66ec46
dec eax
je 0x66ec06
push dword [ebx + 0xc]
mov ecx, edi
push dword [ebx + 8]
push 0x43
pop edx
call fcn.00649192
push dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 4]
call fcn.006596ff
jmp 0x66ec3e
cmp dword [esi + 8], 0
jne 0x66ec20
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0xc]
call fcn.0065b45d
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
push dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push dword [esi + 8]
mov ecx, dword [ebp - 4]
call fcn.00659708
push dword [esi + 4]
mov ecx, edi
push 0x10
pop edx
call fcn.0064917e
add esp, 0xc
jmp 0x66ed21
mov ecx, dword [ebp - 4]
call fcn.0065b3fb
mov edi, eax
call fcn.0065b3fb
push edi
push dword [ebx + 0xc]
mov esi, eax
push dword [ebx + 8]
mov ebx, dword [ebp - 8]
mov ecx, ebx
push 0x63
pop edx
call fcn.0064910e
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, ebx
push esi
push dword [eax + 4]
push 0x73
pop edx
call fcn.00649192
mov eax, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
push dword [eax + 4]
push 0x74
pop edx
call fcn.0064910e
add esp, 0x14
mov ecx, ebx
push 8
pop edx
call fcn.0064962b
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.0065b41a
mov edx, edi
call fcn.0065b41a
mov edi, ebx
jmp 0x66ed21
mov ecx, dword [ebp - 4]
call fcn.0065b3fb
push dword [ebx + 0xc]
mov esi, eax
mov ecx, edi
mov eax, dword [ebp + 0xc]
push dword [eax + 0x10]
push esi
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x63
pop edx
call fcn.00649258
mov edx, dword [ebx + 8]
add esp, 0x14
mov ecx, dword [ebp - 4]
push dword [ebx + 0xc]
call fcn.006596ff
mov eax, dword [ebp + 0xc]
pop ecx
push dword [ebx + 0xc]
mov ecx, edi
push dword [ebx + 8]
push esi
push dword [eax + 4]
push 0x7e
pop edx
call fcn.0064930f
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, esi
call fcn.0065b41a
jmp 0x66ed21
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 4]
push 1
push dword [esi + 4]
call fcn.00659708
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x66ed3c
push dword [ebp + 0x1c]
mov ecx, edi
push dword [eax + 0xc]
push 0x30
pop edx
call fcn.00649192
pop ecx
pop ecx
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.006493a0
push dword [ebp + 0x10]
push 0x34
pop edx
call fcn.0064917e
mov eax, dword [ebp - 0x14]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret