Function at 0x40cb60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c22f
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x5e500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x220], 0
call fcn.00402290
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov ecx, dword [esi + 0xc]
xor eax, eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x244], 0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x25c], 0x3c
test ecx, ecx
je 0x40cc01
cmp word [ecx], ax
sete al
jmp 0x40cc08
cmp dword [esi + 0x24], 2
setle al
test eax, eax
je 0x40cdb7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.00402290
xor eax, eax
mov dword [ebp - 0x220], 1
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40ccc1
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
lea esi, [ebp - 0x21c]
test eax, eax
je 0x40cc69
lea esi, [eax + 2]
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x2a8], 0
test eax, eax
je 0x40cc8d
push eax
mov eax, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x2a4]
call dword [eax + 0xc]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x294], 0
test esi, esi
je 0x40ccc1
cmp word [esi], 0
je 0x40ccc1
push esi
lea ecx, [ebp - 0x2a4]
call fcn.004633c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e0]
call fcn.00402290
lea edx, [ebp - 0x2e0]
mov dword [ebp - 0x220], 3
call fcn.00460320
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x2e0]
lea ecx, [ebp - 0x30c]
call fcn.00465990
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x288]
mov edx, dword [ebp - 0x288]
call dword [edx + 0x44]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x284], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x280], ecx
lea ecx, [ebp - 0x278]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x278]
call dword [eax + 0x44]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x278]
call fcn.004026a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30c]
call fcn.00401f80
mov esi, 3
mov dword [ebp - 0x220], esi
and esi, 0xfffffffd
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.00401f80
and esi, 0xfffffffe
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b4]
call fcn.00401f80
mov eax, dword [ebp - 0x27c]
test eax, eax
jne 0x40cdd8
cmp dword [ebp - 0x264], 0
mov eax, 0x5ca534
cmovne eax, dword [ebp - 0x26c]
jmp 0x40cdd8
test ecx, ecx
je 0x40cdc3
mov dword [ebp - 0x24c], ecx
jmp 0x40cdde
cmp dword [esi + 0x24], 0
jne 0x40cdd5
mov dword [ebp - 0x24c], 0x5ca534
jmp 0x40cdde
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24c], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x40cdf9
cmp dword [edi + 0x24], eax
jne 0x40cdf6
mov dword [ebp - 0x248], 0x5ca534
jmp 0x40cdff
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x250], str.runas
push eax
mov dword [ebp - 0x240], 0xa
mov dword [ebp - 0x258], 0x100
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.00401f80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469bcf
mov esp, ebp
pop ebp
ret