Function at 0x447183
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x52f54b
call fcn.004e4832
mov esi, ecx
push ecx
push dword [esi + 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.0045c766
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 0x4472ce
cmp eax, 0xffffffff
je 0x4472ce
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x4471fe
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 0x4472ce
cmp dword [ebp - 0x30], 0x103
jne 0x4472ce
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_AttachConsole]
test eax, eax
je 0x447256
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 0x4472ce
mov eax, dword [ebp - 0x34]
add eax, 0xa
mov dword [ebp - 0x34], eax
cmp eax, 0x7d0
jl 0x44722c
push 1
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x447277
push 0x1388
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4472ce
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x4472ab
call edi
cmp eax, 6
je 0x4472ce
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 0x447353
cmp dword [ebp - 0x30], 0x103
jne 0x4472ce
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 0x4472ff
cmp eax, 0xffffffff
je 0x4472ff
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x4472ff
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 0x44733d
cmp eax, 0xffffffff
je 0x44733d
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x44733d
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 0x44734f
mov esi, dword [esi]
mov byte [esi], bl
mov bl, 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0044736f
lea ecx, [ebp - 0x2c]
call fcn.0045c801
mov al, bl
call fcn.004e47dc
ret