Function at 0x1400986d0
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
push rbp
sub rsp, 0x260
mov qword [rax + 8], rbx
mov rbp, rcx
mov qword [rax + 0x10], rsi
xor ecx, ecx
mov qword [rax + 0x18], rdi
mov rbx, r9
mov qword [rax - 0x10], r14
mov rdi, rdx
mov r14, r8
xor sil, sil
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1401192e0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401192f0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400989a6
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x250], r15
mov rax, qword [rcx]
call qword [rax + 0xa0]
cmp word [rbx], 0
je 0x14009875b
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rsp + 0x290]
cmp word [rdx], 0
je 0x140098774
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rdx, qword [rsp + 0x298]
cmp word [rdx], 0
je 0x14009878d
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
mov rbx, qword [rsp + 0x2b0]
xor edi, edi
mov r15d, 0xffdf
movzx eax, word [rbx]
test ax, ax
je 0x14009881a
mov rcx, rbx
cmp ax, 0x20
je 0x1400987b4
cmp ax, 9
jne 0x1400987be
movzx eax, word [rcx + 2]
add rcx, 2
jmp 0x1400987a8
test ax, ax
je 0x14009880d
cmp ax, 0x2d
je 0x1400987cf
cmp ax, 0x2b
jne 0x1400987d9
lea rax, [rcx + 2]
mov rcx, rax
movzx eax, word [rax]
cmp ax, 0x30
jne 0x14009880d
movzx eax, word [rcx + 2]
sub ax, 0x58
test r15w, ax
jne 0x14009880d
movzx ecx, word [rcx + 4]
call fcn.1400f57c0
test eax, eax
je 0x14009880d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1400f7190
mov r8d, eax
jmp 0x14009881d
mov rcx, rbx
call fcn.1400f73ac
mov r8d, eax
jmp 0x14009881d
mov r8d, edi
mov rdx, qword [rsp + 0x2a0]
cmp word [rdx], di
je 0x140098842
mov rcx, qword [rsp + 0x30]
test r8d, r8d
setg dil
sub r8d, edi
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rbx, qword [rsp + 0x2a8]
cmp word [rbx], 0
je 0x140098885
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140024340
test al, al
je 0x140098885
mov rcx, qword [rsp + 0x30]
movzx edx, al
mov eax, 0x600
or dx, ax
mov r8, qword [rcx]
call qword [r8 + 0x68]
mov rbx, qword [rsp + 0x2b8]
movzx edx, word [rbx]
test dx, dx
je 0x14009891c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x78]
mov rcx, rbx
cmp dx, 0x20
je 0x1400988b4
cmp dx, 9
jne 0x1400988be
movzx edx, word [rcx + 2]
add rcx, 2
jmp 0x1400988a8
test dx, dx
je 0x14009890b
cmp dx, 0x2d
je 0x1400988cf
cmp dx, 0x2b
jne 0x1400988da
movzx edx, word [rcx + 2]
lea rax, [rcx + 2]
mov rcx, rax
cmp dx, 0x30
jne 0x14009890b
movzx eax, word [rcx + 2]
sub ax, 0x58
test r15w, ax
jne 0x14009890b
movzx ecx, word [rcx + 4]
call fcn.1400f57c0
test eax, eax
je 0x14009890b
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
call fcn.1400f7190
jmp 0x140098913
mov rcx, rbx
call fcn.1400f73ac
mov rcx, qword [rsp + 0x30]
mov edx, eax
call rdi
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140119300]
mov rax, qword [rcx]
call qword [rax]
mov r15, qword [rsp + 0x250]
test eax, eax
js 0x14009899b
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x140098990
mov rcx, qword [0x140160738]
lea rdx, [0x14012054c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400d5e90
mov sil, 1
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + reloc.WSOCK32.dll_recv]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r14, qword [rsp + 0x258]
test sil, sil
mov rsi, qword [rsp + 0x278]
mov rdi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x270]
je 0x1400989df
mov eax, 1
add rsp, 0x260
pop rbp
ret
mov dl, 1
mov rcx, rbp
call fcn.1400629e0
add rsp, 0x260
pop rbp
ret