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

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1400d1010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400d1b50]
mov rbp, rcx
test rsi, rsi
jne 0x14006fdc9
mov r8d, 0x1163
lea rdx, [0x140081810]
lea rcx, [0x140081860]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rsi, qword [0x1400d1b50]
cmp qword [rsi + 0x98], 0
je 0x14006fded
mov r8d, 0x9e
lea rdx, [0x1400c23a0]
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 + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14007002e
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14007002e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1400d1b50]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14006fe9e
movsx rdx, word [r8 + 0x6348]
lea rax, [r8 + 0x634c]
mov r9d, dword [r8 + 0x40c8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14006fe93
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 + 0x6348], cx
movsx rax, cx
lea rax, [rax*8 + 0x634c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6340]
test rdi, rdi
je 0x14006fec6
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov dword [rdi + 0x2c], ebx
mov qword [rdi + 0x31], rbx
mov qword [rdi + 0x39], rbx
mov qword [rdi + 0x41], rbx
mov dword [rdi + 0x49], ebx
mov word [rdi + 0x4d], bx
mov byte [rdi + 0x4f], bl
jmp 0x14006fec9
mov rdi, rbx
or dword [rsi + 0xc], 0xc06
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
mov qword [rdi], rbp
mov byte [rdi + 0x30], 1
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14006ff13
mov rbp, qword [r8 + 0x98]
jmp 0x14006ff16
mov rbp, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbp + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14006ff41
mov dword [rbp + 0x2c], ebx
mov rbp, qword [0x1400d1b50]
cmp dword [rbp + 0x4cb0], ebx
jg 0x14006ff6a
mov r8d, 0x828
lea rdx, str.F:devcfgimguidockimguiimgui.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 [rbp + 0x4cb8]
mov rcx, qword [rax]
mov rax, qword [rdi]
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x48], rax
test dword [rsi + 8], 0x400
je 0x14006ff8d
call fcn.140073550
lea rax, str.xinput1_4.dll
mov byte [rdi + 0x32], 1
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x60], rax
nop dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14006ffee
inc rbx
cmp rbx, 5
jl 0x14006ffd0
jmp 0x14007001a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x140070030
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007c130
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret