Function at 0x40c930
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.0040c850
mov edi, eax
test edi, edi
jne 0x40c9ce
xor ecx, ecx
call fcn.0040c4f0
mov esi, eax
test esi, esi
je 0x40c9bb
cmp dword [esi], 1
ja 0x40c9bb
lea eax, [ebp - 0x28]
push eax
call fcn.0041d99f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
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.0040c600
add esp, 0x20
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3ed
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 0x40ca6e
xor ecx, ecx
call fcn.0040c4f0
mov esi, eax
test esi, esi
je 0x40cb7d
cmp dword [esi], 3
ja 0x40cb7d
lea eax, [ebp - 0x28]
push eax
call fcn.0041d99f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
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.0040c600
add esp, 0x24
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3ed
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 0x40cb0a
call fcn.0040c4f0
mov edi, eax
test edi, edi
je 0x40caf0
cmp dword [edi], 1
ja 0x40caf0
lea eax, [ebp - 0x28]
push eax
call fcn.0041d99f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
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.0040c600
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.0041c3ed
mov esp, ebp
pop ebp
ret
call fcn.0040c4f0
mov edi, eax
test edi, edi
je 0x40cb76
cmp dword [edi], 1
ja 0x40cb76
lea eax, [ebp - 0x28]
push eax
call fcn.0041d99f
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
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.0040c600
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.0041c3ed
mov esp, ebp
pop ebp
ret