Function at 0x1003a800
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
push edi
mov edi, dword [esp + 0xb0]
push eax
lea eax, [esp + 0x24]
push edi
push eax
call fcn.10003580
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.10003580
push 0x44
lea eax, [esp + 0x68]
xorps xmm0, xmm0
push 0
push eax
or edi, 0xffffffff
movups xmmword [esp + 0x60], xmm0
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
movq qword [esp + 0x4c], xmm0
movups xmm0, xmmword [str.S_1_16_4096]
push str.TEMP
mov dword [esp + 0x38], 0
movups xmmword [esp + 0xb8], xmm0
mov dword [esp + 0x3c], 0
movq xmm0, qword [0x10049a24]
movq qword [esp + 0xc8], xmm0
call fcn.1003a580
push 0x10049a38
call fcn.1003a580
add esp, 0x2c
lea eax, [esp + 0x18]
push eax
push 0x8b
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003a99e
lea eax, [esp + 0x10]
push eax
push 1
push 2
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1003a99e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x94]
push eax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x1003a99e
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [esp + 0x2c]
push eax
push 0x19
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1003a99e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
test eax, eax
je 0x1003a962
mov ecx, dword [eax]
jmp 0x1003a964
xor ecx, ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1003a970
mov eax, dword [eax]
jmp 0x1003a972
xor eax, eax
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push 0
push 1
push 0
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
cmovne edi, dword [esp + 0x3c]
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1003a9b9
push eax
call esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1003a9c4
push ecx
call esi
mov esi, dword [esp + 0x1c]
mov eax, edi
cdq
or ebp, 0xffffffff
mov ebx, edx
mov edx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, eax
test esi, esi
je 0x1003aa29
mov ecx, ebp
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x1003aa21
test esi, esi
je 0x1003aa21
mov eax, dword [esi]
test eax, eax
je 0x1003a9f9
push eax
call edx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1003aa10
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
mov edx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1003aa6e
lock xadd dword [esi + 8], ebp
dec ebp
jne 0x1003aa6e
test esi, esi
je 0x1003aa6e
mov eax, dword [esi]
test eax, eax
je 0x1003aa4c
push eax
call edx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1003aa63
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov ecx, dword [esp + 0xa8]
mov eax, edi
pop edi
pop esi
pop ebp
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.1003b4ee
add esp, 0x9c
ret 0x10