Function at 0x140081720
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x250
mov rbp, rcx
mov rbx, r9
xor ecx, ecx
mov r14, r8
mov rdi, rdx
xor sil, sil
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400f30c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400f30d0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140081938
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0xa0]
cmp word [rbx], 0
je 0x1400817a5
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rsp + 0x280]
cmp word [rdx], 0
je 0x1400817be
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rdx, qword [rsp + 0x288]
cmp word [rdx], 0
je 0x1400817d7
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_getservbyport]
mov rbx, qword [rsp + 0x2a0]
xor edi, edi
cmp word [rbx], di
je 0x14008180f
mov rcx, rbx
call fcn.140005a80
mov rcx, rbx
test al, al
je 0x140081805
xor edx, edx
lea r8d, [rdi + 0x10]
call fcn.1400d2570
mov r8d, eax
jmp 0x140081812
call fcn.1400d278c
mov r8d, eax
jmp 0x140081812
mov r8d, edi
mov rdx, qword [rsp + 0x290]
cmp word [rdx], di
je 0x140081837
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 + 0x298]
cmp word [rbx], 0
je 0x14008187a
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.140022190
test al, al
je 0x14008187a
mov rcx, qword [rsp + 0x30]
movzx edx, al
mov eax, 0x600
or dx, ax
mov r9, qword [rcx]
call qword [r9 + 0x68]
mov rbx, qword [rsp + 0x2a8]
cmp word [rbx], 0
je 0x1400818b6
mov rcx, rbx
call fcn.140005a80
mov rcx, rbx
test al, al
je 0x1400818a4
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.1400d2570
jmp 0x1400818a9
call fcn.1400d278c
mov rcx, qword [rsp + 0x30]
mov edx, eax
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1400f30e0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x14008192d
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 0x140081922
mov rcx, qword [0x140134210]
lea rdx, [0x1400fb96c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
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]
test sil, sil
je 0x14008194a
mov eax, 1
jmp 0x14008198d
mov rax, qword [0x14012fc08]
lea rdx, [0x14011037c]
test byte [rax + 0x140], 1
jne 0x14008197b
mov rcx, qword [0x140134210]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
jmp 0x14008198d
lea r9, [0x1400fb87c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050b90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret