Function at 0x46a840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d10d
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x60b3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046ad80
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x46a8ef
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x198]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.UserProcessLauncher.cpp
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x14], 0x31
call fcn.00418540
mov edx, str.UserToken_is_null
lea ecx, [ebp - 0x198]
call fcn.004185a0
lea ecx, [ebp - 0x140]
call fcn.00459e90
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
xor al, al
jmp 0x46ad56
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
push ecx
push 1
push 2
push 0
push 0xf01ff
push eax
mov dword [ebp - 0x40], 0
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ecx, dword [ebp - 0x40]
mov edi, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
test eax, eax
jne 0x46a9b4
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x198]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], str.UserProcessLauncher.cpp
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x14], 0x40
call fcn.00418540
mov edx, str.DuplicateTokenEx_failed:
lea ecx, [ebp - 0x198]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x198]
call fcn.0043d580
lea ecx, [ebp - 0x140]
call fcn.00459e90
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
xor bl, bl
jmp 0x46ad40
cmp dword [ebx + 0xbc], 0
je 0x46abb8
cmp dword [ebx + 0xc0], 8
lea eax, [ebx + 0xac]
jb 0x46a9d2
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x46aa75
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x198]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x5efcc4
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x14], 0x85
call fcn.00418540
mov edx, str.ConvertStringSidToSid_failed:
lea ecx, [ebp - 0x198]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x198]
call fcn.0043d580
lea ecx, [ebp - 0x140]
call fcn.00459e90
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
mov byte [ebp - 4], 2
jmp 0x46ab3a
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 5
push esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0x20
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x48]
push eax
push 0x19
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x46abaa
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x5efcc4
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x50], 0x8d
call fcn.00418540
mov edx, str.SetTokenInformation_failed:
lea ecx, [ebp - 0xf8]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0xf8]
call fcn.0043d580
lea ecx, [ebp - 0xa0]
call fcn.00459e90
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
mov byte [ebp - 4], 2
test esi, esi
je 0x46ab3a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], str.UserProcessLauncher.cpp
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x44], 0x46
call fcn.00418540
mov edx, str.AddIntegrityToToken_failed
lea ecx, [ebp - 0xf8]
call fcn.004185a0
lea ecx, [ebp - 0xa0]
call fcn.00459e90
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
xor bl, bl
jmp 0x46ad40
test esi, esi
je 0x46abb5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x40]
push 0
push ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
mov dword [ebp - 0x3c], 0x30
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
test eax, eax
je 0x46abea
mov dword [ebp - 0x3c], 0x430
jmp 0x46abf1
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0046cd50
mov byte [ebp - 4], 9
cmp dword [ebp - 0x28], 0
jne 0x46ac5b
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], str.UserProcessLauncher.cpp
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x44], 0x5d
call fcn.00418540
mov edx, str.cmd_is_empty
lea ecx, [ebp - 0xf8]
call fcn.004185a0
lea ecx, [ebp - 0xa0]
call fcn.00459e90
mov byte [ebp - 4], 0xa
jmp 0x46ad0e
cmp dword [ebx + 0x44], 0
jne 0x46ac65
xor edx, edx
jmp 0x46ac70
cmp dword [ebx + 0x48], 8
lea edx, [ebx + 0x34]
jb 0x46ac70
mov edx, dword [edx]
cmp dword [ebp - 0x24], 8
lea eax, [ebx + 0x94]
push eax
lea eax, [ebx + 0x50]
push eax
push edx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x38]
push 0
push 0
push 0
push ecx
push 0
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x46ad2b
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], str.UserProcessLauncher.cpp
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x44], 0x66
call fcn.00418540
mov edx, str.CreateProcessAsUser_failed:
lea ecx, [ebp - 0xf8]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0xf8]
call fcn.0043d580
lea ecx, [ebp - 0xa0]
call fcn.00459e90
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], vtable.std::ios_base.0
push eax
call fcn.004f7d4c
add esp, 4
xor bl, bl
jmp 0x46ad2d
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.00417680
test esi, esi
je 0x46ad40
push esi
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x46ad4b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050fd4b
mov esp, ebp
pop ebp
ret