Function at 0x401e10
Capabilities:
Create process on windows
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41210b
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x41b068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x4dd], dl
mov edi, ecx
mov dword [ebp - 0x448], 0
push 0x14
xor eax, eax
mov dword [ebp - 0x438], 0
push 0x418274
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00404d30
cmp byte [ebp - 0x4dd], 0
mov dword [ebp - 4], 1
jne 0x401f5a
mov edx, dword [ebp - 0x434]
mov eax, edx
mov ecx, dword [ebp - 0x438]
sub eax, ecx
cmp eax, 1
jb 0x401ed0
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x448]
cmovae eax, dword [ebp - 0x448]
mov dword [eax + ecx*2], 0x20
jmp 0x401eea
push 1
push 0x418260
push dword [ebp - 0x424]
lea ecx, [ebp - 0x448]
push 1
call fcn.00404250
mov edx, dword [ebp - 0x434]
mov eax, edx
mov ecx, dword [ebp - 0x438]
sub eax, ecx
mov dword [ebp - 0x424], ecx
cmp eax, 0xd
jb 0x401f40
cmp edx, 8
lea esi, [ebp - 0x448]
lea eax, [ecx + 0xd]
cmovae esi, dword [ebp - 0x448]
push 0x1a
mov dword [ebp - 0x438], eax
push str.__no_shortcut
lea eax, [esi + ecx*2]
push eax
call fcn.00406360
mov eax, dword [ebp - 0x424]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax*2 + 0x1a], cx
jmp 0x401f5a
push 0xd
push str.__no_shortcut
push dword [ebp - 0x424]
lea ecx, [ebp - 0x448]
push 0xd
call fcn.00404250
cmp dword [edi + 0x14], 8
jb 0x401f62
mov edi, dword [edi]
push str.QQGame.exe
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x4f8], 0
xor eax, eax
mov dword [ebp - 0x4e8], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x4e4], 7
mov word [ebp - 0x4f8], ax
lea edx, [ecx + 2]
mov byte [ebp - 4], 1
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401fb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4f8]
call fcn.00404d30
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x510]
call fcn.00401c90
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x401ff9
mov edi, dword [edi]
lea eax, [ebp - 0x490]
mov dword [ebp - 0x430], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x430]
mov word [ebp - 0x42c], 0x500
push eax
mov dword [ebp - 0x490], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x40207a
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x490]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x490]
neg eax
sbb eax, eax
and dword [ebp - 0x428], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x428]
cmp eax, 1
jne 0x40211a
push 0x40
lea eax, [ebp - 0x488]
mov dword [ebp - 0x48c], 0x44
push 0
push eax
call fcn.004068e0
add esp, 0xc
lea eax, [ebp - 0x4a0]
xorps xmm0, xmm0
movups xmmword [ebp - 0x4a0], xmm0
push eax
lea eax, [ebp - 0x48c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402100
push dword [ebp - 0x49c]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x498]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x4a0]
jmp 0x4021f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x4a0]
jmp 0x4021f4
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004068e0
push edi
call fcn.00409289
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push esi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00409225
push esi
call fcn.004092e8
add esp, 0x10
mov dword [ebp - 0x4a4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4dc], 0x3c
lea eax, [ebp - 0x420]
movlpd qword [ebp - 0x4bc], xmm0
movlpd qword [ebp - 0x4b4], xmm0
push edi
movlpd qword [ebp - 0x4ac], xmm0
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4d0], 0x418264
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov dword [ebp - 0x4c8], eax
mov dword [ebp - 0x4d8], 0x540
mov dword [ebp - 0x4c4], 0
mov dword [ebp - 0x4c0], 1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x4dc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x4a4]
mov edi, 0x13213333
mov dword [ebp - 0x424], edi
test esi, esi
je 0x402227
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x4fc]
cmp ecx, 8
jb 0x402267
mov edx, dword [ebp - 0x510]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40225d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402328
push ecx
push edx
call fcn.00405a11
add esp, 8
mov ecx, dword [ebp - 0x4e4]
xor eax, eax
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4fc], 7
mov word [ebp - 0x510], ax
cmp ecx, 8
jb 0x4022c0
mov edx, dword [ebp - 0x4f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4022b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402328
push ecx
push edx
call fcn.00405a11
add esp, 8
mov ecx, dword [ebp - 0x434]
test edi, edi
sete al
mov byte [ebp - 0x4dd], al
cmp ecx, 8
jb 0x40230d
mov edx, dword [ebp - 0x448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4022fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40232d
push ecx
push edx
call fcn.00405a11
mov al, byte [ebp - 0x4dd]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004059e0
mov esp, ebp
pop ebp
ret
call fcn.00408a5f
call fcn.00408a5f
int3