Function at 0x401860
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461423
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6e107c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x6e107c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x3c]
mov dword [esp + 0x38], eax
call fcn.00401050
mov dword [esp + 0xb8], 0
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ecx, ebx
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x401a51
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x34], esi
xor eax, eax
push 0x44
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0045f400
add esp, 0xc
push 1
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0xa4]
movzx eax, word [esp + 0xa6]
movzx edx, word [esp + 0xa2]
add eax, ecx
movzx ecx, word [esp + 0xa0]
add eax, edx
movzx edx, word [esp + 0x9e]
add eax, ecx
movzx ecx, word [esp + 0x9a]
add eax, edx
movzx edx, word [esp + 0x98]
add eax, ecx
add eax, edx
push eax
call fcn.0045bb39
add esp, 4
call fcn.0045bb4b
cdq
idiv esi
mov ecx, dword [esp + 0x3c]
lea eax, [edx*8]
sub eax, edx
cmp dword [ecx + eax*4 + 0x14], 8
lea eax, [ecx + eax*4]
jb 0x40199e
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push 0x8000004
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401a2b
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004012d0
add esp, 0x14
cmp eax, 1
jne 0x401a17
mov eax, dword [esp + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401a3f
push 0
push eax
call ebx
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x401a3d
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401a3f
push 0
push eax
call ebx
mov edx, dword [esp + 0x24]
push edx
jmp 0x401a3d
mov eax, dword [esp + 0x24]
test eax, eax
je 0x401a3f
push 0
push eax
call ebx
mov eax, dword [esp + 0x24]
push eax
call edi
dec dword [esp + 0x34]
jne 0x4018f0
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x401a94
mov esi, edi
cmp edi, ebx
je 0x401a8b
mov edi, 7
cmp dword [esi + 0x14], 8
jb 0x401a71
mov ecx, dword [esi]
push ecx
call fcn.0045bb6c
add esp, 4
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, ebx
jne 0x401a60
mov edi, dword [esp + 0x3c]
push edi
call fcn.0045bb6c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0045b526
mov esp, ebp
pop ebp
ret