Function at 0x4613f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ce901
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xa0], ebx
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46163c
mov dword [esp + 0xc], ebx
mov byte [esp + 0xa0], 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 1
push ebx
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x461626
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x30], ebx
push ecx
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 1
mov byte [esp + 0x27], 0x10
mov dword [esp + 0x28], 0x2000
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 0x20
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea edx, [esp + 0x30]
push edx
push 0x19
push esi
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x461626
push 0x40
lea eax, [esp + 0x5c]
push ebx
push eax
mov dword [esp + 0x60], 0x44
call fcn.0051d400
mov ecx, dword [esp + 0xb4]
add esp, 0xc
push ecx
lea ecx, [esp + 0x18]
call fcn.0043bf90
mov byte [esp + 0xa0], 2
mov esi, dword [esp + 0xac]
cmp esi, ebx
je 0x461567
push 0x5dbdb8
lea ecx, [esp + 0x40]
call fcn.0043bf90
mov byte [esp + 0xa0], 3
push esi
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0xa0], 4
push eax
lea ecx, [esp + 0x18]
call fcn.0043a880
mov byte [esp + 0xa0], 3
lea ecx, [esp + 0x34]
call fcn.004381e0
mov byte [esp + 0xa0], 2
lea ecx, [esp + 0x3c]
call fcn.004381e0
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x461582
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00401ba0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x30]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x461615
mov ecx, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x48]
push edx
call esi
mov byte [esp + 0xa0], 1
lea ecx, [esp + 0x14]
call fcn.004381e0
mov byte [esp + 0xa0], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4615de
push eax
call esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4615f8
push eax
call esi
mov dword [esp + 0x10], ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
add esp, 0x98
ret
mov byte [esp + 0xa0], 1
lea ecx, [esp + 0x14]
call fcn.004381e0
mov byte [esp + 0xa0], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x46163c
push eax
call edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x461656
push eax
call edi
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret