Function at 0x1400020b0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
lea r8, [rsp + 0x20]
lea rdx, [0x1400d54f4]
lea rcx, [rsp + 0x28]
call fcn.140001e20
test eax, eax
jg 0x140002105
lea rcx, str.Could_not_scan_keyboard_layout_name___defaulting_to_US
call fcn.140041aa0
mov edx, 0x409
mov dword [rsp + 0x20], edx
jmp 0x140002109
mov edx, dword [rsp + 0x20]
lea rcx, str.Windows_KBID_0x_08x_n
call fcn.140041aa0
mov edx, dword [rsp + 0x20]
lea rdi, [0x140000000]
xor ebx, ebx
cmp edx, 0x402
ja 0x140002148
je case.0x140002253.66562
lea eax, [rdx - 1]
cmp eax, 0x43
ja case.0x140002253.66583
mov ecx, dword [rdi + rax*4 + 0x25f8]
add rcx, rdi
jmp rcx
cmp edx, 0x804
ja 0x140002179
je case.0x140002177.1028
lea eax, [rdx - 0x404]
cmp eax, 0x6a
ja case.0x140002253.66583
movzx eax, byte [rdi + rax + 0x27b8]
mov ecx, dword [rdi + rax*4 + 0x2708]
add rcx, rdi
jmp rcx
cmp edx, 0xc04
ja 0x1400021aa
je case.0x140002177.1028
lea eax, [rdx - 0x807]
cmp eax, 0x3c
ja case.0x140002253.66583
movzx eax, byte [rdi + rax + 0x2850]
mov ecx, dword [rdi + rax*4 + 0x2824]
add rcx, rdi
jmp rcx
cmp edx, 0x10401
ja 0x140002224
je case.0x140002146.1
cmp edx, 0x100c
ja 0x1400021f4
je 0x1400024bc
mov eax, edx
sub eax, 0xc0c
je 0x1400021e8
sub eax, 0xe
je 0x140002218
sub eax, 0x3ea
je case.0x140002177.1028
cmp eax, 5
jne case.0x140002253.66583
lea rax, [0x1400d4a0c]
jmp 0x1400025dd
cmp edx, 0x1404
je case.0x140002177.1028
cmp edx, 0x1809
je case.0x1400021a8.2056
cmp edx, 0x201a
jne case.0x140002253.66583
lea rax, [0x1400d4a78]
jmp 0x1400025dd
cmp edx, 0x1080c
ja 0x140002255
je case.0x1400021a8.2058
lea eax, [rdx - 0x10402]
cmp eax, 0x39
ja case.0x140002253.66583
movzx eax, byte [rdi + rax + 0x28e8]
mov ecx, dword [rdi + rax*4 + 0x2890]
add rcx, rdi
jmp rcx
cmp edx, 0x20427
ja 0x1400022e8
je case.0x140002253.66577
cmp edx, 0x20405
ja 0x1400022b8
je case.0x140002253.66563
mov eax, edx
sub eax, 0x1083b
je case.0x140002177.1035
sub eax, 0x7ce
je 0x1400021e8
sub eax, 0x800
je case.0x1400021a8.2056
sub eax, 0xebf8
je case.0x140002146.1
cmp eax, 1
jne case.0x140002253.66583
lea rax, [0x1400d4a60]
jmp 0x1400025dd
mov eax, edx
sub eax, 0x20408
je case.0x140002253.66565
sub eax, 1
je case.0x140002177.1033
sub eax, 0xf
je case.0x140002253.66572
cmp eax, 0xa
jne case.0x140002253.66583
lea rax, [0x1400d4a80]
jmp 0x1400025dd
cmp edx, 0x40408
ja 0x140002325
je case.0x140002253.66565
mov eax, edx
sub eax, 0x20437
je case.0x140002253.66580
sub eax, 0xffcb
je case.0x140002253.66562
sub eax, 6
je case.0x140002253.66565
sub eax, 1
je 0x1400025bb
cmp eax, 0xfff9
je case.0x140002253.66562
jmp case.0x140002253.66583
mov eax, edx
sub eax, 0x40409
je 0x1400025d6
sub eax, 0xffff
je case.0x140002253.66565
sub eax, 1
je case.0x140002177.1033
cmp eax, 0xffff
je case.0x140002253.66565
test ebx, ebx
jne 0x14000235d
and edx, 0x3ff
mov dword [rsp + 0x20], edx
jmp 0x140002385
cmp ebx, 1
jne 0x140002385
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edx, ax
lea rcx, str.Unable_to_match_KBID__trying_LangID_0x_04x
and edx, 0x3ff
mov dword [rsp + 0x20], edx
call fcn.140041aa0
mov edx, dword [rsp + 0x20]
inc ebx
cmp ebx, 3
jl 0x140002122
lea rcx, str.Unable_to_match_KBID_and_LangID___defaulting_to_US
call fcn.140041aa0
lea rax, [0x1400d4a58]
jmp 0x1400025dd
lea rax, [0x1400d4a14]
jmp 0x1400025dd
lea rax, [0x1400d4a18]
jmp 0x1400025dd
lea rax, [0x1400d4ac0]
jmp 0x1400025dd
lea rax, [0x1400d4a68]
jmp 0x1400025dd
lea rax, [0x1400d4a98]
jmp 0x1400025dd
lea rax, [0x1400d4ae8]
jmp 0x1400025dd
lea rax, [0x1400d4a7c]
jmp 0x1400025dd
lea rax, [0x1400d4a88]
jmp 0x1400025dd
lea rax, [0x1400d4aec]
jmp 0x1400025dd
lea rax, [0x1400d4af8]
jmp 0x1400025dd
lea rax, [0x1400d4ab8]
jmp 0x1400025dd
lea rax, [0x1400d4ac8]
jmp 0x1400025dd
lea rax, [0x1400d4acc]
jmp 0x1400025dd
lea rax, [0x1400d4af0]
jmp 0x1400025dd
lea rax, [0x1400d4ab0]
jmp 0x1400025dd
lea rax, [0x1400d4a40]
jmp 0x1400025dd
lea rax, [0x1400d4a28]
jmp 0x1400025dd
lea rax, [0x1400d4a2c]
jmp 0x1400025dd
lea rax, [0x1400d4a38]
jmp 0x1400025dd
lea rax, [0x1400d4a5c]
jmp 0x1400025dd
lea rax, [0x1400d4a50]
jmp 0x1400025dd
lea rax, [0x1400d4ab4]
jmp 0x1400025dd
lea rax, [0x1400d4af4]
jmp 0x1400025dd
lea rax, [0x1400d4a3c]
jmp 0x1400025dd
lea rax, [0x1400d4b84]
jmp 0x1400025dd
lea rax, [0x1400d4a1c]
jmp 0x1400025dd
lea rax, [0x1400d4a94]
jmp 0x1400025dd
lea rax, [0x1400d4a48]
jmp 0x1400025dd
lea rax, [0x1400d4a20]
jmp 0x1400025dd
lea rax, [0x1400d4a24]
jmp 0x1400025dd
lea rax, [0x1400d4a30]
jmp 0x1400025dd
lea rax, [0x1400d4a34]
jmp 0x1400025dd
lea rax, [0x1400d4a08]
jmp 0x1400025dd
lea rax, [0x1400d4a70]
jmp 0x1400025dd
lea rax, [0x1400d4a44]
jmp 0x1400025dd
lea rax, [0x1400d4a74]
jmp 0x1400025dd
lea rax, [0x1400d4ad4]
jmp 0x1400025dd
lea rax, [0x1400d4abc]
jmp 0x1400025dd
lea rax, [0x1400d4ad8]
jmp 0x1400025dd
lea rax, [0x1400d4ae0]
jmp 0x1400025dd
lea rax, [0x1400d4a04]
jmp 0x1400025dd
lea rax, [0x1400d4a84]
jmp 0x1400025dd
lea rax, [0x1400d4a54]
jmp 0x1400025dd
lea rax, [0x1400d4a4c]
jmp 0x1400025dd
lea rax, [0x1400d4a10]
jmp 0x1400025dd
lea rax, [0x1400d4a6c]
jmp 0x1400025dd
lea rax, [0x1400d4ad0]
jmp 0x1400025dd
lea rax, [0x1400d4a9c]
jmp 0x1400025dd
lea rax, [0x1400d4ac4]
jmp 0x1400025dd
lea rax, [0x1400d4a64]
jmp 0x1400025dd
lea rax, [0x1400d4aa0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140092060
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret