Function at 0x40f231
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push 0x130
mov eax, 0x452572
call fcn.00414323
mov dword [ebp - 0xe0], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xd9]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x70]
xor esi, esi
push esi
mov dword [ebp - 0xf4], esi
push eax
mov dword [ebp - 0x70], 0x453408
mov dword [ebp - 0x48], 0x453410
call fcn.00401519
lea ecx, [edi + 4]
mov dword [ebp - 4], esi
cmp dword [ecx + 0x14], 8
jb 0x40f280
mov ecx, dword [ecx]
lea eax, [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40f28b
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x70]
push str._s__s
push eax
call fcn.00404604
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xa8]
add esp, 0x10
add eax, 0x90
push eax
call fcn.004038e0
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00404039
lea ecx, [ebp - 0xa8]
call fcn.004040ac
push 0x44
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.00416870
add esp, 0xc
mov dword [ebp - 0x13c], 0x44
lea eax, [ebp - 0xd9]
mov dword [ebp - 0x40], 0x453408
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x453410
push esi
push eax
push str.regasm.exe
call fcn.0040157a
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00410a1d
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00401a1b
test bl, bl
je 0x40f330
xor eax, eax
mov word [ebp - 0x10c], ax
lea ecx, [ebp - 0x70]
call fcn.00404677
lea ecx, [ebp - 0xf0]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x13c]
push ecx
push ebx
push ebx
push 0x8000004
push ebx
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f36c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40f4aa
push ebx
lea eax, [ebp - 0xd9]
mov dword [ebp - 0xb0], 0x453410
push eax
mov esi, 0x453408
lea ecx, [ebp - 0xd8]
push str._Unregserver
mov dword [ebp - 0xd8], esi
call fcn.0040157a
xor eax, eax
mov byte [ebp - 4], 2
inc eax
mov ecx, edi
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00411093
test al, al
jne 0x40f3fc
push ebx
lea eax, [ebp - 0xd9]
mov dword [ebp - 0x40], esi
push eax
push str._unregister
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x453410
call fcn.0040157a
lea eax, [ebp - 0x40]
mov dword [ebp - 0xe0], 3
push eax
mov ecx, edi
call fcn.00410a1d
mov byte [ebp - 0xd9], bl
test al, al
je 0x40f403
mov byte [ebp - 0xd9], 1
test byte [ebp - 0xe0], 2
je 0x40f414
lea ecx, [ebp - 0x40]
call fcn.00401a1b
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 1
call fcn.00401a1b
cmp byte [ebp - 0xd9], 0
lea ecx, [ebp - 0xa8]
push dword [ebp - 0xe8]
je 0x40f442
call fcn.00403b5f
jmp 0x40f447
call fcn.00403bc9
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40f46a
push 0xfffffffffffffffe
pop ebx
jmp 0x40f4aa
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xa8]
call fcn.00403ab0
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], ebx
push eax
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0xec]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xf0]
call esi
lea ecx, [ebp - 0xa8]
call fcn.00403976
lea ecx, [ebp - 0x70]
call fcn.00401a1b
mov eax, ebx
call fcn.004142cd
ret 0xc