Function at 0x40a413
Capabilities:
Create process on windows

Disassembly:
push 0x554
mov eax, 0x417e7b
call fcn.0040caca
movzx eax, word [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x488], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x4c4], esi
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x4ac], ecx
cmp ax, 1
je 0x40a458
cmp ax, 2
je 0x40a458
cmp ax, 3
jne 0x40a45e
xor ebx, ebx
cmp ecx, ebx
jne 0x40a468
mov eax, 0x80070057
jmp 0x40aced
mov ecx, esi
call fcn.00408eb6
push dword [esi + 0x10]
lea ecx, [ebp - 0x518]
call fcn.004092a2
mov eax, dword [ebp - 0x514]
mov ecx, dword [ebp - 0x518]
sub eax, ecx
push 0x24
cdq
pop edi
idiv edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x474], ebx
mov dword [ebp - 0x494], eax
cmp eax, ebx
jbe 0x40a594
mov dword [ebp - 0x470], ecx
push dword [ebp - 0x470]
lea eax, [ebp - 0x48c]
push eax
call fcn.00402826
pop ecx
pop ecx
mov dword [ebp - 0x47c], ebx
mov edi, dword [ebp - 0x48c]
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x40a4eb
mov eax, dword [edi]
lea ecx, [ebp - 0x47c]
push ecx
push edi
call dword [eax + 0x20]
cmp dword [ebp - 0x47c], ebx
jne 0x40a50d
mov eax, dword [ebp - 0x470]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x47c]
push edx
push 0x4199d4
push eax
call dword [ecx]
cmp dword [ebp - 0x47c], ebx
je 0x40a553
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 0x47c]
call fcn.0040b258
add esp, 0x10
test eax, eax
js 0x40a553
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40a553
cmp dword [ebp - 0x4c8], eax
jne 0x40a553
mov ax, word [ebp - 0x490]
cmp word [ebp - 0x498], ax
je 0x40a5a1
mov eax, dword [ebp - 0x47c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40a567
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
cmp edi, ebx
je 0x40a575
mov eax, dword [edi]
push edi
call dword [eax + 8]
inc dword [ebp - 0x474]
mov eax, dword [ebp - 0x474]
add dword [ebp - 0x470], 0x24
cmp eax, dword [ebp - 0x494]
jb 0x40a4ae
cmp dword [ebp + 8], 2
jne 0x40a5d5
mov ebx, 0x80004005
jmp 0x40a5c3
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x4ac]
mov dword [ebp - 0x47c], ebx
mov dword [ecx], eax
mov byte [ebp - 4], 0
cmp edi, ebx
je 0x40a5c3
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x518]
call fcn.0040442c
mov eax, ebx
jmp 0x40aced
mov edi, dword [esi]
mov eax, dword [esi + 4]
sub eax, edi
push 0x18
cdq
pop esi
idiv esi
xor ecx, ecx
cmp eax, ebx
jbe 0x40a59a
lea edx, [edi + 0x10]
cmp dword [edx], ebx
je 0x40a5f9
inc ecx
add edx, 0x18
cmp ecx, eax
jb 0x40a5eb
jmp 0x40a59a
imul ecx, ecx, 0x18
add ecx, edi
or dword [ecx + 0x10], 0xffffffff
xor eax, eax
push 0x3e6
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x446]
push ebx
push eax
mov dword [ebp - 0x474], ecx
call fcn.0040c330
add esp, 0xc
cmp word [ebp - 0x490], 1
mov esi, 0x41a3c8
je 0x40a63a
mov esi, 0x41a3c0
cmp dword [ebp - 0x488], ebx
jne 0x40a885
mov dword [ebp - 0x470], ebx
push dword [ebp - 0x474]
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 3
call fcn.00407ec2
push dword [ebp - 0x470]
push dword [eax]
lea eax, [ebp - 0x448]
push esi
push 0x41a3d0
push 0x1f3
push 0x1f4
push eax
call fcn.0040f0be
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x1c
push dword [ebp - 0x48c]
call esi
push dword [ebp - 0x470]
mov byte [ebp - 4], 0
call esi
push 0x40
lea eax, [ebp - 0x55c]
push ebx
push eax
mov dword [ebp - 0x560], 0x44
call fcn.0040c330
xor eax, eax
mov dword [ebp - 0x4f8], ebx
lea edi, [ebp - 0x4f4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebp - 0x490]
push eax
lea eax, [ebp - 0x484]
push eax
xor esi, esi
call fcn.004040a8
add esp, 0x14
mov eax, dword [ebp - 0x484]
cmp dword [eax - 0xc], ebx
jle 0x40a72e
lea ecx, [ebp - 0x4f8]
push ecx
lea ecx, [ebp - 0x560]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x448]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, ebx
je 0x40a72e
push dword [ebp - 0x4f8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x4f4]
call edi
mov dword [ebp - 0x488], ebx
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x40acc6
mov eax, dword [ebp - 0x4f0]
mov ecx, dword [ebp - 0x474]
push 0x13
mov dword [ecx + 0x10], eax
pop ecx
mov esi, 0x41a340
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
cmp esi, ebx
je 0x40a784
push 0x5dc
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x478], ebx
mov esi, dword [ebp - 0x474]
lea eax, [ebp - 0x478]
push eax
push 0x4199d4
push 4
push ebx
push esi
mov byte [ebp - 4], 6
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x48c], ebx
mov dword [ebp - 0x494], ebx
mov dword [ebp - 0x4c0], ebx
cmp eax, ebx
jl 0x40ab8b
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 0x478]
call fcn.0040b258
add esp, 0x10
test eax, eax
js 0x40ab8b
cmp dword [ebp - 0x494], ebx
jne 0x40ac9c
mov eax, dword [ebp - 0x48c]
cmp eax, dword [ebp - 0x4f0]
jne 0x40ac9c
xor eax, eax
push 0x41a32c
lea ecx, [ebp - 0x4e8]
mov word [ebp - 0x4e8], ax
call fcn.004083e6
mov dword [ebp - 0x470], ebx
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
lea edx, [ebp - 0x470]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x4e8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 8
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
test eax, eax
je 0x40a8a9
mov eax, dword [ebp - 0x474]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0x470]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x40a873
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40ac9f
push dword [ebp - 0x488]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x470], eax
cmp eax, ebx
jne 0x40a64c
push 0x8007000e
call fcn.00401148
mov dword [ebp - 0x480], ebx
mov eax, dword [ebp - 0x470]
mov ecx, dword [eax]
lea edx, [ebp - 0x480]
push edx
push 0x41a31c
push eax
mov byte [ebp - 4], 9
call dword [ecx]
test eax, eax
je 0x40a8f4
mov eax, dword [ebp - 0x474]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 0x480]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x40a85f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a85f
push 3
pop eax
mov word [ebp - 0x4bc], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4b4], eax
lea esi, [ebp - 0x4bc]
lea edi, [ebp - 0x508]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x41a314
lea ecx, [ebp - 0x4a8]
mov byte [ebp - 4], 0xa
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x4a8], ax
call fcn.004083e6
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x480]
lea esi, [ebp - 0x508]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x4a8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 0xb
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x4a8]
push eax
call ebx
lea eax, [ebp - 0x4bc]
push eax
call ebx
push 0x13
pop eax
mov word [ebp - 0x4a8], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4a0], eax
lea esi, [ebp - 0x4a8]
lea edi, [ebp - 0x508]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x41a308
lea ecx, [ebp - 0x4bc]
mov byte [ebp - 4], 0xc
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x4bc], ax
call fcn.004083e6
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x508]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x4bc]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 0xd
movsd dword es:[edi], dword [esi]
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x4bc]
push eax
call ebx
lea eax, [ebp - 0x4a8]
push eax
call ebx
push 2
pop eax
mov word [ebp - 0x4a8], ax
mov ax, word [ebp - 0x490]
mov word [ebp - 0x4a0], ax
lea esi, [ebp - 0x4a8]
lea edi, [ebp - 0x508]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x41a2f8
lea ecx, [ebp - 0x4bc]
mov byte [ebp - 4], 0xe
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x4bc], ax
call fcn.004083e6
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x480]
lea esi, [ebp - 0x508]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x4bc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 4], 0xf
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
lea eax, [ebp - 0x4bc]
push eax
call ebx
lea eax, [ebp - 0x4a8]
push eax
call ebx
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 9
pop eax
lea edx, [ebp - 0x4d0]
push edx
mov word [ebp - 0x4d8], ax
mov eax, dword [ebp - 0x480]
mov ecx, dword [eax]
push 0x41a634
push eax
mov byte [ebp - 4], 0x10
call dword [ecx]
test eax, eax
je 0x40ab0f
xor eax, eax
mov word [ebp - 0x4d8], ax
mov eax, dword [ebp - 0x474]
and dword [eax + 0x10], 0
lea eax, [ebp - 0x4d8]
push eax
call ebx
mov eax, dword [ebp - 0x480]
mov byte [ebp - 4], 8
test eax, eax
je 0x40aae5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x470]
mov byte [ebp - 4], 7
test eax, eax
je 0x40aaf9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x4e8]
push eax
call ebx
mov eax, dword [ebp - 0x478]
test eax, eax
jmp 0x40aca7
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x4d8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x20]
test eax, eax
js 0x40ab49
cmp dword [ebp - 0x478], 0
je 0x40ab49
push dword [ebp - 0x478]
lea eax, [ebp - 0x488]
push eax
call fcn.0040132c
lea eax, [ebp - 0x4d8]
push eax
call ebx
mov eax, dword [ebp - 0x480]
mov byte [ebp - 4], 8
test eax, eax
je 0x40ab66
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x470]
mov byte [ebp - 4], 7
test eax, eax
je 0x40ab7a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x4e8]
push eax
call ebx
mov esi, dword [ebp - 0x474]
xor ebx, ebx
mov eax, dword [ebp - 0x478]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40ab9f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x488], ebx
je 0x40accc
lea ecx, [ebp - 0x46c]
call fcn.004027c8
mov edi, 0x41a2f4
push edi
mov byte [ebp - 4], 0x11
call fcn.0040c429
pop ecx
push eax
push edi
lea ecx, [ebp - 0x458]
call fcn.00403972
cmp word [ebp - 0x490], 1
mov eax, 0x41a3c8
je 0x40abe7
mov eax, 0x41a3c0
push eax
lea ecx, [ebp - 0x454]
call fcn.00403dbf
mov eax, dword [esi + 0x10]
mov edi, dword [ebp - 0x488]
push eax
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x474]
push edi
push eax
call fcn.0040b689
add esp, 0xc
push eax
lea ecx, [ebp - 0x450]
call fcn.004085bf
mov eax, dword [ebp - 0x474]
cmp eax, ebx
je 0x40ac2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov word [ebp - 0x468], ax
mov ax, word [ebp - 0x490]
mov word [ebp - 0x466], ax
lea eax, [ebp - 0x46c]
push eax
mov eax, dword [ebp - 0x4c4]
mov ecx, dword [eax + 0x10]
mov byte [ebp - 0x44c], 1
mov dword [ebp - 0x45c], ebx
call fcn.00404a9f
lea eax, [esi + 0x14]
cmp dword [eax], edi
je 0x40ac76
push edi
push eax
call fcn.0040132c
mov eax, dword [ebp - 0x4ac]
lea ecx, [ebp - 0x46c]
mov dword [eax], edi
call fcn.0040289a
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.00401ac9
jmp 0x40a5c3
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 0x478]
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x40acb3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.00401ac9
jmp 0x40a59a
mov esi, dword [ebp - 0x474]
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.00401ac9
lea ecx, [ebp - 0x518]
call fcn.0040442c
mov eax, 0x80004005
call fcn.0040cb4d
ret 0x14