Function at 0x14004b9e0
Capabilities:
Get token membership

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0xa8]
sub rsp, 0x1a8
mov rax, qword [0x1402e2040]
xor rax, rsp
mov qword [rbp + 0x60], rax
lea rax, [0x14004c650]
mov dword [rbp - 0x30], 0x50
xor r12d, r12d
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x2c], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [rbp + 0x18], r12
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
lea rbx, str.Nonagon
movdqa xmmword [rbp], xmm1
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x10], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rbp - 0x18]
mov r9d, 0x80080000
mov rdx, qword [rbp + 0x10]
mov r8, rbx
mov qword [rsp + 0x58], r12
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea r9d, [r12 + 2]
mov r8b, 0xff
mov rcx, rax
mov qword [0x14037ce40], rax
mov edx, 0x22020a
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rbx, qword [0x14037ce40]
lea ecx, [r12 + 0x20]
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x14037ce38], rax
mov rcx, rax
test rax, rax
je 0x14004c5e9
lea rdx, [0x14037ce30]
mov qword [0x14037cdf0], r12
mov qword [rsp + 0x30], rdx
lea rsi, [0x14037cdf0]
mov qword [0x14037cdfc], r12
lea r8d, [r12 + 1]
mov dword [0x14037ce04], r12d
mov r9, rbx
mov qword [0x14037ce0c], r12
xor edx, edx
mov dword [0x14037ce14], r12d
mov qword [0x14037ce24], r12
mov dword [0x14037ce18], 1
mov dword [0x14037ce08], 1
mov dword [0x14037cdf8], r12d
mov dword [0x14037ce1c], 1
mov dword [0x14037ce20], 0x50
mov dword [0x14037ce2c], 1
mov rax, qword [rax]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x14004c5e2
mov rcx, qword [0x14037ce40]
xor edx, edx
mov qword [rsp + 0x1d0], rdi
mov qword [rsp + 0x1d8], r13
mov qword [rsp + 0x1e0], r14
mov qword [rsp + 0x1a0], r15
movaps xmmword [rsp + 0x190], xmm6
movaps xmmword [rsp + 0x180], xmm7
movaps xmmword [rsp + 0x170], xmm8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14037ce40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x14037cde0]
test rax, rax
je 0x14004bbe6
inc dword [rax + 0x3b0]
mov ecx, 0x40e8
call fcn.140061790
test rax, rax
je 0x14004bc01
xor edx, edx
mov rcx, rax
call fcn.140003030
jmp 0x14004bc04
mov rax, r12
cmp qword [0x14037cde0], r12
jne 0x14004bc14
mov qword [0x14037cde0], rax
mov rcx, rax
call fcn.14000a410
mov rax, qword [0x14037cde0]
test rax, rax
jne 0x14004bc48
mov r8d, 0xda0
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.140055324
mov rax, qword [0x14037cde0]
or dword [rax + 8], 0x400
lea r13, [rax + 8]
mov qword [r13 + 0x18], r12
test rax, rax
jne 0x14004bc7c
mov r8d, 0x997
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.140055324
mov rax, qword [0x14037cde0]
test dword [r13], 0x400
je 0x14004bc97
mov dword [rax + 0x1644], r12d
mov dword [rax + 0x1728], 0x3f800000
mov rdi, qword [0x14037ce40]
lea rcx, [0x14037ceb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004be93
lea rcx, [0x14037ceb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004be93
mov rbx, qword [0x14037cde0]
test rbx, rbx
jne 0x14004bcf4
mov r8d, 0xda0
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.140055324
mov rbx, qword [0x14037cde0]
or dword [rbx + 0xc], 0xc06
lea rax, str.imgui_impl_win32
mov qword [rbx + 0xe0], rax
mov qword [0x14037cea8], rdi
cmp dword [rbx + 0x1f28], r12d
jg 0x14004bd39
mov r8d, 0x6c8
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.h
lea rcx, str.i___0__i___Size
call fcn.140055324
mov rdi, qword [0x14037cea8]
mov rax, qword [rbx + 0x1f30]
mov rcx, qword [rax]
mov qword [rcx + 0x50], rdi
mov qword [rcx + 0x48], rdi
test dword [rbx + 8], 0x400
je 0x14004bd59
call fcn.140041200
lea rax, str.xinput1_4.dll
mov dword [rbx + 0x3c], 9
mov qword [rbp - 0x70], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x68], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x60], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x58], rax
lea rax, str.xinput1_1.dll
mov dword [rbx + 0x40], 0x25
mov dword [rbx + 0x44], 0x27
mov dword [rbx + 0x48], 0x26
mov dword [rbx + 0x4c], 0x28
mov dword [rbx + 0x50], 0x21
mov dword [rbx + 0x54], 0x22
mov dword [rbx + 0x58], 0x24
mov dword [rbx + 0x5c], 0x23
mov dword [rbx + 0x60], 0x2d
mov dword [rbx + 0x64], 0x2e
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], 0x20
mov dword [rbx + 0x70], 0xd
mov dword [rbx + 0x74], 0x1b
mov dword [rbx + 0x78], 0xd
mov dword [rbx + 0x7c], 0x41
mov dword [rbx + 0x80], 0x43
mov dword [rbx + 0x84], 0x56
mov dword [rbx + 0x88], 0x58
mov dword [rbx + 0x8c], 0x59
mov dword [rbx + 0x90], 0x5a
mov rbx, r12
mov qword [rbp - 0x50], rax
nop dword [rax]
mov rcx, qword [rbp + rbx*8 - 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x14004be5e
inc rbx
cmp rbx, 5
jl 0x14004be40
jmp 0x14004be93
lea rdx, str.XInputGetCapabilities
mov qword [0x14037ce90], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [0x14037ce98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14037cea0], rax
mov rbx, qword [0x14037cde0]
mov rdi, qword [0x14037ce30]
test rbx, rbx
jne 0x14004bec6
mov r8d, 0xda0
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.140055324
mov rbx, qword [0x14037cde0]
or dword [rbx + 0xc], 0x1008
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0xe8], rax
mov rcx, rdi
mov rax, qword [rdi]
mov qword [0x14037ce80], rdi
call qword [rax + 8]
test dword [rbx + 8], 0x400
je 0x14004bf66
mov rax, qword [0x14037cde0]
test rax, rax
jne 0x14004bf20
mov r8d, 0xda6
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___or_ImGui::SetCurrentContext____
call fcn.140055324
mov rax, qword [0x14037cde0]
lea rcx, [fcn.14003f270]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.14003f3a0]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x14003f440]
mov qword [rax + 0x1600], rcx
lea rcx, [0x14003f4c0]
mov qword [rax + 0x1608], rcx
lea rcx, [0x14003f610]
mov qword [rax + 0x1610], rcx
cmp qword [0x1402e2ab8], r12
jne 0x14004bfd9
mov rcx, qword [0x14037ce30]
lea rax, [0x1402e2ab8]
mov qword [rsp + 0x70], rax
lea rdx, [0x1402e2ac0]
mov qword [rsp + 0x68], r12
mov r9d, 0x15e
mov qword [rsp + 0x60], r12
mov r8d, 0x9886e
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemoryEx]
movss xmm7, dword [0x1402d7388]
xorps xmm0, xmm0
movss xmm8, dword [0x1402d73d0]
xorps xmm6, xmm6
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
nop dword [rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14004c037
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x14004c459
cmp qword [0x14037ce70], r12
jne 0x14004c045
call fcn.14003efe0
call fcn.14003fc90
call fcn.1400092f0
cmp dword [0x14037cec8], r12d
jne 0x14004c0e3
xor ecx, ecx
call fcn.140033460
movss xmm0, dword [0x14037b4f0]
ucomiss xmm0, xmm6
jp 0x14004c0d4
jne 0x14004c0d4
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
movd xmm0, dword [rbp - 0x38]
movd xmm1, dword [rbp - 0x34]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [0x14037b4e8], xmm0
subss xmm0, dword [0x14037b510]
movss dword [0x14037b4ec], xmm1
subss xmm1, dword [0x14037b514]
mulss xmm0, xmm7
mulss xmm1, xmm7
movss dword [0x14037b4f0], xmm0
movss dword [0x14037b4f4], xmm1
mov dword [0x14037cec8], 1
jmp 0x14004c1fa
call fcn.140002140
lea rax, [rbp - 0x40]
mov dword [rbp + 0x28], r12d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x20]
mov dword [rsp + 0x48], r12d
mov r9d, 0x220
mov dword [rsp + 0x40], r12d
mov r8d, 0x20
mov dword [rsp + 0x38], r12d
mov dl, 2
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov qword [rbp - 0x40], r12
mov dword [rbp + 0x20], r12d
mov word [rbp + 0x24], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14004c1f0
mov rdx, qword [rbp - 0x40]
lea r8, [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14004c159
mov dword [rbp + 0x28], r12d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x28], 1
jne 0x14004c1f0
cmp byte [0x1402e2ab1], r12b
je 0x14004c1fa
cmp byte [0x1402e2ab2], r12b
jne 0x14004c1fa
mov ecx, 1
mov byte [0x1402e2ab2], 1
call fcn.14004d5e0
lea rcx, [rbp - 0x78]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14004c750]
xor ecx, ecx
mov dword [rsp + 0x20], r12d
xor edx, edx
call fcn.1400618d0
mov qword [rbp - 0x80], rax
test rax, rax
je 0x14004c633
cmp dword [rbp - 0x78], r12d
je 0x14004c642
movaps xmm0, xmmword [rbp - 0x80]
lea rcx, [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm0
call fcn.14004d400
test eax, eax
jne 0x14004c642
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
jmp 0x14004c1fa
mov dword [0x1402e2ab4], 8
call fcn.14000ba70
mov rcx, qword [0x14037ce30]
mov r9d, 3
mov dword [rsp + 0x30], r12d
xor r8d, r8d
movss dword [rsp + 0x28], xmm8
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x14037ce30]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004c2a0
call fcn.14000bf60
mov rbx, qword [0x14037cde0]
cmp dword [rbx + 0x1f28], r12d
jg 0x14004c26d
mov r8d, 0x6c8
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.h
lea rcx, str.i___0__i___Size
call fcn.140055324
mov rax, qword [rbx + 0x1f30]
mov rcx, qword [rax]
mov rax, r12
add rcx, 0xa8
cmp byte [rcx], r12b
cmovne rax, rcx
mov rcx, rax
call fcn.14003e760
mov rcx, qword [0x14037ce30]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13], 0x400
je 0x14004c3db
call fcn.14001e000
mov r14, qword [0x14037cde0]
test r14, r14
jne 0x14004c2df
mov r8d, 0xda6
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___or_ImGui::SetCurrentContext____
call fcn.140055324
mov r14, qword [0x14037cde0]
mov eax, dword [r14 + 0x1628]
mov esi, 1
mov edi, esi
cmp eax, esi
jle 0x14004c35d
test rdi, rdi
js 0x14004c2fa
cmp esi, eax
jl 0x14004c313
mov r8d, 0x6c8
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.h
lea rcx, str.i___0__i___Size
call fcn.140055324
mov rax, qword [r14 + 0x1630]
mov rbx, qword [rax + rdi*8]
test dword [rbx + 4], 0x400
jne 0x14004c34d
mov rax, qword [r14 + 0x15c0]
test rax, rax
je 0x14004c33a
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [r14 + 0x1608]
test rax, rax
je 0x14004c34d
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [r14 + 0x1628]
inc esi
inc rdi
cmp esi, eax
jl 0x14004c2f1
mov esi, 1
mov edi, esi
cmp eax, esi
jle 0x14004c3d4
test rdi, rdi
js 0x14004c371
cmp esi, eax
jl 0x14004c38a
mov r8d, 0x6c8
lea rdx, str.D:_vsCS2menusemergency_loaderimguiimgui.h
lea rcx, str.i___0__i___Size
call fcn.140055324
mov rax, qword [r14 + 0x1630]
mov rbx, qword [rax + rdi*8]
test dword [rbx + 4], 0x400
jne 0x14004c3c4
mov rax, qword [r14 + 0x15c8]
test rax, rax
je 0x14004c3b1
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [r14 + 0x1610]
test rax, rax
je 0x14004c3c4
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [r14 + 0x1628]
inc esi
inc rdi
cmp esi, eax
jl 0x14004c368
lea rsi, [0x14037cdf0]
mov rcx, qword [0x14037ce30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14004c450
mov rcx, qword [0x14037ce30]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14004c450
call fcn.14003f0f0
mov rcx, qword [0x14037ce30]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp eax, 0x8876086c
jne 0x14004c44b
mov r8d, 0x34
lea rdx, str.D:_vsCS2menusemergency_loaderMain.h
lea rcx, [0x1402ce958]
call fcn.140055324
call fcn.14003efe0
cmp byte [0x1402e2ab0], r12b
je 0x14004c465
cmp dword [rbp + 0x38], 0x12
jne 0x14004c000
jmp 0x14004c46c
mov dword [rbp + 0x38], 0x12
call fcn.14001e830
call fcn.14003f0f0
mov rcx, qword [0x14037ce80]
test rcx, rcx
je 0x14004c48f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14037ce80], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
lea rcx, str.ImGui_Platform
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rcx, qword [0x14037ce90]
test rcx, rcx
je 0x14004c4b9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [0x14037cde0]
mov rcx, rbx
mov qword [0x14037ce90], r12
mov qword [0x14037ce98], r12
mov qword [0x14037cea0], r12
mov qword [0x14037cea8], r12
mov qword [0x14037ceb0], r12
mov qword [0x14037ceb8], r12
mov dword [0x14037b4e0], 9
mov byte [0x14037ce4c], r12b
mov byte [0x14037b32e], 1
call fcn.14000a7b0
cmp qword [0x14037cde0], rbx
jne 0x14004c51a
mov qword [0x14037cde0], r12
test rbx, rbx
je 0x14004c541
mov rcx, rbx
call fcn.14002ae40
mov rax, qword [0x14037cde0]
test rax, rax
je 0x14004c539
dec dword [rax + 0x3b0]
mov rcx, rbx
call fcn.14005beb8
mov rcx, qword [0x14037ce30]
test rcx, rcx
je 0x14004c55a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14037ce30], r12
mov rcx, qword [0x14037ce38]
test rcx, rcx
je 0x14004c573
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14037ce38], r12
mov rcx, qword [0x14037ce40]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassA]
movaps xmm7, xmmword [rsp + 0x180]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x190]
mov r15, qword [rsp + 0x1a0]
mov r14, qword [rsp + 0x1e0]
mov r13, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x1d0]
movaps xmm8, xmmword [rsp + 0x170]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14004d5c0
add rsp, 0x1a8
pop r12
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [0x14037ce38]
mov rdx, qword [0x14037ce30]
test rdx, rdx
je 0x14004c60c
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x14037ce38]
mov qword [0x14037ce30], r12
test rcx, rcx
je 0x14004c61e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14037ce38], r12
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, 1
jmp 0x14004c5c9
mov ecx, 6
mov dword [rbp - 0x78], r12d
call fcn.14004d178
int3
mov ecx, 1
call fcn.14004d178
int3