Function at 0x1400030a0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140193440]
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, [0x14015422c]
lea rcx, [rsp + 0x28]
call fcn.140002d80
test eax, eax
jg 0x1400030f5
lea rcx, str.Could_not_scan_keyboard_layout_name___defaulting_to_US
call fcn.14004f910
mov edx, 0x409
mov dword [rsp + 0x20], edx
jmp 0x1400030f9
mov edx, dword [rsp + 0x20]
lea rcx, str.Windows_KBID_0x_08x_n
call fcn.14004f910
xor ebx, ebx
lea rdi, [0x140000000]
mov edx, dword [rsp + 0x20]
cmp edx, 0x402
ja 0x140003138
je case.0x140003243.66562
lea eax, [rdx - 1]
cmp eax, 0x43
ja case.0x140003243.66583
mov ecx, dword [rdi + rax*4 + 0x35ec]
add rcx, rdi
jmp rcx
cmp edx, 0x804
ja 0x140003169
je case.0x140003167.1028
lea eax, [rdx - 0x404]
cmp eax, 0x6a
ja case.0x140003243.66583
movzx eax, byte [rdi + rax + 0x37ac]
mov ecx, dword [rdi + rax*4 + 0x36fc]
add rcx, rdi
jmp rcx
cmp edx, 0xc04
ja 0x14000319a
je case.0x140003167.1028
lea eax, [rdx - 0x807]
cmp eax, 0x3c
ja case.0x140003243.66583
movzx eax, byte [rdi + rax + 0x3844]
mov ecx, dword [rdi + rax*4 + 0x3818]
add rcx, rdi
jmp rcx
cmp edx, 0x10401
ja 0x140003214
je case.0x140003136.1
cmp edx, 0x100c
ja 0x1400031e4
je 0x1400034b2
mov eax, edx
sub eax, 0xc0c
je 0x1400031d8
sub eax, 0xe
je 0x140003208
sub eax, 0x3ea
je case.0x140003167.1028
cmp eax, 5
jne case.0x140003243.66583
lea rax, [0x140153740]
jmp 0x1400035d3
cmp edx, 0x1404
je case.0x140003167.1028
cmp edx, 0x1809
je case.0x140003198.2056
cmp edx, 0x201a
jne case.0x140003243.66583
lea rax, [0x1401537ac]
jmp 0x1400035d3
cmp edx, 0x1080c
ja 0x140003245
je case.0x140003198.2058
lea eax, [rdx - 0x10402]
cmp eax, 0x39
ja case.0x140003243.66583
movzx eax, byte [rdi + rax + 0x38dc]
mov ecx, dword [rdi + rax*4 + 0x3884]
add rcx, rdi
jmp rcx
cmp edx, 0x20427
ja 0x1400032d8
je case.0x140003243.66577
cmp edx, 0x20405
ja 0x1400032a8
je case.0x140003243.66563
mov eax, edx
sub eax, 0x1083b
je case.0x140003167.1035
sub eax, 0x7ce
je 0x1400031d8
sub eax, 0x800
je case.0x140003198.2056
sub eax, 0xebf8
je case.0x140003136.1
cmp eax, 1
jne case.0x140003243.66583
lea rax, [0x140153794]
jmp 0x1400035d3
mov eax, edx
sub eax, 0x20408
je case.0x140003243.66565
sub eax, 1
je case.0x140003167.1033
sub eax, 0xf
je case.0x140003243.66572
cmp eax, 0xa
jne case.0x140003243.66583
lea rax, [0x1401537b4]
jmp 0x1400035d3
cmp edx, 0x40408
ja 0x140003315
je case.0x140003243.66565
mov eax, edx
sub eax, 0x20437
je case.0x140003243.66580
sub eax, 0xffcb
je case.0x140003243.66562
sub eax, 6
je case.0x140003243.66565
sub eax, 1
je 0x1400035b1
cmp eax, 0xfff9
je case.0x140003243.66562
jmp case.0x140003243.66583
mov eax, edx
sub eax, 0x40409
je 0x1400035cc
sub eax, 0xffff
je case.0x140003243.66565
sub eax, 1
je case.0x140003167.1033
cmp eax, 0xffff
je case.0x140003243.66565
test ebx, ebx
jne 0x140003352
and edx, 0x3ff
mov dword [rsp + 0x20], edx
inc ebx
jmp 0x140003112
cmp ebx, 1
jne 0x14000337b
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0x3ff
lea rcx, str.Unable_to_match_KBID__trying_LangID_0x_04x
mov edx, eax
mov dword [rsp + 0x20], eax
call fcn.14004f910
inc ebx
jmp 0x14000310e
inc ebx
cmp ebx, 3
jl 0x140003112
lea rcx, str.Unable_to_match_KBID_and_LangID___defaulting_to_US
call fcn.14004f910
lea rax, [0x14015378c]
jmp 0x1400035d3
lea rax, [0x140153748]
jmp 0x1400035d3
lea rax, [0x14015374c]
jmp 0x1400035d3
lea rax, [0x1401537f4]
jmp 0x1400035d3
lea rax, [0x14015379c]
jmp 0x1400035d3
lea rax, [0x1401537cc]
jmp 0x1400035d3
lea rax, [0x14015381c]
jmp 0x1400035d3
lea rax, [0x1401537b0]
jmp 0x1400035d3
lea rax, [0x1401537bc]
jmp 0x1400035d3
lea rax, [0x140153820]
jmp 0x1400035d3
lea rax, [0x14015382c]
jmp 0x1400035d3
lea rax, [0x1401537ec]
jmp 0x1400035d3
lea rax, [0x1401537fc]
jmp 0x1400035d3
lea rax, [0x140153800]
jmp 0x1400035d3
lea rax, [0x140153824]
jmp 0x1400035d3
lea rax, [0x1401537e4]
jmp 0x1400035d3
lea rax, [0x140153774]
jmp 0x1400035d3
lea rax, [0x14015375c]
jmp 0x1400035d3
lea rax, [0x140153760]
jmp 0x1400035d3
lea rax, [0x14015376c]
jmp 0x1400035d3
lea rax, [0x140153790]
jmp 0x1400035d3
lea rax, [0x140153784]
jmp 0x1400035d3
lea rax, [0x1401537e8]
jmp 0x1400035d3
lea rax, [0x140153828]
jmp 0x1400035d3
lea rax, [0x140153770]
jmp 0x1400035d3
lea rax, [0x1401538b4]
jmp 0x1400035d3
lea rax, [0x140153750]
jmp 0x1400035d3
lea rax, [0x1401537c8]
jmp 0x1400035d3
lea rax, [0x14015377c]
jmp 0x1400035d3
lea rax, [0x140153754]
jmp 0x1400035d3
lea rax, [0x140153758]
jmp 0x1400035d3
lea rax, [0x140153764]
jmp 0x1400035d3
lea rax, [0x140153768]
jmp 0x1400035d3
lea rax, [0x14015373c]
jmp 0x1400035d3
lea rax, [0x1401537a4]
jmp 0x1400035d3
lea rax, [0x140153778]
jmp 0x1400035d3
lea rax, [0x1401537a8]
jmp 0x1400035d3
lea rax, [0x140153808]
jmp 0x1400035d3
lea rax, [0x1401537f0]
jmp 0x1400035d3
lea rax, [0x14015380c]
jmp 0x1400035d3
lea rax, [0x140153814]
jmp 0x1400035d3
lea rax, [0x140153738]
jmp 0x1400035d3
lea rax, [0x1401537b8]
jmp 0x1400035d3
lea rax, [0x140153788]
jmp 0x1400035d3
lea rax, [0x140153780]
jmp 0x1400035d3
lea rax, [0x140153744]
jmp 0x1400035d3
lea rax, [0x1401537a0]
jmp 0x1400035d3
lea rax, [0x140153804]
jmp 0x1400035d3
lea rax, [0x1401537d0]
jmp 0x1400035d3
lea rax, [0x1401537f8]
jmp 0x1400035d3
lea rax, [0x140153798]
jmp 0x1400035d3
lea rax, [0x1401537d4]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b1f80
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret