Function at 0x40d81c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x40d824
push ebx
push esi
xor eax, eax
push ebp
push 0x40db0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x415b14
mov edx, 0x40db24
call fcn.00403770
mov byte [ebp - 1], 0
push 1
push 0
push 0
lea eax, [ebp - 0x14]
mov ecx, dword [0x415af0]
mov edx, 0x40db5c
call fcn.004038e0
mov eax, dword [ebp - 0x14]
call fcn.00403a94
push eax
push 0x40db64
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
cmp ebx, 0x20
jae 0x40d8a9
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00405390
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x40db74
call fcn.004038e0
mov eax, dword [ebp - 0x18]
call fcn.00412de0
xor ebx, ebx
call fcn.0040d710
test al, al
jne 0x40d8c4
inc ebx
push 0x258
call sub.kernel32.dll_Sleep
cmp bl, 0xa
jb 0x40d8ab
xor esi, esi
cmp bl, 0xa
jb 0x40d944
push 0
push 0x40db80
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x40d8eb
push 0
push 0x40db8c
call sub.user32.dll_FindWindowA
invalid
mov esi, eax
push esi
call sub.user32.dll_SetForegroundWindow
call fcn.0040d710
test al, al
jne 0x40d93a
push 1
push 0
push 0
mov edx, 0x40db5c
lea eax, [ebp - 0x20]
mov ecx, dword [0x415af0]
call fcn.004038e0
mov eax, dword [ebp - 0x20]
call fcn.00403a94
push eax
push 0x40db64
push 0
call sub.shell32.dll_ShellExecuteA
push 0x3e8
call sub.kernel32.dll_Sleep
push esi
call sub.user32.dll_SetForegroundWindow
jmp 0x40d944
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, dword [0x4141fc]
push eax
mov ecx, 0x40dba0
mov edx, 0x40dbb0
mov eax, 0x80000002
call fcn.00406670
mov ebx, eax
inc ebx
mov eax, 0x415b14
mov edx, 0x40dbf8
call fcn.00403770
lea eax, [ebp - 0x24]
mov ecx, 0x40dc2c
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0xc]
call fcn.0040c0ec
lea eax, [ebp - 0x28]
mov ecx, 0x40dc40
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x10]
call fcn.0040c0ec
push 0x40dc54
lea edx, [ebp - 0x2c]
mov eax, 0x72
call fcn.00405370
push dword [ebp - 0x2c]
push 0x40dc64
push dword [0x415af8]
push 0x40dc64
push 0x40dba0
push 0x40dc70
lea edx, [ebp - 0x30]
xor eax, eax
mov al, bl
call fcn.00405370
push dword [ebp - 0x30]
push 0x40dc64
push dword [ebp - 0xc]
push 0x40dc64
push 0x40dc64
push 0x40dc64
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 0xe
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.004062d0
test al, al
jne 0x40da27
mov eax, 0x40dc7c
call fcn.00412de0
lea edx, [ebp - 0x38]
mov eax, 0x40dc8c
call fcn.00404cac
push dword [ebp - 0x38]
push 0x40dca0
push 0x40dcac
lea edx, [ebp - 0x3c]
mov eax, 0x40dcb8
call fcn.00404cac
push dword [ebp - 0x3c]
push 0x40dca0
push 0x40dcc4
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00403954
mov eax, dword [ebp - 0x34]
call fcn.00404db8
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, 0x40dcd0
call fcn.004062d0
push 0
push esi
call sub.user32.dll_EnableWindow
mov eax, 0x40dcdc
call fcn.00404db8
push 0x1f4
call sub.kernel32.dll_Sleep
lea edx, [ebp - 0x40]
mov eax, 0x40dcf0
call fcn.00404cac
mov eax, dword [ebp - 0x40]
call fcn.00404db8
xor eax, eax
mov al, bl
push eax
mov edx, 0x40dbb0
mov ecx, 0x40dba0
mov eax, 0x80000002
call fcn.004068e8
push 0x7530
call sub.kernel32.dll_Sleep
call fcn.00406158
test al, al
je 0x40daef
cmp bl, 3
jbe 0x40daef
mov byte [ebp - 1], 1
call fcn.00409ae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db11
lea eax, [ebp - 0x40]
mov edx, 0xf
call fcn.00403740
ret