Function at 0x10036d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x98
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xb8]
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.10002e60
push edi
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.10002e60
xor edi, edi
push 0x40
xor eax, eax
lea edx, [esp + 0x68]
push edi
push edx
or ebx, 0xffffffff
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], edi
call sub.MSVCR100.dll_memset
mov eax, dword [str.S_1_16_4096]
mov ecx, dword [0x10045f44]
mov edx, dword [0x10045f48]
mov dword [esp + 0xb0], eax
mov eax, dword [0x10045f4c]
mov dword [esp + 0xb4], ecx
mov ecx, dword [0x10045f50]
mov dword [esp + 0xb8], edx
mov edx, dword [0x10045f54]
push str.TEMP
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
call fcn.10036c40
push 0x10045f2c
call fcn.10036c40
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 0x10036f16
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 1
push 2
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x10036f16
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
push ecx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x10036f16
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x10036f16
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 1
cmp eax, edi
je 0x10036edc
mov ecx, dword [eax]
jmp 0x10036ede
xor ecx, ecx
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x10036eea
mov eax, dword [eax]
jmp 0x10036eec
xor eax, eax
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x4c]
push edx
push edi
push edi
push edi
push 1
push edi
lea edx, [esp + 0x58]
push edx
push ecx
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x10036f16
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
cmp eax, edi
je 0x10036f32
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x10036f3d
push eax
call esi
mov eax, ebx
cdq
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov ebp, edx
cmp eax, edi
je 0x10036f8a
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x10036f86
cmp esi, edi
je 0x10036f86
mov eax, dword [esi]
cmp eax, edi
je 0x10036f6d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x10036f7d
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x10036fca
lea edx, [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x10036fca
cmp esi, edi
je 0x10036fca
mov eax, dword [esi]
cmp eax, edi
je 0x10036fb1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x10036fc1
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x98
ret 0x10