Function at 0x6af9b0
Capabilities:
Get keyboard layout

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0x68], dl
mov qword [rbp + 0x70], r8
cmp byte [rbp + 0x68], 0
je 0x6af9e0
mov rcx, qword [rbp + 0x60]
movzx rdx, byte [rbp + 0x68]
call fcn.0040dcf0
mov qword [rbp + 0x60], rax
nop
mov rcx, qword [rbp + 0x60]
xor edx, edx
mov r8, qword [rbp + 0x70]
call fcn.0051b2c0
mov rax, qword [0x007e8460]
mov rcx, qword [rbp + 0x60]
mov qword [rax + 8], rcx
lea rcx, [0x006b01e0]
mov qword [rax], rcx
mov rax, qword [0x007e8480]
mov rcx, qword [rbp + 0x60]
mov qword [rax + 8], rcx
lea rcx, [0x006b0200]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x60]
call fcn.006b0220
xor ecx, ecx
call sub.user32.dll_GetKeyboardLayout
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x90], rax
mov rcx, qword [0x004c0ba8]
mov dl, 1
call fcn.0040d240
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0xa8], rax
mov rcx, qword [0x004c0ba8]
mov dl, 1
call fcn.0040d240
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0xb0], rax
mov rcx, qword [0x004c0ba8]
mov dl, 1
call fcn.0040d240
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0xb8], rax
mov rcx, qword [0x004c0ba8]
mov dl, 1
call fcn.0040d240
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0xc0], rax
mov rcx, qword [0x004c0ba8]
mov dl, 1
call fcn.0040d240
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0xf8], rax
xor ecx, ecx
call sub.user32.dll_GetDC
mov qword [rbp + 0x38], rax
mov rcx, qword [rbp + 0x38]
mov edx, 0x5a
call sub.gdi32.dll_GetDeviceCaps
mov rcx, qword [rbp + 0x60]
mov dword [rcx + 0x98], eax
xor ecx, ecx
mov rdx, qword [rbp + 0x38]
call sub.user32.dll_ReleaseDC
xor ecx, ecx
xor edx, edx
lea r8, [0x006a6e80]
mov rax, qword [rbp + 0x60]
mov r9, qword [rax + 0xc0]
call sub.user32.dll_EnumDisplayMonitors
mov rcx, qword [0x00588300]
mov dl, 1
call fcn.00591ab0
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x108], rax
mov rcx, qword [0x00588300]
mov dl, 1
call fcn.00591ab0
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x110], rax
mov rcx, qword [0x00588300]
mov dl, 1
call fcn.00591ab0
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x100], rax
mov rcx, qword [0x00588300]
mov dl, 1
call fcn.00591ab0
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x118], rax
mov rcx, qword [0x00588300]
mov dl, 1
call fcn.00591ab0
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x120], rax
mov rcx, qword [rbp + 0x60]
call fcn.006b0a40
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x108]
lea rax, [rax + 8]
mov rcx, qword [rbp + 0x60]
mov qword [rax + 8], rcx
lea rcx, [0x006b0790]
mov qword [rax], rcx
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x110]
lea rax, [rax + 8]
mov rcx, qword [rbp + 0x60]
mov qword [rax + 8], rcx
lea rcx, [0x006b0790]
mov qword [rax], rcx
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x100]
lea rax, [rax + 8]
mov rcx, qword [rbp + 0x60]
mov qword [rax + 8], rcx
lea rcx, [0x006b0790]
mov qword [rax], rcx
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x118]
lea rax, [rax + 8]
mov rcx, qword [rbp + 0x60]
mov qword [rax + 8], rcx
lea rcx, [0x006b0790]
mov qword [rax], rcx
mov rax, qword [rbp + 0x60]
mov rax, qword [rax + 0x120]
lea rax, [rax + 8]
mov rcx, qword [rbp + 0x60]
mov qword [rax + 8], rcx
lea rcx, [0x006b0790]
mov qword [rax], rcx
cmp byte [rbp + 0x68], 0
je 0x6afc71
mov rcx, qword [rbp + 0x60]
call fcn.0040dd30
mov qword [rbp + 0x60], rax
jmp 0x6afc71
mov rax, qword [rbp + 0x60]
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret