Function at 0x470330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
mov eax, dword [0x55300c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.S_1_16_4096]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x658], edx
push eax
movups xmmword [ebp - 0x2c], xmm0
push 0x2000000
movq xmm0, qword [0x530cf4]
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x654], ecx
mov dword [ebp - 0x64c], 0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4703a8
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482225
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x6b8]
push 0x44
push 0
push eax
call fcn.004b62b0
add esp, 0xc
mov dword [ebp - 0x648], 0
lea eax, [ebp - 0x648]
push eax
push 1
push 2
push 0
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4703f4
mov ebx, 0x80004005
jmp 0x4705e0
mov eax, dword [ebp - 0x648]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x650]
push esi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x650], 0
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x4705ce
mov esi, dword [ebp - 0x650]
test esi, esi
je 0x4705ce
mov dword [ebp - 0x660], 0
push esi
mov dword [ebp - 0x660], 0x20
mov dword [ebp - 0x664], esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x664]
push eax
push 0x19
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4705c0
push 0x410
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.004b62b0
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004b62b0
mov eax, dword [ebp - 0x654]
lea ecx, [ebp - 0x644]
add esp, 0x18
mov ebx, 0x52ad90
test eax, eax
mov edx, 0x208
cmovne ebx, eax
mov eax, ecx
sub ebx, eax
nop dword [eax]
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x4704de
movzx eax, word [ebx + ecx]
test ax, ax
je 0x4704de
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4704c0
test edx, edx
lea eax, [ecx - 2]
mov ebx, 0x52ad90
mov edx, 0x104
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x658]
test eax, eax
cmovne ebx, eax
mov eax, ecx
sub ebx, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x47052e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x47052e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x470510
test edx, edx
lea eax, [ecx - 2]
xorps xmm0, xmm0
cmovne eax, ecx
xor ecx, ecx
movups xmmword [ebp - 0x674], xmm0
mov word [eax], cx
lea eax, [ebp - 0x674]
cmp word [ebp - 0x234], cx
push eax
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x234]
cmove eax, ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x644]
push eax
push ecx
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4705c0
mov eax, dword [ebp - 0x674]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47059e
push eax
call ebx
mov dword [ebp - 0x674], 0
mov eax, dword [ebp - 0x670]
test eax, eax
je 0x4705b5
push eax
call ebx
mov dword [ebp - 0x670], 0
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4705d3
push esi
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4705d3
mov ebx, 0x80004005
push dword [ebp - 0x65c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.00482225
mov esp, ebp
pop ebp
ret