Function at 0x42e850
Capabilities:
Terminate process

Disassembly:
push 0x5c
mov eax, 0x5a7ff0
call fcn.0056e492
mov esi, ecx
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], ebx
test ebx, ebx
jne 0x42e883
push eax
push ebx
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x29], 0
test ebx, ebx
je 0x42e8ba
mov eax, dword [esi]
push 0xffffffffffffffff
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push 0
push eax
push 2
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 1
jne 0x42e8ba
mov byte [ebp - 0x29], 1
cmp byte [esi + 0x18], al
je 0x42e8ba
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x68]
push eax
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00452eb0
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
cmp edi, esi
je 0x42ea8d
mov ebx, dword [ebp - 0x34]
add edi, 4
mov eax, dword [ebp - 0x48]
cmp dword [edi + 4], eax
jne 0x42e925
cmp byte [ebp - 0x29], 0
jne 0x42e90d
push 0
push dword [edi]
mov ecx, ebx
call fcn.0042e850
jmp 0x42ea7c
cmp byte [ebx + 0x18], 0
je 0x42ea7c
push 1
push dword [edi]
call fcn.004530e0
jmp 0x42ea7a
and dword [ebp - 0x28], 0
lea eax, [edi + 8]
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push eax
call fcn.004062c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 0x2a], 0
call fcn.00404b51
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.0042ce7a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
push ecx
push eax
call fcn.005298b0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
mov byte [ebp - 0x2b], al
call fcn.00405472
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00405472
push 1
push 0x5c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0042dbe2
add esp, 0x10
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
cmp eax, ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], ecx
jmp 0x42e9e8
push 0x5c2878
push eax
call fcn.0042333d
pop ecx
pop ecx
test al, al
je 0x42e9df
push 0x5c2884
push dword [ebp - 0x30]
call fcn.0042da54
pop ecx
pop ecx
test al, al
jne 0x42e9ef
mov eax, dword [ebp - 0x30]
add eax, 0x18
cmp eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
jne 0x42e9bb
jmp 0x42e9f3
mov byte [ebp - 0x2a], 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00406350
cmp byte [ebp - 0x2a], 0
jne 0x42ea0b
cmp byte [ebp - 0x2b], 0
je 0x42ea3b
push dword [edi + 4]
call fcn.0042f14a
pop ecx
test al, al
jne 0x42ea3b
cmp byte [ebp - 0x29], al
jne 0x42ea2a
push 0
push dword [edi]
mov ecx, ebx
call fcn.0042e850
jmp 0x42ea3b
cmp byte [ebx + 0x18], 0
je 0x42ea3b
push 1
push dword [edi]
call fcn.004530e0
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x42ea7c
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp eax, 0x1000
jb 0x42ea73
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004048ce
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.0056e411
pop ecx
pop ecx
add edi, 0x2c
lea eax, [edi - 4]
cmp eax, esi
jne 0x42e8ef
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x42ea98
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x60]
call fcn.0040bcef
call fcn.0056e441
ret 8