Function at 0x14002c100
Capabilities:
Get keyboard layout

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xc0
xor ebx, ebx
movzx r13d, r9b
mov dword [rbp - 0x69], ebx
mov r12, rdx
mov word [rbp - 0x6b], bx
mov rax, rcx
movzx r15d, bx
mov esi, ebx
test r8b, r8b
je 0x14002c152
cmp byte [rcx + 0x64], bl
je 0x14002c152
mov cl, 1
jmp 0x14002c154
xor cl, cl
lea rdx, [rax + 0x74]
mov byte [rbp - 0x70], cl
mov r14, r12
mov qword [rbp - 0x59], rdx
lea rdx, [rax + 0x174]
mov qword [rsp + 0xb8], rdi
mov qword [rbp - 0x61], rdx
cmp word [r12], bx
je 0x14002c756
movzx edi, byte [rbp + 0x6f]
movzx r12d, byte [rbp + 0x6f]
mov byte [rbp - 0x71], dil
nop dword [rax]
mov word [rbp - 0x6d], bx
movzx eax, word [r14]
cmp ax, 0x7b
je 0x14002c2d6
cmp ax, 0x7d
je 0x14002c5ee
test cl, cl
je 0x14002c1ba
inc esi
mov dword [rbp - 0x69], esi
jmp 0x14002c5ee
xor ecx, ecx
mov word [rbp - 0x6d], ax
mov byte [rbp - 0x6f], 0
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp word [rbp - 0x6d], 0
jne 0x14002c1e0
xor sil, sil
xor dil, dil
mov byte [rbp - 0x71], dil
jmp 0x14002c57e
movzx r8d, word [rbp - 0x6b]
test r8w, r8w
jne 0x14002c20d
movzx ecx, word [rbp - 0x6d]
lea rdx, [rbp - 0x6f]
mov r9b, 1
mov r8, rax
call fcn.140023480
xor dil, dil
movzx esi, al
mov byte [rbp - 0x71], dil
jmp 0x14002c57e
movzx edx, word [rbp - 0x6d]
mov r9d, 0xffdf
movzx ecx, dx
and cx, r9w
lea eax, [rdx - 0x61]
cmp ax, 0x19
cmova cx, dx
cmp cx, 0x56
jne 0x14002c279
movzx ecx, r8w
lea eax, [r8 - 0x61]
and cx, r9w
cmp ax, 0x19
cmova cx, r8w
cmp cx, 0x4b
jne 0x14002c279
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x69]
call fcn.1400c4e1c
movzx ecx, al
mov esi, ebx
mov rax, qword [rbp - 0x51]
cmp word [rax], 0
cmove esi, ecx
xor dil, dil
mov byte [rbp - 0x71], dil
jmp 0x14002c57e
lea rsi, str.Numpad0
mov rdi, rbx
mov rbx, rsi
nop word [rax + rax]
mov rcx, qword [rbx]
lea rdx, [rbp - 0x6d]
call fcn.1400be170
test eax, eax
je 0x14002c2c2
inc rdi
lea rax, str._____:____.___n__t
add rbx, 0x10
cmp rbx, rax
jl 0x14002c290
xor sil, sil
xor dil, dil
mov byte [rbp - 0x71], dil
jmp 0x14002c57e
add rdi, rdi
movzx esi, byte [rsi + rdi*8 + 8]
xor dil, dil
mov byte [rbp - 0x71], dil
jmp 0x14002c57e
add r14, 2
mov edx, 0x7d
mov rcx, r14
call fcn.1400b97d8
mov r13, rax
test rax, rax
je 0x14002c5ea
mov rbx, rax
sub rbx, r14
sar rbx, 1
jne 0x14002c315
add r13, 2
cmp word [r13], 0x7d
jne 0x14002c5e8
mov ebx, 1
jmp 0x14002c31b
cmp rbx, 1
jne 0x14002c337
movzx ecx, byte [rbp - 0x70]
test cl, cl
je 0x14002c32f
inc esi
mov dword [rbp - 0x69], esi
xor ebx, ebx
jmp 0x14002c5ee
movzx eax, word [r14]
mov word [rbp - 0x6d], ax
add rbx, rbx
lea rcx, [rbp - 0x31]
mov r8, rbx
mov rdx, r14
call fcn.1400b9890
xor r14d, r14d
xor r12b, r12b
xor ecx, ecx
mov word [rbp + rbx - 0x31], r14w
mov byte [rbp - 0x6f], r12b
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx r10d, word [rbp - 0x31]
test r10w, r10w
jne 0x14002c377
xor sil, sil
mov r15d, r14d
jmp 0x14002c576
movzx edx, word [rbp - 0x2f]
movzx ecx, r10w
test dx, dx
jne 0x14002c39b
mov r9b, 1
lea rdx, [rbp - 0x6f]
mov r8, rax
call fcn.140023480
movzx esi, al
jmp 0x14002c445
mov ebx, 0xffdf
lea eax, [r10 - 0x61]
and cx, bx
cmp ax, 0x19
cmova cx, r10w
cmp cx, 0x56
jne 0x14002c3f2
movzx ecx, dx
lea eax, [rdx - 0x61]
and cx, bx
cmp ax, 0x19
cmova cx, dx
cmp cx, 0x4b
jne 0x14002c3f2
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x2d]
call fcn.1400c4e1c
movzx ecx, al
mov esi, r14d
mov rax, qword [rbp - 0x49]
cmp word [rax], si
cmove esi, ecx
jmp 0x14002c44a
lea rsi, str.Numpad0
mov rdi, r14
mov rbx, rsi
nop
mov rcx, qword [rbx]
lea rdx, [rbp - 0x31]
call fcn.1400be170
test eax, eax
je 0x14002c43d
inc rdi
lea rax, str._____:____.___n__t
add rbx, 0x10
cmp rbx, rax
jl 0x14002c400
xor sil, sil
cmp word [rbp - 0x31], r14w
jne 0x14002c4c1
movzx edi, byte [rbp - 0x71]
mov r15d, r14d
jmp 0x14002c576
add rdi, rdi
movzx esi, byte [rsi + rdi*8 + 8]
mov ebx, 0xffdf
test sil, sil
je 0x14002c426
movzx edx, word [rbp - 0x31]
movzx ecx, dx
and cx, bx
lea eax, [rdx - 0x61]
cmp ax, 0x19
cmova cx, dx
cmp cx, 0x56
jne 0x14002c491
movzx edx, word [rbp - 0x2f]
movzx ecx, dx
and cx, bx
lea eax, [rdx - 0x61]
cmp ax, 0x19
cmova cx, dx
cmp cx, 0x4b
jne 0x14002c491
mov dil, 1
mov byte [rbp - 0x71], dil
jmp 0x14002c576
xor dil, dil
mov dl, 1
movzx ecx, sil
mov byte [rbp - 0x71], dil
call fcn.140023e80
movzx r15d, ax
test ax, ax
je 0x14002c576
mov eax, 0x100
xor r15w, ax
xor sil, sil
jmp 0x14002c576
lea r15, str.NumpadEnter
mov rdi, r14
mov rbx, r15
nop
mov rcx, qword [rbx]
lea rdx, [rbp - 0x31]
call fcn.1400be170
test eax, eax
je 0x14002c569
inc rdi
lea rax, str.Numpad0
add rbx, 0x10
cmp rbx, rax
jl 0x14002c4d0
movzx ecx, word [rbp - 0x31]
lea eax, [rcx - 0x61]
cmp ax, 0x19
mov eax, ecx
ja 0x14002c509
and eax, 0xffffffdf
cmp ax, 0x53
jne 0x14002c563
movzx edx, word [rbp - 0x2f]
mov r8d, 0xffdf
movzx ecx, dx
and cx, r8w
lea eax, [rdx - 0x61]
cmp ax, 0x19
cmova cx, dx
cmp cx, 0x43
jne 0x14002c563
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x2d]
call fcn.1400c4e1c
movzx edi, byte [rbp - 0x71]
mov ecx, eax
mov rax, qword [rbp - 0x41]
cmp word [rax], r14w
je 0x14002c55a
movzx r15d, r14w
jmp 0x14002c576
mov r12b, 1
movzx r15d, cx
jmp 0x14002c576
movzx r15d, r14w
jmp 0x14002c572
add rdi, rdi
movzx r15d, word [r15 + rdi*8 + 8]
movzx edi, byte [rbp - 0x71]
mov r14, r13
movzx r13d, byte [rbp + 0x77]
test sil, sil
je 0x14002c5be
movzx ecx, word [rbp - 0x6d]
test cx, cx
je 0x14002c674
cmp byte [rbp + 0x6f], 0
je 0x14002c674
call qword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x14002c674
mov rcx, qword [rbp - 0x59]
movzx eax, sil
add rcx, rax
test byte [rbp - 0x6f], 0x30
sete al
inc al
or byte [rcx], al
movzx r8d, byte [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
test r15w, r15w
jne 0x14002c5d2
test r12b, r12b
je 0x14002c5e5
movzx ecx, r15w
movzx eax, r13b
not al
and al, byte [rcx + rdx]
or al, r8b
mov byte [rcx + rdx], al
mov esi, dword [rbp - 0x69]
xor ebx, ebx
movzx ecx, byte [rbp - 0x70]
movzx r13d, byte [rbp + 0x77]
add r14, 2
cmp word [r14], 0
jne 0x14002c190
mov r12, qword [rbp + 0x67]
test esi, esi
je 0x14002c74d
mov rbx, qword [rbp + 0x5f]
mov eax, dword [rbx + 0x30]
cmp esi, eax
jbe 0x14002c6d1
test eax, eax
je 0x14002c62a
mov rcx, qword [rbx + 0x28]
call fcn.1400be2e0
lea ecx, [rsi*2 + 2]
call fcn.1400be2f4
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x14002c6ce
mov rax, qword [0x1401243b8]
lea rdx, str.Out_of_memory.
mov qword [rsp + 0x28], rax
lea rcx, [0x140124530]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call fcn.14000f6b0
jmp 0x14002c77a
mov rcx, qword [rbp - 0x59]
movzx ebx, r13b
movzx r8d, byte [rbp + 0x7f]
not bl
movzx eax, sil
add rcx, rax
movzx eax, byte [rcx]
and al, bl
or al, r8b
mov byte [rcx], al
test r13b, r13b
je 0x14002c5c3
test dil, dil
jne 0x14002c5c3
xor edx, edx
movzx ecx, sil
call fcn.140023e80
mov rdx, qword [rbp - 0x61]
movzx r8d, byte [rbp + 0x7f]
test ax, ax
je 0x14002c5c7
movzx eax, ax
and byte [rax + rdx], bl
jmp 0x14002c5c7
mov dword [rbx + 0x30], esi
movzx eax, word [r12]
mov rbx, qword [rbx + 0x28]
test ax, ax
je 0x14002c746
nop
cmp ax, 0x7b
je 0x14002c6f5
cmp ax, 0x7d
je 0x14002c737
mov word [rbx], ax
add rbx, 2
jmp 0x14002c737
lea rdi, [r12 + 2]
mov edx, 0x7d
mov rcx, rdi
call fcn.1400b97d8
mov rcx, rax
test rax, rax
je 0x14002c737
cmp rax, rdi
jne 0x14002c720
add rax, 2
cmp word [rax], 0x7d
cmove rcx, rax
lea rax, [r12 + 4]
cmp rcx, rax
jne 0x14002c734
movzx eax, word [rdi]
mov word [rbx], ax
add rbx, 2
mov r12, rcx
movzx eax, word [r12 + 2]
add r12, 2
test ax, ax
jne 0x14002c6e0
xor eax, eax
mov word [rbx], ax
jmp 0x14002c775
mov rax, qword [rbp + 0x5f]
movzx r8d, byte [rbp + 0x6f]
test r8b, r8b
je 0x14002c775
cmp dword [rax + 0x30], 0
je 0x14002c76a
mov rax, qword [rax + 0x28]
mov word [rax], bx
jmp 0x14002c775
lea rcx, [0x1400f9b50]
mov qword [rax + 0x28], rcx
mov eax, 1
mov rdi, qword [rsp + 0xb8]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret