Function at 0x49fbe0
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
imul ecx, ebx, 0x3e8
xor eax, eax
cmp byte [esp + 0x74], 1
mov ebp, dword [esp + 0x6c]
sbb eax, eax
or eax, ecx
mov ecx, dword [ebp]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x49fc1f
cmp byte [edi + 0x18], 0
je 0x49fc1f
mov byte [edi + 0x18], 0
push eax
mov dword [esp + 4], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49fc6f
cmp byte [esp + 0x80], 0
jne 0x49fd8b
test ebx, ebx
je 0x49fd8b
push 1
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x49fe26
push 0xffffffffffffffff
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x49fd2d
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x4c]
lea ebx, [esp + 0x1c]
push eax
push ecx
push edx
push ebx
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x49fd2d
lea eax, [esp + 0x24]
push 0x28
push eax
push dword [ebp + 4]
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x49fd2d
mov eax, 0x64
mul dword [esp + 0xc]
imul ecx, dword [esp + 0x10], 0x64
add ecx, edx
push 0
push 0x3e8
push ecx
push eax
call fcn.004c5dbc
add esp, 0x10
mov dword [esp + 8], eax
mov ebp, edx
mov eax, 0x64
mul dword [esp + 0x14]
imul ecx, dword [esp + 0x18], 0x64
add ecx, edx
push 0
push 0x3e8
push ecx
push eax
call fcn.004c5dbc
add esp, 0x10
mov ecx, dword [esp + 0x48]
shr ecx, 0xa
mov ebx, esi
mov esi, dword [esp + 8]
add eax, esi
adc edx, ebp
cmp byte [edi + 0x18], 0
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov esi, ebx
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x6c]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
jne 0x49fd2d
mov byte [edi + 0x18], 1
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 6
je 0x49fd53
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x49fda5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49fe0b
mov ecx, eax
and ecx, 0xbfff0000
mov edx, eax
and edx, 0x7fffffff
test al, al
mov esi, 1
cmovne esi, edx
cmp ecx, 0x80000000
cmove esi, eax
jmp 0x49fe0b
mov eax, dword [esp + 0x68]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x49fe1e
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0xfffffffe
mov ebx, dword [esp + 0x78]
test ebx, ebx
je 0x49fe0b
push 0x28
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0x29
mov dword [esp + 0x28], 0x21
movups xmm0, xmmword [0x51592d]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.Failed_getting_status_for_program]
movups xmmword [eax], xmm0
mov word [eax + 0x20], 0x6d
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.004a0f10
add esp, 8
push edi
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x78]
test esi, esi
je 0x49fe8b
push 0x28
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0x29
mov dword [esp + 0x28], 0x25
movsd xmm0, qword [0x515914]
movsd qword [eax + 0x1d], xmm0
movups xmm0, xmmword [0x515907]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.Failed_to_terminate_timed_out_program]
movups xmmword [eax], xmm0
mov byte [eax + 0x25], 0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004a0f10
add esp, 8
push edi
call sub.libc.dll_operator_delete_void_
add esp, 4
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov dword [eax + 8], 0xfffffffe
jmp 0x49fe1e