Function at 0x1400036c0
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, [0x1401542ac]
lea rcx, [rsp + 0x28]
call fcn.1400033a0
test eax, eax
jg 0x140003715
lea rcx, str.Could_not_scan_keyboard_layout_name___defaulting_to_US
call fcn.14004f2f0
mov edx, 0x409
mov dword [rsp + 0x20], edx
jmp 0x140003719
mov edx, dword [rsp + 0x20]
lea rcx, str.Windows_KBID_0x_08x_n
call fcn.14004f2f0
xor ebx, ebx
lea rdi, [0x140000000]
mov edx, dword [rsp + 0x20]
cmp edx, 0x402
ja 0x140003758
je case.0x140003863.66562
lea eax, [rdx - 1]
cmp eax, 0x43
ja case.0x140003863.66583
mov ecx, dword [rdi + rax*4 + 0x3c0c]
add rcx, rdi
jmp rcx
cmp edx, 0x804
ja 0x140003789
je case.0x140003787.1028
lea eax, [rdx - 0x404]
cmp eax, 0x6a
ja case.0x140003863.66583
movzx eax, byte [rdi + rax + 0x3dcc]
mov ecx, dword [rdi + rax*4 + 0x3d1c]
add rcx, rdi
jmp rcx
cmp edx, 0xc04
ja 0x1400037ba
je case.0x140003787.1028
lea eax, [rdx - 0x807]
cmp eax, 0x3c
ja case.0x140003863.66583
movzx eax, byte [rdi + rax + 0x3e64]
mov ecx, dword [rdi + rax*4 + 0x3e38]
add rcx, rdi
jmp rcx
cmp edx, 0x10401
ja 0x140003834
je case.0x140003756.1
cmp edx, 0x100c
ja 0x140003804
je 0x140003ad2
mov eax, edx
sub eax, 0xc0c
je 0x1400037f8
sub eax, 0xe
je 0x140003828
sub eax, 0x3ea
je case.0x140003787.1028
cmp eax, 5
jne case.0x140003863.66583
lea rax, [0x1401537c0]
jmp 0x140003bf3
cmp edx, 0x1404
je case.0x140003787.1028
cmp edx, 0x1809
je case.0x1400037b8.2056
cmp edx, 0x201a
jne case.0x140003863.66583
lea rax, [0x14015382c]
jmp 0x140003bf3
cmp edx, 0x1080c
ja 0x140003865
je case.0x1400037b8.2058
lea eax, [rdx - 0x10402]
cmp eax, 0x39
ja case.0x140003863.66583
movzx eax, byte [rdi + rax + 0x3efc]
mov ecx, dword [rdi + rax*4 + 0x3ea4]
add rcx, rdi
jmp rcx
cmp edx, 0x20427
ja 0x1400038f8
je case.0x140003863.66577
cmp edx, 0x20405
ja 0x1400038c8
je case.0x140003863.66563
mov eax, edx
sub eax, 0x1083b
je case.0x140003787.1035
sub eax, 0x7ce
je 0x1400037f8
sub eax, 0x800
je case.0x1400037b8.2056
sub eax, 0xebf8
je case.0x140003756.1
cmp eax, 1
jne case.0x140003863.66583
lea rax, [0x140153814]
jmp 0x140003bf3
mov eax, edx
sub eax, 0x20408
je case.0x140003863.66565
sub eax, 1
je case.0x140003787.1033
sub eax, 0xf
je case.0x140003863.66572
cmp eax, 0xa
jne case.0x140003863.66583
lea rax, [0x140153834]
jmp 0x140003bf3
cmp edx, 0x40408
ja 0x140003935
je case.0x140003863.66565
mov eax, edx
sub eax, 0x20437
je case.0x140003863.66580
sub eax, 0xffcb
je case.0x140003863.66562
sub eax, 6
je case.0x140003863.66565
sub eax, 1
je 0x140003bd1
cmp eax, 0xfff9
je case.0x140003863.66562
jmp case.0x140003863.66583
mov eax, edx
sub eax, 0x40409
je 0x140003bec
sub eax, 0xffff
je case.0x140003863.66565
sub eax, 1
je case.0x140003787.1033
cmp eax, 0xffff
je case.0x140003863.66565
test ebx, ebx
jne 0x140003972
and edx, 0x3ff
mov dword [rsp + 0x20], edx
inc ebx
jmp 0x140003732
cmp ebx, 1
jne 0x14000399b
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.14004f2f0
inc ebx
jmp 0x14000372e
inc ebx
cmp ebx, 3
jl 0x140003732
lea rcx, str.Unable_to_match_KBID_and_LangID___defaulting_to_US
call fcn.14004f2f0
lea rax, [0x14015380c]
jmp 0x140003bf3
lea rax, [0x1401537c8]
jmp 0x140003bf3
lea rax, [0x1401537cc]
jmp 0x140003bf3
lea rax, [0x140153874]
jmp 0x140003bf3
lea rax, [0x14015381c]
jmp 0x140003bf3
lea rax, [0x14015384c]
jmp 0x140003bf3
lea rax, [0x14015389c]
jmp 0x140003bf3
lea rax, [0x140153830]
jmp 0x140003bf3
lea rax, [0x14015383c]
jmp 0x140003bf3
lea rax, [0x1401538a0]
jmp 0x140003bf3
lea rax, [0x1401538ac]
jmp 0x140003bf3
lea rax, [0x14015386c]
jmp 0x140003bf3
lea rax, [0x14015387c]
jmp 0x140003bf3
lea rax, [0x140153880]
jmp 0x140003bf3
lea rax, [0x1401538a4]
jmp 0x140003bf3
lea rax, [0x140153864]
jmp 0x140003bf3
lea rax, [0x1401537f4]
jmp 0x140003bf3
lea rax, [0x1401537dc]
jmp 0x140003bf3
lea rax, [0x1401537e0]
jmp 0x140003bf3
lea rax, [0x1401537ec]
jmp 0x140003bf3
lea rax, [0x140153810]
jmp 0x140003bf3
lea rax, [0x140153804]
jmp 0x140003bf3
lea rax, [0x140153868]
jmp 0x140003bf3
lea rax, [0x1401538a8]
jmp 0x140003bf3
lea rax, [0x1401537f0]
jmp 0x140003bf3
lea rax, [0x140153934]
jmp 0x140003bf3
lea rax, [0x1401537d0]
jmp 0x140003bf3
lea rax, [0x140153848]
jmp 0x140003bf3
lea rax, [0x1401537fc]
jmp 0x140003bf3
lea rax, [0x1401537d4]
jmp 0x140003bf3
lea rax, [0x1401537d8]
jmp 0x140003bf3
lea rax, [0x1401537e4]
jmp 0x140003bf3
lea rax, [0x1401537e8]
jmp 0x140003bf3
lea rax, [0x1401537bc]
jmp 0x140003bf3
lea rax, [0x140153824]
jmp 0x140003bf3
lea rax, [0x1401537f8]
jmp 0x140003bf3
lea rax, [0x140153828]
jmp 0x140003bf3
lea rax, [0x140153888]
jmp 0x140003bf3
lea rax, [0x140153870]
jmp 0x140003bf3
lea rax, [0x14015388c]
jmp 0x140003bf3
lea rax, [0x140153894]
jmp 0x140003bf3
lea rax, [0x1401537b8]
jmp 0x140003bf3
lea rax, [0x140153838]
jmp 0x140003bf3
lea rax, [0x140153808]
jmp 0x140003bf3
lea rax, [0x140153800]
jmp 0x140003bf3
lea rax, [0x1401537c4]
jmp 0x140003bf3
lea rax, [0x140153820]
jmp 0x140003bf3
lea rax, [0x140153884]
jmp 0x140003bf3
lea rax, [0x140153850]
jmp 0x140003bf3
lea rax, [0x140153878]
jmp 0x140003bf3
lea rax, [0x140153818]
jmp 0x140003bf3
lea rax, [0x140153854]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b2a30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret