Function at 0x1400049c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x140015128]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor r12d, r12d
lea rax, [0x140010140]
mov qword [rcx], rax
mov rsi, r8
mov dword [rcx + 0x240], r12d
lea rax, [0x1400100f8]
mov rbx, rcx
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r12
lea r13d, [r12 + 1]
mov qword [rcx + 0x18], r13
xor edx, edx
mov qword [rcx + 0x668], r12
mov r8d, 0x200
mov qword [rcx + 0x6b0], r12
mov r14, r9
mov dword [rcx + 0x20], r12d
mov qword [rcx + 0x230], r12
mov qword [rcx + 0x238], r12
mov qword [rcx + 0x674], r12
mov qword [rcx + 0x67c], r12
mov qword [rcx + 0x698], r12
mov qword [rcx + 0x6a0], r12
mov qword [rcx + 0x6a8], r12
add rcx, 0x24
call sub.msvcrt.dll_memset
mov edi, 0x208
lea rcx, [rbx + 0x244]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rbx + 0x44c]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
lea rdi, [rbx + 0x658]
mov dword [rsp + 0x38], 8
lea rcx, [rsp + 0x38]
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov dword [rsp + 0x3c], 0x8000
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
nop dword [rax + rax]
test r14, r14
je 0x140004af7
mov edx, dword [rbp + 0x360]
mov r9d, r13d
mov r8, rdi
mov dword [rbx + 0x240], r13d
mov rcx, r14
call fcn.140009724
test eax, eax
js 0x140004e96
call qword [sym.imp.SHELL32.dll_Ordinal_258]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 4
call qword [sym.imp.bthprops.cpl_BluetoothFindFirstRadio]
nop dword [rax + rax]
test rax, rax
je 0x140004b3a
mov rcx, rax
call qword [sym.imp.bthprops.cpl_BluetoothFindRadioClose]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004b50
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rbx + 0x688], rax
test rax, rax
je 0x140004e7e
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rbx + 0x690], rax
test rax, rax
je 0x140004e6b
lea rax, [rsp + 0x48]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140007890]
xor edx, edx
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x140004e58
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x340
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x60]
call sub.msvcrt.dll_memset
mov r14, qword [0x140015828]
lea rcx, [rbp - 0x4c]
mov edx, r12d
add edx, r13d
mov dword [rcx - 4], 0x68
mov dword [rcx], 0x1000
mov qword [rcx + 4], r14
mov qword [rcx + 0x2c], rbx
lea rcx, [rcx + 0x68]
cmp edx, 8
jb 0x140004c02
mov edx, dword [rsp + 0x78]
lea rax, [0x1400051a0]
imul rcx, rdx, 0x68
lea edi, [rdx + 1]
mov qword [rbp + rcx - 0x40], 0x2777
mov qword [rbp + rcx - 0x28], rax
mov qword [rbp + rcx - 8], 0x2af9
mov ecx, edi
imul rax, rcx, 0x68
mov qword [rbp + rax - 0x40], 0x2779
imul rax, rcx, 0x68
lea rcx, [0x140005c80]
mov qword [rbp + rax - 0x28], rcx
mov qword [rbp + rax - 8], 0x908
test rsi, rsi
je 0x140004c93
lea rdx, str._send
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140004c93
mov qword [rbx + 0x18], r13
mov dword [rbp - 0x80], edi
lea edx, [rdi + 1]
mov eax, edx
lea edi, [rdx + 1]
imul rcx, rax, 0x68
lea rax, [0x140005db0]
mov qword [rbp + rcx - 0x40], 0x277a
mov qword [rbp + rcx - 0x28], rax
mov qword [rbp + rcx - 8], 0x909
mov eax, edi
imul rcx, rax, 0x68
lea rax, [0x140006170]
mov qword [rbp + rcx - 0x40], 0x277c
mov qword [rbp + rcx - 0x28], rax
mov qword [rbp + rcx - 8], 0x90c
test rsi, rsi
je 0x140004d04
lea rdx, str._receive
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140004d04
mov dword [rbx + 0x18], r12d
mov dword [rbx + 0x1c], r13d
mov dword [rbp - 0x80], edi
mov r8d, 0x277b
mov dword [rsp + 0x28], r12d
lea edx, [rdi + 1]
mov dword [rsp + 0x50], 0x60
mov eax, edx
imul rcx, rax, 0x68
inc edx
mov dword [rsp + 0x54], 0x402a
lea rax, [0x140006650]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x20], r12d
mov qword [rbp + rcx - 0x40], r8
mov qword [rbp + rcx - 0x28], rax
mov qword [rbp + rcx - 8], 0x90a
mov eax, edx
imul rcx, rax, 0x68
inc edx
lea rax, [0x140006710]
mov qword [rbp + rcx - 0x40], r8
lea r9d, [rdx + 1]
mov qword [rbp + rcx - 0x28], rax
mov r8d, r13d
mov qword [rbp + rcx - 8], 0x90b
mov eax, edx
imul rcx, rax, 0x68
lea rax, [0x140006890]
mov qword [rbp + rcx - 0x40], 0x277f
mov qword [rbp + rcx - 0x28], rax
mov qword [rbp + rcx - 8], 0x900
mov rcx, r14
mov eax, r9d
imul rdx, rax, 0x68
lea rax, [0x140007000]
mov qword [rbp + rdx - 0x40], 0x2778
mov qword [rbp + rdx - 0x28], rax
lea eax, [r9 + 1]
xor r9d, r9d
mov dword [rsp + 0x78], eax
mov qword [rbp + rdx - 8], 0x93e
lea rax, [rbp - 0x50]
mov qword [rbp - 0x78], rax
lea edx, [r9 + 0x6b]
call qword [sym.imp.USER32.dll_LoadImageW]
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], 0x8ff
mov qword [rsp + 0x68], rax
call qword [sym.imp.COMCTL32.dll_PropertySheetW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x688]
mov dword [rbx + 0x6a4], r12d
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x690]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
or edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x690]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x688]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x6b0]
test rcx, rcx
je 0x140004e96
call qword [sym.imp.GDI32.dll_DeleteObject]
nop dword [rax + rax]
mov rax, rbx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14000e7b0
mov rbx, qword [rsp + 0x448]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret