Function at 0x5cf2e7
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 0x5cf30d
cmp dword [ebp + 0x10], 0
je 0x5cf68c
mov ebx, dword [esi + 0x1b0]
test ebx, ebx
je 0x5cf68c
cmp byte [edi + 0x99], 0
je 0x5cf335
mov eax, dword [edi + 0x94]
mov dword [ebx + 0x1c], eax
cmp eax, 1
jne 0x5cf335
or dword [ebx + 0x24], eax
test byte [ebp + 0xc], 0x20
je 0x5cf377
mov eax, dword [ebx + 0x24]
test al, 8
je 0x5cf354
push 0x4ac184
push esi
call fcn.005a4527
pop ecx
pop ecx
jmp 0x5cf68c
test al, 4
jne 0x5cf36a
push dword [ebx]
push 0x4ac1b8
push esi
call fcn.005a4527
add esp, 0xc
jmp 0x5cf377
or eax, 0x60
mov edx, ebx
mov dword [ebx + 0x24], eax
call fcn.005cefe6
mov edx, dword [ebx + 0x48]
mov ecx, edi
call fcn.005dbc8a
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0xc], eax
je 0x5cf39d
push dword [ebx + 0x18]
mov edx, ebx
mov ecx, esi
push 0
push 4
call fcn.005c67db
add esp, 0xc
mov ecx, ebx
call fcn.005cef29
mov eax, dword [ebx + 8]
test eax, eax
je 0x5cf3be
mov edi, eax
mov ecx, edi
call fcn.005cef6a
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x5cf3ad
mov edi, dword [ebp - 0x14]
cmp byte [edi + 0x99], 0
jne 0x5cf63e
mov ecx, esi
call fcn.005ddf3f
mov dword [ebp - 8], eax
test eax, eax
je 0x5cf68c
push 0
push 0x70
pop edx
mov ecx, eax
call fcn.005b917e
cmp dword [ebx + 0xc], 0
pop ecx
jne 0x5cf400
mov dword [ebp - 0x20], 0x4a4a74
mov dword [ebp - 0x1c], 0x4a452c
jmp 0x5cf40e
mov dword [ebp - 0x20], 0x4ac1d8
mov dword [ebp - 0x1c], 0x4a4598
cmp dword [ebp + 0x10], 0
je 0x5cf572
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.005d17a3
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push dword [esi + 0x64]
push 1
push 0x69
pop edx
call fcn.005b910e
mov ecx, dword [ebp - 8]
add esp, 0xc
push 0x10
pop edx
call fcn.005b962b
mov dword [esi + 0x28], 2
call fcn.005b950e
lea esi, [eax + 1]
push esi
push 0
push edi
push 0xf
pop edx
call fcn.005b910e
add esp, 0xc
lea ecx, [ebp - 0x3c]
push edi
push 0xd
pop edx
call fcn.005dc33f
mov edx, dword [ebp + 0x10]
add esp, 4
mov eax, ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.005e0d7b
pop ecx
mov ecx, dword [ebp - 8]
mov edx, edi
call fcn.005b9341
lea edx, [esi - 1]
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.005b9643
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x24], 0
jne 0x5cf68c
mov edx, dword [ebp + 0x10]
mov ecx, eax
call fcn.005dde5b
test eax, eax
je 0x5cf68c
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.005ce069
push dword [ebp - 0x38]
mov ecx, esi
push 0x10
pop edx
call fcn.005b917e
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.005b910e
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, ebx
push 0
call fcn.005d62ef
pop ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
push 1
push 0x73
pop edx
call fcn.005b9192
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x1c]
push 1
push 0x74
pop edx
call fcn.005b910e
mov ecx, dword [ebp - 8]
add esp, 0x14
mov edx, esi
call fcn.005b91a7
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.005b9643
mov ecx, dword [ebp - 8]
push 1
push 0x70
pop edx
call fcn.005b917e
pop ecx
mov edx, ebx
mov ecx, edi
call fcn.005ced26
mov esi, dword [ebp - 0x10]
jmp 0x5cf5ac
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 0x5cf594
add ecx, dword [edx + 4]
push dword [esi + 0x17c]
push ecx
push dword [ebp - 0x1c]
push 0x4ac1e0
push edi
call fcn.005a39bd
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.005cdabe
mov edx, dword [ebp - 0x1c]
add esp, 0x28
mov ecx, edi
call fcn.005a2404
mov edx, dword [ebp - 0xc]
mov ecx, esi
call fcn.005cec4c
test byte [ebx + 0x24], 8
je 0x5cf618
mov ecx, dword [edi + 0x10]
add ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x5cf618
push dword [ecx]
push 0x4ac248
push esi
call fcn.005cdabe
add esp, 0xc
push dword [ebx]
push 0x4ac274
push edi
call fcn.005a39bd
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
push eax
call fcn.005b92d3
cmp byte [edi + 0x99], 0
pop ecx
je 0x5cf68c
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx]
push ebx
lea ecx, [ecx + 8]
call fcn.005a59a7
pop ecx
test eax, eax
je 0x5cf65a
mov ecx, edi
call fcn.005a2832
jmp 0x5cf68c
xor edx, edx
mov dword [esi + 0x1b0], edx
or dword [edi + 0x18], 0x800000
cmp dword [ebx + 0xc], edx
jne 0x5cf68c
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.005a4322
add eax, 0xd
mov dword [ebx + 0x34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret