Function at 0x10046ec0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp qword [rsp + 0xb0], 0
je 0x10046f75
mov rcx, qword [rsp + 0xb0]
call fcn.10029b30
add rax, 1
mov rcx, qword [rsp + 0xa0]
add rcx, 0x23e
mov r8, qword [rsp + 0xb0]
mov rdx, rax
call fcn.1002a270
mov rax, qword [rsp + 0xa0]
add rax, 0x2a2
mov rcx, qword [rsp + 0xa0]
add rcx, 0x23e
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x32
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rcx
xor edx, edx
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0xcc]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x100471c2
cmp qword [rsp + 0xa8], 0
jne 0x10046f90
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0x404
je 0x10046fcf
cmp dword [rsp + 0x78], 0x411
je 0x10046fe3
cmp dword [rsp + 0x78], 0x412
je 0x10046ff7
cmp dword [rsp + 0x78], 0x804
je 0x1004700b
jmp 0x1004701f
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x2d4], 1
jmp 0x10047031
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x2d4], 2
jmp 0x10047031
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x2d4], 3
jmp 0x10047031
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x2d4], 4
jmp 0x10047031
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x2d4], 0
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x2d4], 0
je 0x1004706b
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x2d4]
lea rcx, [0x1006d650]
mov rdx, qword [rsp + 0xa0]
mov eax, dword [rcx + rax*4]
mov dword [rdx + 0xcc], eax
jmp 0x1004707f
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 0xcc], eax
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x2d4]
lea rcx, [0x1006d664]
mov rdx, qword [rsp + 0xa0]
movzx eax, byte [rcx + rax]
mov byte [rdx + 0xd0], al
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x2d4]
imul rax, rax, 0x13
lea rcx, [0x1006d670]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.10029b30
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x2d4]
imul rax, rax, 0x13
lea rcx, [0x1006d670]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xa0]
movsxd rcx, dword [rcx + 0x2d4]
imul rcx, rcx, 0x13
lea rdx, [0x1006d670]
add rdx, rcx
mov rcx, rdx
call fcn.10029b30
add rax, 1
mov rcx, qword [rsp + 0xa0]
add rcx, 0x23e
mov rdx, qword [rsp + 0x80]
mov r8, rdx
mov rdx, rax
call fcn.1002a270
mov rax, qword [rsp + 0xa0]
add rax, 0x2a2
mov rcx, qword [rsp + 0xa0]
add rcx, 0x23e
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x32
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rcx
xor edx, edx
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0xcc]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, 4
mov rcx, qword [rsp + 0xa8]
call sub.IMM32.dll_ImmGetProperty
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 0xc8], eax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xd8], 0
je 0x100471e9
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0xd8]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x2d8], 0
je 0x1004728b
mov rax, qword [rsp + 0xa0]
add rax, 0x23e
mov rcx, qword [rsp + 0xa0]
movzx ecx, byte [rcx + 0xd0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x190
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.GDI32.dll_CreateFontW]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0xd8], rax
jmp 0x10047313
mov rax, qword [rsp + 0xa0]
add rax, 0x2a2
mov rcx, qword [rsp + 0xa0]
movzx ecx, byte [rcx + 0xd0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x190
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.GDI32.dll_CreateFontA]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0xd8], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xd8], 0
jne 0x100474dc
lea rcx, [0x1006d670]
call fcn.10029b30
add rax, 1
mov rcx, qword [rsp + 0xa0]
add rcx, 0x23e
lea r8, [0x1006d670]
mov rdx, rax
call fcn.1002a270
mov rax, qword [rsp + 0xa0]
add rax, 0x2a2
mov rcx, qword [rsp + 0xa0]
add rcx, 0x23e
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x32
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rcx
xor edx, edx
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rax + 0xcc]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x2d8], 0
je 0x10047454
mov rax, qword [rsp + 0xa0]
add rax, 0x23e
mov rcx, qword [rsp + 0xa0]
movzx ecx, byte [rcx + 0xd0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x190
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.GDI32.dll_CreateFontW]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0xd8], rax
jmp 0x100474dc
mov rax, qword [rsp + 0xa0]
add rax, 0x2a2
mov rcx, qword [rsp + 0xa0]
movzx ecx, byte [rcx + 0xd0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x190
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.GDI32.dll_CreateFontA]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0xd8], rax
mov rcx, qword [rsp + 0xa0]
call fcn.10046380
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call fcn.10002200
add rsp, 0x98
ret