Function at 0x422120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x448ee6
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov edi, dword [esp + 0xd4]
mov esi, dword [esp + 0xd8]
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x422186
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, esi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4221a0
sub eax, esi
sar eax, 1
lea esi, [eax + edx + 2]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ff98
mov ebx, eax
lea eax, [esi + esi]
push eax
push ebp
push ebx
call fcn.004310d0
mov ecx, ebx
add esp, 0x10
mov eax, edi
sub ecx, edi
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp dx, bp
jne 0x4221e1
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x4221f5
mov ecx, dword [0x455958]
mov eax, dword [esp + 0x18]
mov dword [edi], ecx
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x422210
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x422222
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, vtable.ATL::CAccessToken.0
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0xcc], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push 0x40
lea edx, [esp + 0x5c]
push ebp
push edx
mov byte [esp + 0xd8], 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x60], 0x44
call fcn.004310d0
add esp, 0xc
push 0x8b
lea ecx, [esp + 0x30]
call fcn.00421c60
test al, al
je 0x4223b4
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
push 1
push ebp
push ebp
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4223b4
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x1c]
call eax
mov eax, dword [0x455944]
mov edx, dword [str.S_1_16_8192]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x9c], eax
mov eax, dword [0x455950]
mov dword [esp + 0x98], edx
mov edx, dword [0x45594c]
mov dword [esp + 0xa8], eax
xor eax, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [0x455948]
mov dword [esp + 0xa4], edx
lea edx, [esp + 0x14]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xa0], ecx
mov ecx, dword [0x455954]
push edx
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0xb4], ecx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push eax
mov dword [esp + 0x54], 0x20
mov dword [esp + 0x50], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea ecx, [esp + 0x50]
push ecx
push 0x19
push edi
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4223b4
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
push ebp
push 0x20
push ebp
push ebp
push ebp
push ebx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4223c3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, ebp
jne 0x4223e2
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
push ebp
push 0x20
push ebp
push ebp
push ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
push ebx
call fcn.00431216
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.004220d0
lea ecx, [esp + 0x2c]
call fcn.004220d0
mov eax, esi
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.004310bf
add esp, 0xbc
ret