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

Disassembly:
xor edx, edx
jmp 0x140079770
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov ebp, edx
mov rbx, rcx
call fcn.1400896e0
mov rdi, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140079829
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140079829
mov ecx, 0x50
call fcn.14007dbd0
mov rsi, rax
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
mov qword [rdi + 0x90], rax
lea rax, str.imgui_impl_win32
mov qword [rdi + 0x80], rax
or dword [rdi + 4], 0xc06
mov qword [rsi], rbx
mov byte [rsi + 0x30], 1
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x28], 9
call fcn.14007fae0
test rax, rax
je 0x140079830
call fcn.1400896e0
mov rbx, qword [rax + 0x90]
jmp 0x140079832
xor eax, eax
jmp 0x140079a86
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr eax, 0x10
add rbx, 0x2c
mov ecx, eax
mov edx, 0x20001004
mov r8, rbx
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140079861
mov dword [rbx], 0
call fcn.140099010
mov rcx, qword [rsi]
mov qword [rax + 0x50], rcx
mov qword [rax + 0x48], rcx
test byte [rdi + 1], 4
je 0x1400799ec
mov dword [rsp + 0x30], 0x50
movzx eax, bpl
shl eax, 5
or eax, 3
mov dword [rsp + 0x34], eax
lea rax, [0x14007bbc0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x48], rax
xorps xmm6, xmm6
movups xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 2
mov qword [rsp + 0x68], 0
lea rax, str.ImGui_Platform
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_RegisterClassExW]
call fcn.14007a430
call fcn.1400896f0
lea rcx, [0x14007bcf0]
mov qword [rax], rcx
lea rcx, [0x14007be30]
mov qword [rax + 8], rcx
lea rcx, [0x14007bec0]
mov qword [rax + 0x10], rcx
lea rcx, [0x14007bf30]
mov qword [rax + 0x18], rcx
lea rcx, [0x14007bfc0]
mov qword [rax + 0x20], rcx
lea rcx, [0x14007c020]
mov qword [rax + 0x28], rcx
lea rcx, [0x14007c0b0]
mov qword [rax + 0x30], rcx
lea rcx, [0x14007c110]
mov qword [rax + 0x38], rcx
lea rcx, [0x14007c140]
mov qword [rax + 0x40], rcx
lea rcx, [0x14007c160]
mov qword [rax + 0x48], rcx
lea rcx, [0x14007c180]
mov qword [rax + 0x50], rcx
lea rcx, [0x14007c280]
mov qword [rax + 0x58], rcx
lea rcx, [0x14007c310]
mov qword [rax + 0x60], rcx
lea rcx, [0x14007c480]
mov qword [rax + 0x78], rcx
lea rcx, [fcn.140007e50]
mov qword [rax + 0x80], rcx
call fcn.140099010
mov rdi, rax
call fcn.14007fae0
test rax, rax
je 0x1400799be
call fcn.1400896e0
mov rbx, qword [rax + 0x90]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14007dbd0
mov qword [rax + 0x14], 0
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov rcx, qword [rbx]
mov qword [rax], rcx
mov byte [rax + 0x10], 0
mov qword [rdi + 0x40], rax
mov rax, qword [rbx]
mov qword [rdi + 0x48], rax
mov byte [rsi + 0x32], 1
lea rcx, str.xinput1_4.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140079a59
lea rcx, str.xinput1_3.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140079a59
lea rcx, str.xinput9_1_0.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140079a59
lea rcx, str.xinput1_2.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140079a59
lea rcx, str.xinput1_1.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140079a84
mov qword [rsi + 0x38], rdi
lea rdx, str.XInputGetCapabilities
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
call rbx
mov qword [rsi + 0x40], rax
lea rdx, str.XInputGetState
mov rcx, rdi
call rbx
mov qword [rsi + 0x48], rax
mov al, 1
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
ret