Function at 0x140035820
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140113010]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rdi, rcx
mov dword [rbp - 0x20], 0x50
lea rax, [0x1400362e0]
mov dword [rbp - 0x1c], 0x40
xor r13d, r13d
mov qword [rbp - 0x18], rax
xor ecx, ecx
mov qword [rbp - 0x10], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
mov qword [rbp + 0x28], r13
xorps xmm1, xmm1
movdqa xmmword [rbp], xmm0
lea rsi, str.7k_LOADER
movdqa xmmword [rbp + 0x10], xmm1
lea rcx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov qword [rbp + 0x20], rsi
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov r12d, 1
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x1401041f8]
cvttss2si ebx, xmm0
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov qword [rsp + 0x58], r13
mov r9d, 0x80000000
mov qword [rsp + 0x50], rdi
cdq
mov qword [rsp + 0x48], r13
sub eax, edx
mov rdx, qword [rbp + 0x20]
mov r8, rsi
mov qword [rsp + 0x40], r13
xor ecx, ecx
sar eax, 1
mov dword [rsp + 0x38], 0x1a9
mov dword [rsp + 0x30], 0x271
mov dword [rsp + 0x28], ebx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x140104230]
cvttss2si eax, xmm0
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x1401dc438], rax
lea edx, [r13 - 0x14]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rcx, qword [0x1401dc438]
lea edx, [r13 - 0x14]
bts eax, 0x13
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1401dc438]
lea r9d, [r13 + 2]
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x1401042a0]
lea rdx, [rbp + 0x48]
mov rcx, qword [0x1401dc438]
movdqu xmmword [rbp + 0x48], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x1401dc438]
lea rdx, [0x1401dc440]
xorps xmm0, xmm0
movups xmmword [0x1401dc440], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
mov qword [rbp - 0x7c], r13
mov qword [rbp - 0x68], 2
mov qword [rbp - 0x50], 2
mov qword [rsp + 0x70], r13
mov dword [rbp - 0x80], 0x1c
mov dword [rsp + 0x78], 0x3c
mov rax, qword [0x1401dc438]
lea rbx, [0x1401dc460]
mov qword [rsp + 0x58], rbx
lea rdi, [0x1401dc468]
mov qword [rbp - 0x60], rax
lea rsi, [0x1401dc470]
lea rax, [rbp + 0x38]
mov dword [rsp + 0x7c], r12d
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, r12d
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x6c], 0x20
mov qword [rbp - 0x74], r12
mov qword [rbp - 0x58], r12
mov dword [rsp + 0x60], 0xb000
mov dword [rsp + 0x64], 0xa000
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x140035ab2
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x50], rax
lea edx, [r13 + 5]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x140035ad1
call fcn.140036260
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, r12d
jmp 0x14003623a
mov rcx, qword [0x1401dc470]
lea r9, [rbp + 0x30]
lea r8, [0x140103ca8]
mov qword [rsp + 0x1a8], r14
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [0x1401dc468]
lea r9, [0x1401dc478]
mov rdx, qword [rbp + 0x30]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1401dc438]
mov edx, 0xa
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1401dc438]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1401dbbe0]
test rbx, rbx
je 0x140035b49
inc dword [rbx + 0xf4]
mov rdx, qword [0x1401dbbd0]
mov ecx, 0x5e38
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
je 0x140035b6b
xor edx, edx
mov rcx, rax
call fcn.140001840
jmp 0x140035b6e
mov rax, r13
mov qword [0x1401dbbe0], rax
call fcn.140004d40
mov rax, qword [0x1401dbbe0]
test rbx, rbx
cmovne rax, rbx
mov qword [0x1401dbbe0], rax
mov qword [rax + 0x20], r13
call fcn.140036f30
xor ecx, ecx
call fcn.14001ae30
mov rsi, qword [0x1401dc438]
lea rcx, [rbp + 0x40]
mov rbx, qword [0x1401dbbe0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140035ceb
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140035ceb
mov rax, qword [0x1401dbbe0]
test rax, rax
je 0x140035be3
inc dword [rax + 0xf4]
mov rdx, qword [0x1401dbbd0]
mov ecx, 0x48
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, rax
test rax, rax
je 0x140035c16
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x140035c19
mov rdi, r13
or dword [rbx + 0xc], 6
lea rax, [0x140103a28]
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x98], rdi
mov rbx, r13
mov qword [rdi], rsi
mov rax, qword [rbp + 0x40]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x30]
mov qword [rdi + 0x18], rax
mov rax, qword [0x1401dbbe0]
mov dword [rdi + 0x28], 9
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x78], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x80], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x78], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x70], rax
mov byte [rdi + 0x2d], r12b
mov rcx, qword [rsp + rbx*8 + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140035cbf
inc rbx
cmp rbx, 5
jl 0x140035ca1
jmp 0x140035ceb
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x30], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [0x1401dbbe0]
mov r14, qword [0x1401dc460]
mov rsi, qword [0x1401dc468]
test rdi, rdi
je 0x140035d0b
inc dword [rdi + 0xf4]
mov rdx, qword [0x1401dbbd0]
mov ecx, 0x78
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
test rax, rax
je 0x140035d52
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x140035d55
mov rbx, r13
or dword [rdi + 0xc], 8
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
lea r8, [rsp + 0x60]
mov qword [rdi + 0xa0], rbx
lea rdx, [0x1401039f8]
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rbp - 0x40], r13
call qword [rax]
test eax, eax
jne 0x140035dd8
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [0x140103a08]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x140035dd8
mov rcx, qword [rsp + 0x68]
lea r8, [rbp - 0x40]
lea rdx, [0x140103a18]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
jne 0x140035dd8
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rbp - 0x40]
mov qword [rbx + 0x10], rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140035de8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035df8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
xor bl, bl
mov qword [rsp + 0x1b0], r15
nop word [rax + rax]
xorps xmm0, xmm0
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140035e96
nop dword [rax]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rsp + 0x78], 0x12
lea rcx, [rsp + 0x70]
movzx ebx, bl
cmove ebx, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140035e50
test bl, bl
jne 0x1400360a8
mov rdi, qword [0x1401dbbe0]
test rdi, rdi
je 0x140035eab
mov rax, qword [rdi + 0xa0]
jmp 0x140035eae
mov rax, r13
cmp qword [rax + 0x48], r13
jne 0x140035ec0
call fcn.140028040
mov rdi, qword [0x1401dbbe0]
test rdi, rdi
je 0x140035ece
mov rsi, qword [rdi + 0x98]
jmp 0x140035ed1
mov rsi, r13
xorps xmm0, xmm0
lea rdx, [rbp - 0x38]
movdqu xmmword [rbp - 0x38], xmm0
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x30]
lea rcx, [rbp + 0x40]
sub eax, dword [rbp - 0x38]
mov qword [rbp + 0x40], r13
movd xmm1, eax
mov eax, dword [rbp - 0x2c]
sub eax, dword [rbp - 0x34]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0x40]
xorps xmm1, xmm1
mov r14, qword [0x1401dbbe0]
mov rax, rcx
sub rax, qword [rsi + 0x18]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsi + 0x20]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [rsi + 0x18], rcx
test r14, r14
je 0x140035f56
mov r15, qword [r14 + 0x98]
jmp 0x140035f59
mov r15, r13
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [r15]
cmp rax, rcx
jne 0x140035fed
cmp byte [r14 + 0xdb], r13b
je 0x140035faf
cvttss2si eax, dword [r14 + 0xe08]
lea rdx, [rbp + 0x38]
mov dword [rbp + 0x38], eax
cvttss2si eax, dword [r14 + 0xe0c]
mov dword [rbp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x140035fa6
mov edx, dword [rbp + 0x3c]
mov ecx, dword [rbp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [r14 + 0xdb], r13b
jne 0x140035fed
cmp dword [r15 + 0x10], r13d
jne 0x140035fed
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140035fed
mov rcx, qword [r15]
lea rdx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140035fed
movd xmm2, dword [rbp + 0x34]
lea rcx, [r14 + 8]
movd xmm1, dword [rbp + 0x30]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.140002f20
call fcn.140028810
cmp byte [rdi + 0x78], r13b
je 0x140035fff
mov eax, 0xffffffff
jmp 0x14003600c
mov rax, qword [0x1401dbbe0]
mov eax, dword [rax + 0x4a78]
cmp dword [rsi + 0x28], eax
je 0x140036019
mov dword [rsi + 0x28], eax
call fcn.1400286a0
call fcn.1400289c0
call fcn.140007420
call fcn.140037cf0
call fcn.140009520
mov rcx, qword [0x1401dc460]
lea r8, [0x1401dc478]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0x58], xmm0
mov edx, r12d
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
mov rcx, qword [0x1401dc460]
lea r8, [rbp + 0x58]
mov rdx, qword [0x1401dc478]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x1401dbbe0]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov rcx, r13
add rax, 0x48
cmp byte [rax], r13b
cmovne rcx, rax
call fcn.1400275e0
mov rcx, qword [0x1401dc470]
xor r8d, r8d
mov edx, r12d
mov rax, qword [rcx]
call qword [rax + 0x40]
jmp 0x140035e20
mov rbx, qword [0x1401dbbe0]
call fcn.140005170
mov r15, qword [rsp + 0x1b0]
mov r14, qword [rsp + 0x1a8]
mov qword [0x1401dbbe0], r13
test rbx, rbx
je 0x1400360f9
mov rcx, rbx
call fcn.140019ed0
mov rax, qword [0x1401dbbe0]
test rax, rax
je 0x1400360ea
dec dword [rax + 0xf4]
mov rdx, qword [0x1401dbbd0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea rcx, [0x1401dbc00]
call fcn.140020c30
mov rdi, qword [0x1401dbbe0]
test rdi, rdi
je 0x14003611a
mov rbx, qword [rdi + 0xa0]
jmp 0x14003611d
mov rbx, r13
call fcn.140028580
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140036131
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003613f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003614e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x1401dbbe0]
mov qword [rdi + 0x90], r13
mov qword [rdi + 0xa0], r13
test rax, rax
je 0x14003616e
dec dword [rax + 0xf4]
mov rdx, qword [0x1401dbbd0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, qword [0x1401dbbe0]
test rax, rax
je 0x140036192
mov rbx, qword [rax + 0x98]
jmp 0x140036195
mov rbx, r13
mov rcx, qword [rbx + 0x30]
lea rdi, [rax + 8]
test rcx, rcx
je 0x1400361af
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1401dbbe0]
mov qword [rdi + 0x80], r13
mov qword [rdi + 0x90], r13
test rax, rax
je 0x1400361c8
dec dword [rax + 0xf4]
mov rdx, qword [0x1401dbbd0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rbx, qword [0x1401dbbe0]
call fcn.140005170
mov qword [0x1401dbbe0], r13
test rbx, rbx
je 0x140036218
mov rcx, rbx
call fcn.140019ed0
mov rax, qword [0x1401dbbe0]
test rax, rax
je 0x140036209
dec dword [rax + 0xf4]
mov rdx, qword [0x1401dbbd0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
call fcn.140036260
mov rcx, qword [0x1401dc438]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.1400a4b10
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret