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

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rsi, qword [0x140104e80]
mov r14, rcx
lea rcx, [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140040ebe
lea rcx, [rbp + 0x3f]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140040ebe
mov qword [rsp + 0xe0], rbx
mov ecx, 0x50
mov qword [rsp + 0xe8], rdi
call fcn.140009cf0
xor ebx, ebx
mov qword [rbp - 0x51], rax
mov rdi, rax
test rax, rax
je 0x140040ba3
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
jmp 0x140040ba6
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 qword [rdi], r14
mov byte [rdi + 0x30], 1
mov rax, qword [rbp + 0x37]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x3f]
mov qword [rdi + 0x18], rax
mov rax, qword [0x140104e80]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x140040bf5
mov r14, qword [rax + 0x98]
jmp 0x140040bf8
mov r14, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [r14 + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140040c24
mov dword [r14 + 0x2c], ebx
mov rax, qword [0x140104e80]
mov rcx, qword [rax + 0x4cd0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x50], rax
mov qword [rdx + 0x48], rax
test dword [rsi + 8], 0x400
je 0x140040e23
lea rax, [0x140043d70]
mov dword [rbp - 0x19], 0x50
xor ecx, ecx
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x15], 3
mov qword [rbp - 9], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movdqa xmm1, xmmword [0x1400ef190]
lea rcx, [rbp - 0x19]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
lea rax, str.ImGui_Platform
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x27], rax
movdqa xmmword [rbp + 0x17], xmm1
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [0x140104e80]
test rax, rax
je 0x140040cb9
mov r14, qword [rax + 0x98]
jmp 0x140040cbc
mov r14, rbx
lea rsi, [rax + 0x39d8]
mov ecx, dword [rsi + 4]
test ecx, ecx
jns 0x140040ce2
mov eax, ecx
cdq
sub eax, edx
mov edx, ebx
sar eax, 1
add eax, ecx
mov rcx, rsi
test eax, eax
cmovg edx, eax
call fcn.140043f20
xor r9d, r9d
mov dword [rsi], ebx
lea r8, [0x140041970]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov rcx, qword [0x140104e80]
lea rax, [0x140043390]
mov byte [r14 + 0x30], bl
mov qword [rcx + 0x3920], rax
lea rax, [0x140043580]
mov qword [rcx + 0x3928], rax
lea rax, [0x140043690]
mov qword [rcx + 0x3930], rax
lea rax, [0x140043960]
mov qword [rcx + 0x3938], rax
lea rax, [0x1400438f0]
mov qword [rcx + 0x3940], rax
lea rax, [0x140043a60]
mov qword [rcx + 0x3948], rax
lea rax, [0x1400439f0]
mov qword [rcx + 0x3950], rax
lea rax, [0x140043b00]
mov qword [rcx + 0x3958], rax
lea rax, [0x140043b30]
mov qword [rcx + 0x3960], rax
lea rax, [0x140043b50]
mov qword [rcx + 0x3968], rax
lea rax, [0x140043b70]
mov qword [rcx + 0x3970], rax
lea rax, [0x140043cb0]
mov qword [rcx + 0x3978], rax
lea rax, [0x140043700]
mov qword [rcx + 0x3980], rax
lea rax, [0x140043d40]
mov qword [rcx + 0x3998], rax
lea rax, [fcn.140002860]
mov qword [rcx + 0x39a0], rax
mov rax, qword [rcx + 0x4cd0]
mov r14, qword [rcx + 0x98]
mov ecx, 0x20
mov rsi, qword [rax]
call fcn.140009cf0
mov qword [rbp - 0x51], rax
mov rcx, rax
test rax, rax
je 0x140040e0c
mov qword [rax + 8], rbx
mov qword [rax], rbx
mov byte [rax + 0x10], bl
mov qword [rax + 0x14], rbx
jmp 0x140040e0f
mov rcx, rbx
mov rax, qword [r14]
mov qword [rcx], rax
mov byte [rcx + 0x10], bl
mov qword [rsi + 0x40], rcx
mov rax, qword [r14]
mov qword [rsi + 0x48], rax
lea rax, str.xinput1_4.dll
mov byte [rdi + 0x32], 1
mov qword [rbp - 0x49], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x41], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x39], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x31], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x29], rax
nop
mov rcx, qword [rbp + rbx*8 - 0x49]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140040e7e
inc rbx
cmp rbx, 5
jl 0x140040e60
jmp 0x140040eaa
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 + 0xe8]
mov al, 1
mov rbx, qword [rsp + 0xe0]
jmp 0x140040ec0
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400af310
lea r11, [rsp + 0xd0]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret