Function at 0x40caab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
mov eax, dword [0x415050]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push ebx
push esi
mov dl, byte [eax]
push edi
cmp dl, 0x31
je 0x40cae5
cmp dl, 0x32
je 0x40cae5
cmp dl, 0x34
jne 0x40cf66
mov eax, dword [eax - 8]
push 2
pop esi
sub eax, esi
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00407786
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040f5fd
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00404833
mov eax, dword [0x415050]
xor ebx, ebx
push ebx
push 0xa
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
call fcn.0040773a
mov edi, eax
cmp edi, 0xffffffff
je 0x40cb76
mov ecx, dword [ebp + 8]
lea eax, [edi + 1]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0xc]
lea ecx, [ebp + 8]
push eax
call fcn.00407786
lea eax, [ebp - 0xc]
lea ecx, [ebp - 8]
push eax
call fcn.004048f4
lea ecx, [ebp - 0xc]
call fcn.00404833
lea eax, [ebp - 4]
push edi
push eax
lea ecx, [ebp + 8]
call fcn.00404b37
push eax
lea ecx, [ebp + 8]
call fcn.004048f4
lea ecx, [ebp - 4]
call fcn.00404833
lea ecx, [ebp + 8]
call fcn.0040786c
lea ecx, [ebp + 8]
call fcn.0040781f
lea ecx, [ebp - 8]
call fcn.0040786c
lea ecx, [ebp - 8]
call fcn.0040781f
push ecx
mov ecx, esp
push 0x415344
call fcn.0040485f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f54a
add esp, 0xc
cmp dword [ebp - 0x28], ebx
je 0x40cc91
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
je 0x40cbea
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004075f6
push eax
lea ecx, [ebp - 4]
call fcn.00404800
push eax
lea ecx, [ebp - 0x18]
call fcn.004048f4
lea ecx, [ebp - 4]
call fcn.00404833
cmp dword [ebp - 0x28], ebx
je 0x40cc91
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, 1
jbe 0x40cc25
push 1
lea ecx, [ebp - 0x2c]
call fcn.004075f6
push eax
lea ecx, [ebp - 4]
call fcn.00404800
push eax
lea ecx, [ebp - 0x10]
call fcn.004048f4
lea ecx, [ebp - 4]
call fcn.00404833
cmp dword [ebp - 0x28], ebx
je 0x40cc91
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, esi
jbe 0x40cc5a
push esi
lea ecx, [ebp - 0x2c]
call fcn.004075f6
push eax
lea ecx, [ebp - 4]
call fcn.00404800
push eax
lea ecx, [ebp - 0x1c]
call fcn.004048f4
lea ecx, [ebp - 4]
call fcn.00404833
cmp dword [ebp - 0x28], ebx
je 0x40cc91
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, 3
jbe 0x40cc91
push 3
lea ecx, [ebp - 0x2c]
call fcn.004075f6
push eax
lea ecx, [ebp - 4]
call fcn.00404800
push eax
lea ecx, [ebp - 0x14]
call fcn.004048f4
lea ecx, [ebp - 4]
call fcn.00404833
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
cmp dword [eax - 0xc], ebx
mov ecx, esp
jl 0x40ccaf
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call esi
jmp 0x40ccbe
mov eax, dword [0x415050]
mov dword [ecx], eax
push dword [ebp - 0x10]
call fcn.004049bf
lea ecx, [ebp - 0x80]
call fcn.0040fdaa
push ecx
mov ecx, esp
push 0x41568c
call fcn.0040485f
lea ecx, [ebp - 0x80]
call fcn.0040fe14
lea ecx, [ebp - 8]
call fcn.0040786c
lea ecx, [ebp - 8]
call fcn.0040781f
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 8], ebx
jne 0x40cead
xor eax, eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x40], ebx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xc0]
mov dword [ebp - 0xc4], ebx
rep stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x1c7]
pop ecx
mov byte [ebp - 0x1c8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7c
xor eax, eax
pop ecx
lea edi, [ebp - 0x3bb]
mov byte [ebp - 0x3bc], bl
push dword [ebp - 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x415664]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
call fcn.00409500
push dword [eax]
lea eax, [ebp - 0x3bc]
push eax
push 0x10
push 0x411e88
call fcn.0040580e
add esp, 0xc
push eax
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00404833
cmp byte [ebp - 0x59], bl
mov dword [ebp - 0xc4], 0x44
mov dword [ebp - 0x98], 1
je 0x40cdad
mov word [ebp - 0x94], bx
jmp 0x40cdc0
mov al, byte [ebp - 0x5c]
neg al
sbb eax, eax
and al, 0xfe
add eax, 5
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xc4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c8]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40ce87
cmp byte [ebp - 0x5f], bl
je 0x40ce23
cmp byte [ebp - 0x59], bl
je 0x40ce23
mov ecx, dword [0x415664]
push ebx
call fcn.00409dec
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0xc]
call fcn.0040d0e8
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x40ce82
lea ecx, [ebp - 4]
call fcn.0040f1e0
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x40ce4b
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff4
push eax
call esi
jmp 0x40ce5a
mov eax, dword [0x415050]
mov dword [ecx], eax
push dword [ebp + 0x10]
call fcn.004049bf
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00404800
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00404800
lea ecx, [ebp - 4]
call fcn.0040f20c
lea ecx, [ebp - 4]
call fcn.0040f205
push dword [ebp - 0xc]
call edi
cmp byte [ebp - 0x5f], bl
je 0x40ce91
cmp byte [ebp - 0x59], bl
jne 0x40cea3
cmp byte [ebp - 0x61], bl
je 0x40cf46
cmp byte [ebp - 0x5b], bl
je 0x40cf46
push dword [ebp - 0xc]
call edi
jmp 0x40cf46
push 0x90
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x40cec7
mov ecx, eax
call fcn.0040cf9d
mov esi, eax
jmp 0x40cec9
xor esi, esi
cmp esi, ebx
je 0x40cf46
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x70]
push eax
call fcn.004048f4
lea eax, [ebp - 8]
lea ecx, [esi + 0x7c]
push eax
call fcn.004048f4
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x74]
push eax
call fcn.004048f4
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x80]
push eax
call fcn.004048f4
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x84]
push eax
call fcn.004048f4
lea eax, [ebp + 0xc]
lea ecx, [esi + 0x78]
push eax
call fcn.004048f4
lea eax, [ebp + 0x10]
lea ecx, [esi + 0x88]
push eax
call fcn.004048f4
push ebx
push ebx
mov ecx, esi
call fcn.0040d172
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0x80]
call fcn.0040fe06
lea ecx, [ebp - 0x2c]
call fcn.004075b0
lea ecx, [ebp - 8]
call fcn.00404833
lea ecx, [ebp + 8]
call fcn.00404833
lea ecx, [ebp - 0x1c]
call fcn.00404833
lea ecx, [ebp - 0x10]
call fcn.00404833
lea ecx, [ebp - 0x14]
call fcn.00404833
lea ecx, [ebp - 0x18]
call fcn.00404833
lea ecx, [ebp + 0xc]
call fcn.00404833
lea ecx, [ebp + 0x10]
call fcn.00404833
pop edi
pop esi
pop ebx
leave
ret 0xc