Function at 0x40a470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e641
mov eax, dword fs:[0]
push eax
sub esp, 0x8e0
mov eax, dword [0x48baac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x814], 0
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.00450300
add esp, 0xc
mov dword [ebp - 0x87c], 0x420
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x818], 0
mov edx, dword [ebp + 0x18]
push edx
push str.EXPLORER.EXE
call fcn.0040a900
add esp, 8
mov dword [ebp - 0x870], eax
cmp dword [ebp - 0x870], 0
jne 0x40a576
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8bc]
push eax
call fcn.0040a3a0
add esp, 8
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8a4]
mov dword [ebp - 0x88c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x88c]
call fcn.00407520
push eax
push 0x47b030
push 1
mov edx, dword [0x490050]
push edx
call fcn.00408ae0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8bc]
call fcn.00408190
xor eax, eax
jmp 0x40a8d9
push 0
mov eax, dword [ebp - 0x870]
push eax
lea ecx, [ebp - 0x818]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea edx, [ebp - 0x814]
push edx
push 1
push 2
push 0
push 0x2000000
mov eax, dword [ebp - 0x870]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp dword [ebp - 0x814], 0
jne 0x40a62a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x8d4]
push ecx
call fcn.0040a3a0
add esp, 8
mov dword [ebp - 0x888], eax
mov edx, dword [ebp - 0x888]
mov dword [ebp - 0x8a0], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x8a0]
call fcn.00407520
push eax
push 0x47b070
push 1
mov eax, dword [0x490050]
push eax
call fcn.00408ae0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8d4]
call fcn.00408190
mov ecx, dword [ebp - 0x870]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a8d9
cmp dword [ebp + 0x14], 0
je 0x40a642
mov edx, dword [ebp - 0x87c]
or edx, 0x8000000
mov dword [ebp - 0x87c], edx
cmp dword [ebp + 8], 0
je 0x40a6e3
cmp dword [ebp + 0xc], 0
je 0x40a6c4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x874], eax
mov ecx, dword [ebp - 0x874]
add ecx, 2
mov dword [ebp - 0x894], ecx
mov edx, dword [ebp - 0x874]
mov ax, word [edx]
mov word [ebp - 0x87e], ax
add dword [ebp - 0x874], 2
cmp word [ebp - 0x87e], 0
jne 0x40a66a
mov ecx, dword [ebp - 0x874]
sub ecx, dword [ebp - 0x894]
sar ecx, 1
mov dword [ebp - 0x89c], ecx
je 0x40a6c4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._ws__ws
push 0x800
lea ecx, [ebp - 0x810]
push ecx
call fcn.00409d30
add esp, 0x14
jmp 0x40a6e1
mov edx, dword [ebp + 8]
push edx
push 0x47b0c4
push 0x800
lea eax, [ebp - 0x810]
push eax
call fcn.00409d30
add esp, 0x10
jmp 0x40a6f8
mov ecx, dword [ebp + 0xc]
push ecx
push 0x800
lea edx, [ebp - 0x810]
push edx
call fcn.0040bf50
push 0x44
push 0
lea eax, [ebp - 0x86c]
push eax
call fcn.00450300
add esp, 0xc
mov dword [ebp - 0x86c], 0x44
mov dword [ebp - 0x864], str.winsta0default
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x86c]
push edx
push 0
mov eax, dword [ebp - 0x818]
push eax
mov ecx, dword [ebp - 0x87c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x810]
push edx
push 0
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x818], 0
je 0x40a775
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x878], 0
jne 0x40a80c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x8ec]
push edx
call fcn.0040a3a0
add esp, 8
mov dword [ebp - 0x898], eax
mov eax, dword [ebp - 0x898]
mov dword [ebp - 0x890], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x890]
call fcn.00407520
push eax
push 0x47b0ec
push 1
mov ecx, dword [0x490050]
push ecx
call fcn.00408ae0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8ec]
call fcn.00408190
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40a8d9
cmp dword [ebp + 0x10], 0
jne 0x40a856
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x870]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40a8d9
push 0x186a0
mov edx, dword [ebp - 0x828]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x884], eax
cmp dword [ebp - 0x884], 0
jne 0x40a883
mov dword [ebp - 0x878], 1
jmp 0x40a899
cmp dword [ebp - 0x884], 0x102
jne 0x40a899
mov dword [ebp - 0x878], 0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x870]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x828]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x878]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e301
mov esp, ebp
pop ebp
ret