Function at 0x10128da0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101850e0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x101fb008]
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 [0x102017c4]
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 0x10128f16
mov eax, dword [0x102017a0]
test eax, eax
jne 0x10128e54
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x102017a0], eax
test eax, eax
je 0x10128e6d
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102017c4], eax
test eax, eax
jne 0x10128f16
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x10201734], 0
je 0x10129339
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x10129339
cmp dword [eax + 0x58], 2
jb 0x10129339
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.100063f0
push 0x1a
push str.WTSQueryUserToken_not_find
mov dword [ebp - 4], 0
call fcn.10006870
push 0x55f
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
cmp byte [ebp - 0x29], 0
je 0x10128f02
lea eax, [ebp - 0x28]
mov ecx, 0x10201734
push eax
call fcn.10115340
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100063b0
jmp 0x10129339
call eax
mov ecx, eax
mov dword [ebp - 0x34], 0
mov eax, dword [0x102017c0]
mov dword [ebp - 0x3c], ecx
test eax, eax
jne 0x10128ff4
mov eax, dword [0x102017a0]
test eax, eax
jne 0x10128f4e
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x102017a0], eax
test eax, eax
je 0x10128f6a
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x3c]
mov dword [0x102017c0], eax
test eax, eax
jne 0x10128ff4
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x10201734], 0
je 0x10129339
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x10129339
cmp dword [eax + 0x58], 2
jb 0x10129339
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.100063f0
push 0x1a
push str.WTSQueryUserToken_not_find
mov dword [ebp - 4], 1
call fcn.10006870
push 0x56d
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
cmp byte [ebp - 0x29], 0
jmp 0x10128ef2
lea edx, [ebp - 0x34]
push edx
push ecx
call eax
test eax, eax
jne 0x1012908d
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x10201734], 0
je 0x10129339
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x10129339
cmp dword [eax + 0x58], 2
jb 0x10129339
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.100063f0
push 0x18
push str.WTSQueryUserToken_Failed
mov dword [ebp - 4], 2
call fcn.10006870
push 0x575
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
cmp byte [ebp - 0x29], 0
jmp 0x10128ef2
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 0x1012914c
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x101290c2
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 [0x10201734], 0
je 0x10129339
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x10129339
cmp dword [eax + 0x58], 2
jb 0x10129339
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.100063f0
push 0x17
push str.DuplicateTokenEx_Failed
mov dword [ebp - 4], 3
call fcn.10006870
push 0x588
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
cmp byte [ebp - 0x29], 0
jmp 0x10128ef2
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 0x1012920e
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1012917a
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10129184
push eax
call esi
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x10201734], 0
je 0x10129339
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x10129339
cmp dword [eax + 0x58], 2
jb 0x10129339
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.100063f0
push 0x17
push str.DuplicateTokenEx_Failed
mov dword [ebp - 4], 4
call fcn.10006870
push 0x59d
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
cmp byte [ebp - 0x29], 0
jmp 0x10128ef2
cmp dword [esi + 0x14], 8
jb 0x10129216
mov esi, dword [esi]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x10129221
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 0x10129301
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1012925d
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 0x1012926d
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10129277
push eax
call esi
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x10201734], 0
je 0x10129339
push 0
mov ecx, 0x10201734
call fcn.101146c0
mov eax, dword [0x10201734]
cmp byte [eax + 0x54], 0
je 0x10129339
cmp dword [eax + 0x58], 2
jb 0x10129339
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.100063f0
push 0x1a
push str.CreateProcessAsUser_Failed
mov dword [ebp - 4], 5
call fcn.10006870
push 0x5be
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10201734
push eax
push 2
call fcn.10115020
cmp byte [ebp - 0x29], 0
jmp 0x10128ef2
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.10128500
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 0x10129339
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.10147fe4
mov esp, ebp
pop ebp
ret