Function at 0x40c266
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x420730
call fcn.00412d4c
sub esp, 0x194
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ebx
call fcn.0040cb22
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 3
jae 0x40c299
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
call esi
call fcn.0040cb22
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, 3
jae 0x40c2be
push str.Local1743
push ebx
push ebx
push ebx
call edi
test eax, eax
je 0x40c2be
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x10
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.00412430
push 0x44
lea eax, [esp + 0x170]
push ebx
push eax
call fcn.00412430
add esp, 0x18
call fcn.0040cb22
cmp eax, 3
jae 0x40c2f3
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebx
call esi
mov dword [esp + 0x160], 0x44
call fcn.0040cb22
cmp eax, 3
jae 0x40c319
push ebx
push ebx
push ebx
push ebx
call edi
test eax, eax
je 0x40c319
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1b8]
push 0x20
mov eax, dword [esi]
pop ebx
mov eax, dword [eax]
and eax, 0xf000
cmp eax, 0x2000
je 0x40c33f
cmp eax, 0x8000
jne 0x40c342
add ebx, 0x60
jmp 0x40c342
push 0x40
pop ebx
call fcn.0040c76d
lea edi, [esi + 0x1c]
push edi
mov dword [esi + 0x10], eax
lea eax, [esp + 0xec]
push 0x42e824
push eax
mov dword [esi + 0x14], edx
call fcn.00409e2f
and dword [esp + 0x1b8], 0
push 0x42e820
push eax
lea eax, [esp + 0x144]
push eax
call fcn.00409de8
mov ecx, eax
mov byte [esp + 0x1c4], 1
lea eax, [esi + 0x34]
push eax
push ecx
lea eax, [esp + 0xd8]
push eax
call fcn.00409da7
add esp, 0x24
mov byte [esp + 0x1ac], 3
lea ecx, [esp + 0x130]
call fcn.004015cc
mov byte [esp + 0x1ac], 4
lea ecx, [esp + 0xe8]
call fcn.004015cc
lea eax, [esp + 0x24]
push edi
push eax
call fcn.0040a1db
mov byte [esp + 0x1b4], 5
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0040a1db
add esp, 0x10
mov byte [esp + 0x1ac], 6
cmp dword [edi + 0x14], 0x10
jb 0x40c3ff
mov eax, dword [edi]
jmp 0x40c401
mov eax, edi
push 0
push eax
call fcn.0040ff2c
pop ecx
pop ecx
test al, al
jne 0x40c587
push dword [0x42d1e0]
cmp dword [0x42d1e4], 0x10
mov eax, 0x42d1d0
cmovae eax, dword [0x42d1d0]
push 0
push eax
mov ecx, edi
call fcn.0040c705
cmp eax, 0xffffffff
jne 0x40c587
lea eax, [esp + 0x148]
push str.PATH
push eax
call fcn.004104b5
mov byte [esp + 0x1b4], 7
push 1
push 0x3b
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0041154a
add esp, 0x18
mov byte [esp + 0x1ac], 9
lea ecx, [esp + 0x148]
call fcn.004015cc
lea eax, [esp + 0x64]
push str.SYSTEMROOT
push eax
call fcn.004104b5
mov byte [esp + 0x1b4], 0xa
cmp dword [esp + 0x80], 0x10
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x124]
push str._sSYSTEM32
push eax
call fcn.004075ca
add esp, 0x14
mov byte [esp + 0x1ac], 0xb
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ca30
mov byte [esp + 0x1ac], 0xa
lea ecx, [esp + 0x118]
call fcn.004015cc
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ca9d
cmp dword [edi + 0x14], 0x10
jb 0x40c4f9
mov edi, dword [edi]
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x108]
push edi
push eax
call fcn.00410d5d
mov byte [esp + 0x1bc], 0xc
push eax
lea eax, [esp + 0xe4]
push eax
call fcn.0040a1db
add esp, 0x18
mov byte [esp + 0x1ac], 0xd
push eax
lea ecx, [esp + 0x28]
call fcn.0040a4a2
mov byte [esp + 0x1ac], 0xc
push 0
push 1
lea ecx, [esp + 0xd8]
call fcn.00401bbb
mov byte [esp + 0x1ac], 0xa
lea ecx, [esp + 0x100]
call fcn.004015cc
mov byte [esp + 0x1ac], 9
lea ecx, [esp + 0x64]
call fcn.004015cc
mov byte [esp + 0x1ac], 6
lea ecx, [esp + 0x18]
call fcn.0040b02f
mov eax, dword [esi]
test dword [eax], 0x600
je 0x40c648
call fcn.00410b76
test al, al
jne 0x40c648
push 0x3c
pop edi
push edi
lea eax, [esp + 0x80]
push 0
push eax
call fcn.00412430
add esp, 0xc
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp dword [esp + 0x50], 8
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 0x4140
mov dword [esp + 0x8c], str.runas
mov dword [esp + 0x9c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c63e
cmp dword [esp + 0x9c], 0x20
jbe 0x40c63e
mov eax, dword [esi]
test byte [eax], 0x44
je 0x40c635
push 0
push dword [esp + 0xb8]
jmp 0x40c6a8
mov eax, dword [esp + 0xb4]
jmp 0x40c698
mov eax, dword [esi]
test dword [eax], 0x400
jne 0x40c6b1
cmp dword [esp + 0x50], 8
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
cmp dword [esp + 0x38], 8
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
xor edx, edx
push edx
push edx
push ebx
push edx
push edx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40c69d
mov eax, dword [esi]
test byte [eax], 0x44
je 0x40c694
push 0
push dword [esp + 0x58]
jmp 0x40c6a8
mov eax, dword [esp + 0x54]
mov dword [esi + 8], eax
jmp 0x40c6b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push ebp
push 0
push esi
call fcn.0040b6d2
add esp, 0xc
mov byte [esp + 0x1ac], 5
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00401bbb
mov byte [esp + 0x1ac], 4
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.00401bbb
or dword [esp + 0x1ac], 0xffffffff
lea ecx, [esp + 0xb8]
call fcn.004015cc
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret