Function at 0x446e2d
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x52f258
call fcn.004e4550
mov esi, ecx
push ecx
push dword [esi + 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.0045c49f
xor ebx, ebx
lea ecx, [ebp - 0x38]
push esi
mov dword [ebp - 4], ebx
call fcn.0041fc3f
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 0x446f78
cmp eax, 0xffffffff
je 0x446f78
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x446ea8
call edi
push eax
push str.Subprocess::Cleanup
push str._s___GetExitCodeProcess_failed___d_
push ebx
push ebx
call fcn.00439ccd
add esp, 0x14
jmp 0x446f78
cmp dword [ebp - 0x30], 0x103
jne 0x446f78
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_AttachConsole]
test eax, eax
je 0x446f00
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 0x446f78
mov eax, dword [ebp - 0x34]
add eax, 0xa
mov dword [ebp - 0x34], eax
cmp eax, 0x7d0
jl 0x446ed6
push 1
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x446f21
push 0x1388
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x446f78
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x446f55
call edi
cmp eax, 6
je 0x446f78
call edi
push eax
push str.Subprocess::Cleanup
push str._s___GetExitCodeProcess_failed___d_
push ebx
push ebx
call fcn.00439ccd
add esp, 0x14
jmp 0x446ffd
cmp dword [ebp - 0x30], 0x103
jne 0x446f78
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.00439ccd
add esp, 0x18
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x446fa9
cmp eax, 0xffffffff
je 0x446fa9
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x446fa9
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.00439ccd
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 0x446fe7
cmp eax, 0xffffffff
je 0x446fe7
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x446fe7
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.00439ccd
add esp, 0x18
or dword [esi + 0x30], 0xffffffff
add esi, 0x34
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x446ff9
mov esi, dword [esi]
mov byte [esi], bl
mov bl, 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00447019
lea ecx, [ebp - 0x2c]
call fcn.0045c53a
mov al, bl
call fcn.004e44fa
ret