Function at 0x420350
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4814a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
lea eax, [ebp - 0x24]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x420392
mov eax, dword [eax]
push esi
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.INFO:_Terminating_process
push 0x48649c
push eax
call fcn.0040e7e0
mov esi, dword [ebp + 8]
push esi
push 0x486544
push eax
call fcn.0040e7e0
push 0x4880a8
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x10]
add esp, 0x34
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4203f7
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00404120
test esi, esi
jne 0x420491
lea eax, [ebp - 0x24]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x420426
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Trying_to_terminate_invalid_process
push 0x48649c
push eax
call fcn.0040e7e0
push esi
push 0x486544
push eax
call fcn.0040e7e0
push 0x4880a8
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x10]
add esp, 0x34
cmp eax, 0x10
jb 0x420480
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00404120
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42064e
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
mov ecx, 0x4a9a88
lea eax, [ebp - 0x24]
push eax
je 0x42053b
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x4204dd
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.INFO:_Process__
push 0x48649c
push eax
call fcn.0040e7e0
push esi
push 0x486544
push eax
call fcn.0040e7e0
push str.__successfully_terminated
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x34
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004058c0
mov ebx, 1
jmp 0x4205bb
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 3
jb 0x420559
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_TerminateProcess_failed_with_error_code__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x486544
push esi
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004058c0
or ebx, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4206dd
lea eax, [ebp - 0x24]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 4
jb 0x4205f1
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_CloseHandle_failed_with_error_code__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x486544
push esi
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x1c
lea ecx, [ebp - 0x24]
call fcn.004058c0
jmp 0x4206dd
lea eax, [ebp - 0x3c]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 5
jb 0x420675
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_OpenProcess_failed_with_error_code__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x486544
push esi
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x28]
add esp, 0x1c
cmp eax, 0x10
jb 0x4206da
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.00404120
or ebx, 0xffffffff
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
cmp ebx, 0xffffffff
mov dword fs:[0], ecx
pop ebx
setne al
pop esi
mov esp, ebp
pop ebp
ret