Function at 0x1400482e0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x14006d040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [0x14006da40]
mov rbp, rcx
test rdi, rdi
jne 0x140048329
mov r8d, 0x127f
lea rdx, str.C:Usersdillera_source_reposSenstepLogerImGUIexternalimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdi, qword [0x14006da40]
cmp qword [rdi + 0xa0], 0
je 0x14004834d
mov r8d, 0x9c
lea rdx, str.C:Usersdillera_source_reposSenstepLogerImGUIexternalimguiimgui_impl_win32.cpp
lea rcx, str.io.BackendPlatformUserData__nullptr___Already_initialized_a_platform_backend__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140048561
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140048561
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14006da40]
xor ebx, ebx
mov rsi, rax
test r8, r8
je 0x1400483fe
movsx rdx, word [r8 + 0x2750]
lea rax, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400483f3
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x2750], cx
movsx rax, cx
lea rax, [rax*8 + 0x2754]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x2748]
test rsi, rsi
je 0x14004841b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
jmp 0x14004841e
mov rsi, rbx
or dword [rdi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rdi + 0x90], rax
xor ecx, ecx
mov qword [rdi + 0xa0], rsi
mov qword [rsi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x28], 9
mov rdi, qword [rdi + 0xa0]
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rdi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140048485
mov dword [rdi + 0x2c], ebx
mov rdi, qword [0x14006da40]
cmp dword [rdi + 0x1e90], ebx
jg 0x1400484ae
mov r8d, 0x81a
lea rdx, str.C:Usersdillera_source_reposSenstepLogerImGUIexternalimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x1e98]
mov rcx, qword [rax]
mov rax, qword [rsi]
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rsi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140048521
inc rbx
cmp rbx, 5
jl 0x140048503
jmp 0x14004854d
lea rdx, str.XInputGetCapabilities
mov qword [rsi + 0x38], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [rsi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
mov rsi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140048563
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400521d0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret