Function at 0x447228
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x52f71a
call fcn.004e49d2
mov esi, ecx
push ecx
push dword [esi + 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.0045c8f0
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 0x447373
cmp eax, 0xffffffff
je 0x447373
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x4472a3
call edi
push eax
push str.Subprocess::Cleanup
push str._s___GetExitCodeProcess_failed___d_
push ebx
push ebx
call fcn.0043a0a0
add esp, 0x14
jmp 0x447373
cmp dword [ebp - 0x30], 0x103
jne 0x447373
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_AttachConsole]
test eax, eax
je 0x4472fb
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 0x447373
mov eax, dword [ebp - 0x34]
add eax, 0xa
mov dword [ebp - 0x34], eax
cmp eax, 0x7d0
jl 0x4472d1
push 1
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x44731c
push 0x1388
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x447373
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x447350
call edi
cmp eax, 6
je 0x447373
call edi
push eax
push str.Subprocess::Cleanup
push str._s___GetExitCodeProcess_failed___d_
push ebx
push ebx
call fcn.0043a0a0
add esp, 0x14
jmp 0x4473f8
cmp dword [ebp - 0x30], 0x103
jne 0x447373
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.0043a0a0
add esp, 0x18
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4473a4
cmp eax, 0xffffffff
je 0x4473a4
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x4473a4
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.0043a0a0
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 0x4473e2
cmp eax, 0xffffffff
je 0x4473e2
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x4473e2
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.0043a0a0
add esp, 0x18
or dword [esi + 0x30], 0xffffffff
add esi, 0x34
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x4473f4
mov esi, dword [esi]
mov byte [esi], bl
mov bl, 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00447414
lea ecx, [ebp - 0x2c]
call fcn.0045c98b
mov al, bl
call fcn.004e497c
ret