Function at 0x4470e9
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x52f49a
call fcn.004e4785
mov esi, ecx
push ecx
push dword [esi + 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.0045c6c9
xor ebx, ebx
lea ecx, [ebp - 0x38]
push esi
mov dword [ebp - 4], ebx
call fcn.0041ffcf
add esp, 4
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x18]
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x447234
cmp eax, 0xffffffff
je 0x447234
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x447164
call edi
push eax
push str.Subprocess::Cleanup
push str._s___GetExitCodeProcess_failed___d_
push ebx
push ebx
call fcn.0043a05d
add esp, 0x14
jmp 0x447234
cmp dword [ebp - 0x30], 0x103
jne 0x447234
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_AttachConsole]
test eax, eax
je 0x4471bc
push dword [esi + 0x24]
push 1
call dword [sym.imp.KERNEL32.DLL_GenerateConsoleCtrlEvent]
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
mov dword [ebp - 0x34], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push 0xa
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x447234
mov eax, dword [ebp - 0x34]
add eax, 0xa
mov dword [ebp - 0x34], eax
cmp eax, 0x7d0
jl 0x447192
push 1
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x4471dd
push 0x1388
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x447234
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x447211
call edi
cmp eax, 6
je 0x447234
call edi
push eax
push str.Subprocess::Cleanup
push str._s___GetExitCodeProcess_failed___d_
push ebx
push ebx
call fcn.0043a05d
add esp, 0x14
jmp 0x4472b9
cmp dword [ebp - 0x30], 0x103
jne 0x447234
call edi
push eax
push dword [esi + 0x24]
push str.Subprocess::Cleanup
push str._s___TerminateProcess_failed_for_process_with_PID__d:__d
push ebx
push ebx
call fcn.0043a05d
add esp, 0x18
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x447265
cmp eax, 0xffffffff
je 0x447265
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x447265
call edi
push eax
push dword [esi + 0x24]
push str.Subprocess::Cleanup
push str._s___CloseHandle_failed_for_process_with_PID__d:__d
push ebx
push ebx
call fcn.0043a05d
add esp, 0x18
xor eax, eax
lea edi, [esi + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4472a3
cmp eax, 0xffffffff
je 0x4472a3
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x4472a3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [esi + 0x24]
push str.Subprocess::Cleanup
push str._s___CloseHandle_failed_for_parent_pipe_to_process_with_PID__d:__d
push ebx
push ebx
call fcn.0043a05d
add esp, 0x18
or dword [esi + 0x30], 0xffffffff
add esi, 0x34
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x4472b5
mov esi, dword [esi]
mov byte [esi], bl
mov bl, 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004472d5
lea ecx, [ebp - 0x2c]
call fcn.0045c764
mov al, bl
call fcn.004e472f
ret