Function at 0x65f2e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [esi]
mov dword [ebp - 0x14], edi
jne 0x65f30d
cmp dword [ebp + 0x10], 0
je 0x65f68c
mov ebx, dword [esi + 0x1b0]
test ebx, ebx
je 0x65f68c
cmp byte [edi + 0x99], 0
je 0x65f335
mov eax, dword [edi + 0x94]
mov dword [ebx + 0x1c], eax
cmp eax, 1
jne 0x65f335
or dword [ebx + 0x24], eax
test byte [ebp + 0xc], 0x20
je 0x65f377
mov eax, dword [ebx + 0x24]
test al, 8
je 0x65f354
push 0x4ac184
push esi
call fcn.00634527
pop ecx
pop ecx
jmp 0x65f68c
test al, 4
jne 0x65f36a
push dword [ebx]
push 0x4ac1b8
push esi
call fcn.00634527
add esp, 0xc
jmp 0x65f377
or eax, 0x60
mov edx, ebx
mov dword [ebx + 0x24], eax
call fcn.0065efe6
mov edx, dword [ebx + 0x48]
mov ecx, edi
call fcn.0066bc8a
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0xc], eax
je 0x65f39d
push dword [ebx + 0x18]
mov edx, ebx
mov ecx, esi
push 0
push 4
call fcn.006567db
add esp, 0xc
mov ecx, ebx
call fcn.0065ef29
mov eax, dword [ebx + 8]
test eax, eax
je 0x65f3be
mov edi, eax
mov ecx, edi
call fcn.0065ef6a
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x65f3ad
mov edi, dword [ebp - 0x14]
cmp byte [edi + 0x99], 0
jne 0x65f63e
mov ecx, esi
call fcn.0066df3f
mov dword [ebp - 8], eax
test eax, eax
je 0x65f68c
push 0
push 0x70
pop edx
mov ecx, eax
call fcn.0064917e
cmp dword [ebx + 0xc], 0
pop ecx
jne 0x65f400
mov dword [ebp - 0x20], 0x4a4a74
mov dword [ebp - 0x1c], 0x4a452c
jmp 0x65f40e
mov dword [ebp - 0x20], 0x4ac1d8
mov dword [ebp - 0x1c], 0x4a4598
cmp dword [ebp + 0x10], 0
je 0x65f572
inc dword [esi + 0x2c]
mov ecx, esi
mov edi, dword [esi + 0x2c]
lea eax, [edi + 1]
mov dword [ebp - 0x1c], eax
inc eax
mov dword [ebp - 0x18], eax
mov dword [esi + 0x2c], eax
call fcn.006617a3
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push dword [esi + 0x64]
push 1
push 0x69
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 8]
add esp, 0xc
push 0x10
pop edx
call fcn.0064962b
mov dword [esi + 0x28], 2
call fcn.0064950e
lea esi, [eax + 1]
push esi
push 0
push edi
push 0xf
pop edx
call fcn.0064910e
add esp, 0xc
lea ecx, [ebp - 0x3c]
push edi
push 0xd
pop edx
call fcn.0066c33f
mov edx, dword [ebp + 0x10]
add esp, 4
mov eax, ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00670d7b
pop ecx
mov ecx, dword [ebp - 8]
mov edx, edi
call fcn.00649341
lea edx, [esi - 1]
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00649643
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x24], 0
jne 0x65f68c
mov edx, dword [ebp + 0x10]
mov ecx, eax
call fcn.0066de5b
test eax, eax
je 0x65f68c
mov cx, word [eax + 0x2a]
mov edx, eax
mov edi, dword [ebp - 0x14]
mov word [ebx + 0x2a], cx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
xor ecx, ecx
and dword [eax + 4], ecx
mov word [eax + 0x2a], cx
mov ecx, edi
call fcn.0065e069
push dword [ebp - 0x38]
mov ecx, esi
push 0x10
pop edx
call fcn.0064917e
pop ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0x63
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, ebx
push 0
call fcn.006662ef
pop ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
push 1
push 0x73
pop edx
call fcn.00649192
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x1c]
push 1
push 0x74
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 8]
add esp, 0x14
mov edx, esi
call fcn.006491a7
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.00649643
mov ecx, dword [ebp - 8]
push 1
push 0x70
pop edx
call fcn.0064917e
pop ecx
mov edx, ebx
mov ecx, edi
call fcn.0065ed26
mov esi, dword [ebp - 0x10]
jmp 0x65f5ac
cmp byte [ebp + 0xc], 0
lea eax, [esi + 0x184]
mov edx, dword [ebp + 8]
cmovne edx, eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [esi + 0x17c]
cmp byte [eax], 0x3b
je 0x65f594
add ecx, dword [edx + 4]
push dword [esi + 0x17c]
push ecx
push dword [ebp - 0x1c]
push 0x4ac1e0
push edi
call fcn.006339bd
add esp, 0x14
push dword [esi + 0x60]
mov ecx, dword [ebp - 0xc]
push eax
push dword [esi + 0x64]
mov dword [ebp - 0x1c], eax
push dword [ebx]
mov eax, dword [edi + 0x10]
push dword [ebx]
shl ecx, 4
push dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
push 0x4a4dec
push dword [ecx + eax]
push 0x4ac1f0
push esi
call fcn.0065dabe
mov edx, dword [ebp - 0x1c]
add esp, 0x28
mov ecx, edi
call fcn.00632404
mov edx, dword [ebp - 0xc]
mov ecx, esi
call fcn.0065ec4c
test byte [ebx + 0x24], 8
je 0x65f618
mov ecx, dword [edi + 0x10]
add ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x65f618
push dword [ecx]
push 0x4ac248
push esi
call fcn.0065dabe
add esp, 0xc
push dword [ebx]
push 0x4ac274
push edi
call fcn.006339bd
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
push eax
call fcn.006492d3
cmp byte [edi + 0x99], 0
pop ecx
je 0x65f68c
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx]
push ebx
lea ecx, [ecx + 8]
call fcn.006359a7
pop ecx
test eax, eax
je 0x65f65a
mov ecx, edi
call fcn.00632832
jmp 0x65f68c
xor edx, edx
mov dword [esi + 0x1b0], edx
or dword [edi + 0x18], 0x800000
cmp dword [ebx + 0xc], edx
jne 0x65f68c
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x17c]
cmp dword [eax], edx
cmove eax, dword [ebp + 8]
mov edx, dword [eax]
sub edx, ecx
call fcn.00634322
add eax, 0xd
mov dword [ebx + 0x34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret