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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4808ae
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x70107c]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x70107c]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], eax
call fcn.004010d0
xor eax, eax
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x401c4d
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push 0x44
push eax
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call fcn.0047e870
add esp, 0xc
push 1
mov dword [esp + 0x60], 0x44
call edi
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0xb4]
movzx eax, word [esp + 0xb6]
movzx edx, word [esp + 0xb2]
add eax, ecx
movzx ecx, word [esp + 0xb0]
add eax, edx
movzx edx, word [esp + 0xae]
add eax, ecx
movzx ecx, word [esp + 0xaa]
add eax, edx
movzx edx, word [esp + 0xa8]
add eax, ecx
add eax, edx
push eax
call fcn.0047afa9
add esp, 4
call fcn.0047afbb
cdq
idiv esi
lea eax, [edx*8]
sub eax, edx
cmp dword [ebx + eax*4 + 0x14], 8
lea eax, [ebx + eax*4]
jb 0x401bac
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x60]
push edx
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 0x401c20
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00401490
add esp, 0x14
cmp eax, 1
je 0x401cb8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x401c3c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x34]
push eax
jmp 0x401c36
mov eax, dword [esp + 0x34]
test eax, eax
je 0x401c3c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
cmp eax, esi
jb 0x401b06
test ebx, ebx
je 0x401c92
mov esi, ebx
cmp ebx, dword [esp + 0x50]
je 0x401c89
mov edi, 7
mov edi, edi
cmp dword [esi + 0x14], 8
jb 0x401c71
mov eax, dword [esi]
push eax
call fcn.0047afdc
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, dword [esp + 0x50]
jne 0x401c60
push ebx
call fcn.0047afdc
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0047a996
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x38]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x401d13
mov esi, ebx
cmp ebx, dword [esp + 0x50]
je 0x401d0a
mov edi, 7
cmp dword [esi + 0x14], 8
jb 0x401cf2
mov ecx, dword [esi]
push ecx
call fcn.0047afdc
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, dword [esp + 0x50]
jne 0x401ce1
push ebx
call fcn.0047afdc
add esp, 4
mov eax, 1
jmp 0x401c94