Function at 0x10125200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181070
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x101f6008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov eax, dword [0x101fc6dc]
movlpd qword [ebp - 0x98], xmm0
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x9c], 0x44
movups xmmword [ebp - 0x58], xmm0
test eax, eax
jne 0x10125376
mov eax, dword [0x101fc6b8]
test eax, eax
jne 0x101252b4
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x101fc6b8], eax
test eax, eax
je 0x101252cd
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101fc6dc], eax
test eax, eax
jne 0x10125376
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fc64c], 0
je 0x10125799
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x10125799
cmp dword [eax + 0x58], 2
jb 0x10125799
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x1a
push str.WTSQueryUserToken_not_find
mov dword [ebp - 4], 0
call fcn.10006790
push 0x55f
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
cmp byte [ebp - 0x29], 0
je 0x10125362
lea eax, [ebp - 0x28]
mov ecx, 0x101fc64c
push eax
call fcn.10111790
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100062d0
jmp 0x10125799
call eax
mov ecx, eax
mov dword [ebp - 0x34], 0
mov eax, dword [0x101fc6d8]
mov dword [ebp - 0x3c], ecx
test eax, eax
jne 0x10125454
mov eax, dword [0x101fc6b8]
test eax, eax
jne 0x101253ae
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x101fc6b8], eax
test eax, eax
je 0x101253ca
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x3c]
mov dword [0x101fc6d8], eax
test eax, eax
jne 0x10125454
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fc64c], 0
je 0x10125799
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x10125799
cmp dword [eax + 0x58], 2
jb 0x10125799
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x1a
push str.WTSQueryUserToken_not_find
mov dword [ebp - 4], 1
call fcn.10006790
push 0x56d
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
cmp byte [ebp - 0x29], 0
jmp 0x10125352
lea edx, [ebp - 0x34]
push edx
push ecx
call eax
test eax, eax
jne 0x101254ed
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fc64c], 0
je 0x10125799
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x10125799
cmp dword [eax + 0x58], 2
jb 0x10125799
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x18
push str.WTSQueryUserToken_Failed
mov dword [ebp - 4], 2
call fcn.10006790
push 0x575
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
cmp byte [ebp - 0x29], 0
jmp 0x10125352
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x101255ac
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10125522
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fc64c], 0
je 0x10125799
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x10125799
cmp dword [eax + 0x58], 2
jb 0x10125799
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x17
push str.DuplicateTokenEx_Failed
mov dword [ebp - 4], 3
call fcn.10006790
push 0x588
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
cmp byte [ebp - 0x29], 0
jmp 0x10125352
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1012566e
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101255da
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x101255e4
push eax
call esi
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fc64c], 0
je 0x10125799
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x10125799
cmp dword [eax + 0x58], 2
jb 0x10125799
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x17
push str.DuplicateTokenEx_Failed
mov dword [ebp - 4], 4
call fcn.10006790
push 0x59d
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
cmp byte [ebp - 0x29], 0
jmp 0x10125352
cmp dword [esi + 0x14], 8
jb 0x10125676
mov esi, dword [esi]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x10125681
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push 0
push dword [ebp - 0x38]
push 0x430
push 0
push 0
push 0
push esi
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10125761
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x101256bd
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101256cd
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x101256d7
push eax
call esi
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fc64c], 0
je 0x10125799
push 0
mov ecx, 0x101fc64c
call fcn.10110b10
mov eax, dword [0x101fc64c]
cmp byte [eax + 0x54], 0
je 0x10125799
cmp dword [eax + 0x58], 2
jb 0x10125799
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x1a
push str.CreateProcessAsUser_Failed
mov dword [ebp - 4], 5
call fcn.10006790
push 0x5be
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:workcode_git_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fc64c
push eax
push 2
call fcn.10111470
cmp byte [ebp - 0x29], 0
jmp 0x10125352
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.10124960
mov ecx, eax
add esp, 4
mov eax, dword [ecx]
mov dword [edi], eax
cmp dword [edi], 0
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
jne 0x10125799
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov dword [edi], 0
mov eax, edi
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.10144424
mov esp, ebp
pop ebp
ret