Function at 0x180054e50
Capabilities:
Get geographical location
Get keyboard layout
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
sub rsp, 0x68
mov rbx, qword [0x1800ee908]
mov rdi, rcx
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18005513d
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18005513d
mov qword [rsp + 0x60], rsi
mov ecx, 0x50
mov qword [rsp + 0x58], r14
call fcn.18002c7f0
xor r14d, r14d
mov qword [rsp + 0x20], rax
mov rsi, rax
test rax, rax
je 0x180054ec9
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 0x180054ecc
mov rsi, r14
or dword [rbx + 0xc], 6
lea rax, [0x1800da0b8]
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x90], rsi
mov qword [rsi], rdi
mov rax, qword [rsp + 0x90]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x98]
mov qword [rsi + 0x18], rax
mov rax, qword [0x1800ee908]
mov dword [rsi + 0x28], 9
test rax, rax
je 0x180054f1c
mov rbx, qword [rax + 0x90]
jmp 0x180054f1f
mov rbx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180054f4b
mov dword [rbx + 0x2c], r14d
mov rax, qword [0x1800ee908]
mov rbx, r14
mov rcx, qword [rax + 0x4b30]
mov rax, qword [rcx]
mov qword [rax + 0x28], rdi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x48], rax
mov byte [rsi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x28]
call fcn.1800cefe0
mov r10, rax
test rax, rax
jne 0x180054fd1
inc rbx
cmp rbx, 5
jl 0x180054fa3
mov r14, qword [rsp + 0x58]
mov al, 1
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop rdi
pop rbx
ret
mov qword [rsi + 0x38], r10
mov r8d, r14d
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x80], rbp
mov r9d, dword [rax + r10 + 0x88]
add r9, r10
mov ebx, dword [r9 + 0x24]
mov r11d, dword [r9 + 0x18]
add rbx, r10
test r11d, r11d
je 0x180055066
mov edi, dword [r9 + 0x20]
lea rbp, str.XInputGetCapabilities
nop word [rax + rax]
mov eax, r8d
mov rdx, rbp
lea rcx, [rdi + rax*4]
mov ecx, dword [rcx + r10]
add rcx, r10
je 0x18005505e
movzx eax, byte [rcx]
cmp al, 0x58
jne 0x180055050
sub rcx, rbp
nop dword [rax]
test al, al
je 0x180055047
cmp byte [rdx], r14b
je 0x180055050
movzx eax, byte [rcx + rdx + 1]
inc rdx
cmp al, byte [rdx]
je 0x180055030
jmp 0x180055050
cmp byte [rdx], r14b
je 0x1800550d8
movsx ecx, al
movsx eax, byte [rdx]
cmp ecx, eax
je 0x1800550d8
inc r8d
cmp r8d, r11d
jb 0x180055010
mov rax, r14
mov qword [rsi + 0x40], rax
mov r9d, r14d
movsxd rax, dword [r10 + 0x3c]
mov ebx, dword [rax + r10 + 0x88]
add rbx, r10
mov ebp, dword [rbx + 0x24]
mov r11d, dword [rbx + 0x18]
add rbp, r10
test r11d, r11d
je 0x18005511e
mov edi, dword [rbx + 0x20]
mov qword [rsp + 0x50], r15
lea r15, str.XInputGetState
mov eax, r9d
mov rdx, r15
lea rcx, [rdi + rax*4]
mov r8d, dword [rcx + r10]
add r8, r10
je 0x1800550fa
movzx ecx, byte [r8]
cmp cl, 0x58
jne 0x1800550f6
sub r8, r15
test cl, cl
je 0x1800550f1
cmp byte [rdx], r14b
je 0x1800550f6
movzx ecx, byte [r8 + rdx + 1]
inc rdx
cmp cl, byte [rdx]
je 0x1800550c0
jmp 0x1800550f6
mov ecx, dword [r9 + 0x1c]
mov eax, r8d
add rcx, r10
movzx edx, word [rbx + rax*2]
mov eax, dword [rcx + rdx*4]
add rax, r10
jmp 0x180055069
cmp byte [rdx], r14b
je 0x180055104
cmp cl, byte [rdx]
je 0x180055104
inc r9d
cmp r9d, r11d
jb 0x1800550a1
jmp 0x180055119
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, r9d
movzx edx, word [rbp + rax*2]
mov r14d, dword [rcx + rdx*4]
add r14, r10
mov r15, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
mov al, 1
mov qword [rsi + 0x48], r14
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop rdi
pop rbx
ret
xor al, al
add rsp, 0x68
pop rdi
pop rbx
ret