Function at 0x140027b90
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
mov qword [rsp + 0x108], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r12, rcx
lea rdx, [rax - 0x108]
mov rcx, qword [rcx + 0x4c0]
call fcn.140004c20
nop
mov ecx, 8
call fcn.1400797fc
xor ebp, ebp
test rax, rax
je 0x140027bed
lea rcx, [rsp + 0x50]
mov qword [rax], rcx
jmp 0x140027bf0
mov rax, rbp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rbp
xor r8d, r8d
lea edx, [r8 + 9]
lea rcx, [rsp + 0x50]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
sub rdx, rax
sar rdx, 1
jne 0x140027c31
call fcn.1400796a8
mov rax, qword [rsp + 0x68]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov word [rax + 0x10], cx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rax, rcx
sar rax, 1
jne 0x140027c5a
call fcn.1400796a8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
jne 0x140027cd0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rax, rcx
sar rax, 1
jne 0x140027c80
call fcn.1400796a8
mov rcx, qword [rsp + 0x68]
mov edi, 0x3f
mov word [rcx], di
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rax, rcx
sar rax, 1
cmp rax, 1
ja 0x140027ca8
call fcn.1400796a8
mov rcx, qword [rsp + 0x68]
mov word [rcx + 2], di
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rax, rcx
sar rax, 1
cmp rax, 2
ja 0x140027ccc
call fcn.1400796a8
mov rcx, qword [rsp + 0x68]
mov word [rcx + 4], di
lea rax, vtable.Rect.0
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x8c], ebp
mov dword [rsp + 0x90], ebp
mov dword [rsp + 0x94], ebp
lea rax, vtable.AutoLock.0
mov qword [rsp + 0x110], rax
lea rdi, [r12 + 0x2d8]
mov qword [rsp + 0x118], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [r12 + 0x380]
lea rdx, [rsp + 0x190]
call fcn.14000d790
mov esi, dword [rax + 8]
mov dword [rsp + 0x88], esi
mov r13d, dword [rax + 0xc]
mov dword [rsp + 0x8c], r13d
mov r15d, dword [rax + 0x10]
mov dword [rsp + 0x90], r15d
mov r14d, dword [rax + 0x14]
mov dword [rsp + 0x94], r14d
lea rcx, [r12 + 0x308]
mov rax, qword [rcx]
call qword [rax + 0xa8]
movzx eax, al
mov dword [rsp + 0x1e0], eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
lea rdx, vtable.StringStorage.0
mov qword [rsp + 0x98], rdx
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140027db6
lea rcx, [rsp + 0xa0]
mov qword [rax], rcx
jmp 0x140027db9
mov rax, rbp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xc0], rbp
mov qword [rsp + 0xc8], rbp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0xa0]
call fcn.14002bfc0
mov rdx, qword [rsp + 0xc0]
mov rdi, rdx
mov rbx, qword [rsp + 0xb8]
sub rdi, rbx
sar rdi, 1
add rdi, rdi
cmp rbx, rdx
jbe 0x140027e25
call fcn.1400796a8
mov rax, qword [rsp + 0xa0]
test rax, rax
jne 0x140027e3c
call fcn.1400796a8
mov rdx, rbp
jmp 0x140027e3f
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x140027e4a
call fcn.1400796a8
mov r8, rdi
lea rdx, [0x1400d1b20]
mov rcx, rbx
call fcn.14007ad70
nop
lea rdx, [rsp + 0x158]
mov rcx, qword [r12 + 0xe8]
call fcn.140046cd0
mov rbx, rax
lea rdx, [rsp + 0x120]
mov rcx, qword [r12 + 0xe8]
call fcn.140046d40
mov rdi, rax
mov rcx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
sub rcx, rbp
sar rcx, 1
jne 0x140027ea9
call fcn.1400796a8
mov rbp, qword [rsp + 0x68]
sub r14d, r13d
sub r15d, esi
mov rsi, qword [rbx + 0x20]
cmp rsi, qword [rbx + 0x28]
jbe 0x140027ebe
call fcn.1400796a8
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140027ed4
call fcn.1400796a8
xor r13d, r13d
mov rdx, r13
jmp 0x140027eda
mov rdx, qword [rdx]
xor r13d, r13d
cmp rsi, qword [rdx + 0x20]
jb 0x140027ee5
call fcn.1400796a8
mov rbx, qword [rdi + 0x20]
cmp rbx, qword [rdi + 0x28]
jbe 0x140027ef4
call fcn.1400796a8
mov rdx, qword [rdi + 8]
test rdx, rdx
jne 0x140027f07
call fcn.1400796a8
mov rdx, r13
jmp 0x140027f0a
mov rdx, qword [rdx]
cmp rbx, qword [rdx + 0x20]
jb 0x140027f15
call fcn.1400796a8
mov rdi, qword [rsp + 0xf0]
cmp rdi, qword [rsp + 0xf8]
jbe 0x140027f2c
call fcn.1400796a8
mov rax, qword [rsp + 0xd8]
test rax, rax
jne 0x140027f43
call fcn.1400796a8
mov r11, r13
jmp 0x140027f46
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x140027f51
call fcn.1400796a8
mov ecx, 0x8d
call fcn.14002c900
mov rdx, rax
mov qword [rsp + 0x40], rbp
mov eax, dword [rsp + 0x1e0]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov r8, rdi
lea rcx, [rsp + 0x98]
call fcn.14002ecb0
nop
lea rsi, vtable.StringStorage.0
mov qword [rsp + 0x120], rsi
mov rcx, qword [rsp + 0x140]
test rcx, rcx
je 0x140027fb2
call fcn.140078e60
mov qword [rsp + 0x140], r13
mov qword [rsp + 0x148], r13
mov qword [rsp + 0x150], r13
mov rcx, qword [rsp + 0x128]
call fcn.140078e60
nop
mov qword [rsp + 0x158], rsi
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x140027ff2
call fcn.140078e60
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x180], r13
mov qword [rsp + 0x188], r13
mov rcx, qword [rsp + 0x160]
call fcn.140078e60
mov rbx, qword [rsp + 0xb8]
cmp rbx, qword [rsp + 0xc0]
jbe 0x14002802e
call fcn.1400796a8
mov rax, qword [rsp + 0xa0]
test rax, rax
jne 0x140028045
call fcn.1400796a8
mov rdx, r13
jmp 0x140028048
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x140028053
call fcn.1400796a8
mov rdi, qword [r12 + 8]
mov ecx, 0x8b
call fcn.14002c900
mov r8, rax
mov r9d, 0x40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov qword [rsp + 0x98], rsi
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140028092
call fcn.140078e60
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], r13
mov rcx, qword [rsp + 0xa0]
call fcn.140078e60
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400280c7
call fcn.140078e60
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov rcx, qword [rsp + 0x50]
call fcn.140078e60
nop
mov qword [rsp + 0xd0], rsi
mov rcx, qword [rsp + 0xf0]
test rcx, rcx
je 0x1400280fb
call fcn.140078e60
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0x100], r13
mov rcx, qword [rsp + 0xd8]
call fcn.140078e60
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret