Function at 0x40c530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x401800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040c450
mov edi, eax
test edi, edi
jne 0x40c5ce
xor ecx, ecx
call fcn.0040c0f0
mov esi, eax
test esi, esi
je 0x40c5bb
cmp dword [esi], 1
ja 0x40c5bb
lea eax, [ebp - 0x28]
push eax
call fcn.0041c85f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041c41d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041c842
movzx eax, word [ebp - 0x20]
add esp, 0x18
push ebx
push 0x4095c8
push eax
lea eax, [ebp - 0x18]
push eax
push 0x40953c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4095e8
push esi
call fcn.0040c200
add esp, 0x20
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b2ad
mov esp, ebp
pop ebp
ret
push dword [edi + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40c66e
xor ecx, ecx
call fcn.0040c0f0
mov esi, eax
test esi, esi
je 0x40c77d
cmp dword [esi], 3
ja 0x40c77d
lea eax, [ebp - 0x28]
push eax
call fcn.0041c85f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041c41d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041c842
movzx eax, word [ebp - 0x20]
add esp, 0x18
push dword [edi + 8]
push ebx
push 0x4095c8
push eax
lea eax, [ebp - 0x18]
push eax
push 0x409544
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x40962c
push esi
call fcn.0040c200
add esp, 0x24
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b2ad
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
mov dword [ebp - 0x50], eax
test eax, eax
je 0x40c70a
call fcn.0040c0f0
mov edi, eax
test edi, edi
je 0x40c6f0
cmp dword [edi], 1
ja 0x40c6f0
lea eax, [ebp - 0x28]
push eax
call fcn.0041c85f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041c41d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041c842
movzx eax, word [ebp - 0x20]
add esp, 0x18
push dword [ebp - 0x50]
push ebx
push 0x4095c8
push eax
lea eax, [ebp - 0x18]
push eax
push 0x40953c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x409668
push edi
call fcn.0040c200
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b2ad
mov esp, ebp
pop ebp
ret
call fcn.0040c0f0
mov edi, eax
test edi, edi
je 0x40c776
cmp dword [edi], 1
ja 0x40c776
lea eax, [ebp - 0x28]
push eax
call fcn.0041c85f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041c41d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041c842
movzx eax, word [ebp - 0x20]
add esp, 0x18
push dword [ebp - 0x50]
push ebx
push 0x4095c8
push eax
lea eax, [ebp - 0x18]
push eax
push 0x40953c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4096a4
push edi
call fcn.0040c200
add esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b2ad
mov esp, ebp
pop ebp
ret