Function at 0x40b363
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3bc
mov eax, dword [0x413050]
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 0x40b39d
cmp dl, 0x32
je 0x40b39d
cmp dl, 0x34
jne 0x40b81e
mov eax, dword [eax - 8]
push 2
pop esi
sub eax, esi
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0040700c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040deb5
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00404851
mov eax, dword [0x413050]
xor ebx, ebx
push ebx
push 0xa
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
call fcn.00406fc0
mov edi, eax
cmp edi, 0xffffffff
je 0x40b42e
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.0040700c
lea eax, [ebp - 0xc]
lea ecx, [ebp - 8]
push eax
call fcn.00404912
lea ecx, [ebp - 0xc]
call fcn.00404851
lea eax, [ebp - 4]
push edi
push eax
lea ecx, [ebp + 8]
call fcn.00404b55
push eax
lea ecx, [ebp + 8]
call fcn.00404912
lea ecx, [ebp - 4]
call fcn.00404851
lea ecx, [ebp + 8]
call fcn.004070f2
lea ecx, [ebp + 8]
call fcn.004070a5
lea ecx, [ebp - 8]
call fcn.004070f2
lea ecx, [ebp - 8]
call fcn.004070a5
push ecx
mov ecx, esp
push 0x413344
call fcn.0040487d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040de02
add esp, 0xc
cmp dword [ebp - 0x28], ebx
je 0x40b549
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
je 0x40b4a2
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00406e7c
push eax
lea ecx, [ebp - 4]
call fcn.0040481e
push eax
lea ecx, [ebp - 0x18]
call fcn.00404912
lea ecx, [ebp - 4]
call fcn.00404851
cmp dword [ebp - 0x28], ebx
je 0x40b549
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, 1
jbe 0x40b4dd
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406e7c
push eax
lea ecx, [ebp - 4]
call fcn.0040481e
push eax
lea ecx, [ebp - 0x10]
call fcn.00404912
lea ecx, [ebp - 4]
call fcn.00404851
cmp dword [ebp - 0x28], ebx
je 0x40b549
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, esi
jbe 0x40b512
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406e7c
push eax
lea ecx, [ebp - 4]
call fcn.0040481e
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404912
lea ecx, [ebp - 4]
call fcn.00404851
cmp dword [ebp - 0x28], ebx
je 0x40b549
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, 3
jbe 0x40b549
push 3
lea ecx, [ebp - 0x2c]
call fcn.00406e7c
push eax
lea ecx, [ebp - 4]
call fcn.0040481e
push eax
lea ecx, [ebp - 0x14]
call fcn.00404912
lea ecx, [ebp - 4]
call fcn.00404851
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
cmp dword [eax - 0xc], ebx
mov ecx, esp
jl 0x40b567
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call esi
jmp 0x40b576
mov eax, dword [0x413050]
mov dword [ecx], eax
push dword [ebp - 0x10]
call fcn.004049dd
lea ecx, [ebp - 0x80]
call fcn.0040e662
push ecx
mov ecx, esp
push 0x41368c
call fcn.0040487d
lea ecx, [ebp - 0x80]
call fcn.0040e6cc
lea ecx, [ebp - 8]
call fcn.004070f2
lea ecx, [ebp - 8]
call fcn.004070a5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 8], ebx
jne 0x40b765
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 [0x413664]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
call fcn.00408d86
push dword [eax]
lea eax, [ebp - 0x3bc]
push eax
push 0x10
push 0x40fe88
call fcn.0040582c
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.00404851
cmp byte [ebp - 0x59], bl
mov dword [ebp - 0xc4], 0x44
mov dword [ebp - 0x98], 1
je 0x40b665
mov word [ebp - 0x94], bx
jmp 0x40b678
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 0x40b73f
cmp byte [ebp - 0x5f], bl
je 0x40b6db
cmp byte [ebp - 0x59], bl
je 0x40b6db
mov ecx, dword [0x413664]
push ebx
call fcn.00409672
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.0040b9a0
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], ebx
je 0x40b73a
lea ecx, [ebp - 4]
call fcn.0040da98
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x40b703
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff4
push eax
call esi
jmp 0x40b712
mov eax, dword [0x413050]
mov dword [ecx], eax
push dword [ebp + 0x10]
call fcn.004049dd
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.0040481e
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040481e
lea ecx, [ebp - 4]
call fcn.0040dac4
lea ecx, [ebp - 4]
call fcn.0040dabd
push dword [ebp - 0xc]
call edi
cmp byte [ebp - 0x5f], bl
je 0x40b749
cmp byte [ebp - 0x59], bl
jne 0x40b75b
cmp byte [ebp - 0x61], bl
je 0x40b7fe
cmp byte [ebp - 0x5b], bl
je 0x40b7fe
push dword [ebp - 0xc]
call edi
jmp 0x40b7fe
push 0x90
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x40b77f
mov ecx, eax
call fcn.0040b855
mov esi, eax
jmp 0x40b781
xor esi, esi
cmp esi, ebx
je 0x40b7fe
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x70]
push eax
call fcn.00404912
lea eax, [ebp - 8]
lea ecx, [esi + 0x7c]
push eax
call fcn.00404912
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x74]
push eax
call fcn.00404912
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x80]
push eax
call fcn.00404912
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x84]
push eax
call fcn.00404912
lea eax, [ebp + 0xc]
lea ecx, [esi + 0x78]
push eax
call fcn.00404912
lea eax, [ebp + 0x10]
lea ecx, [esi + 0x88]
push eax
call fcn.00404912
push ebx
push ebx
mov ecx, esi
call fcn.0040ba2a
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.0040e6be
lea ecx, [ebp - 0x2c]
call fcn.00406e36
lea ecx, [ebp - 8]
call fcn.00404851
lea ecx, [ebp + 8]
call fcn.00404851
lea ecx, [ebp - 0x1c]
call fcn.00404851
lea ecx, [ebp - 0x10]
call fcn.00404851
lea ecx, [ebp - 0x14]
call fcn.00404851
lea ecx, [ebp - 0x18]
call fcn.00404851
lea ecx, [ebp + 0xc]
call fcn.00404851
lea ecx, [ebp + 0x10]
call fcn.00404851
pop edi
pop esi
pop ebx
leave
ret 0xc