Function at 0x100003038
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x3f0
xor r13d, r13d
lea rax, [0x100001bc0]
mov rbp, r8
mov qword [rcx], rax
lea rax, [0x100001be0]
mov rbx, rcx
mov qword [rcx + 0x10], r13
mov dword [rcx + 0x1c], r13d
mov dword [rcx + 0x20], r13d
mov qword [rcx + 8], rax
mov dword [rcx + 0x230], r13d
mov dword [rcx + 0x234], r13d
mov qword [rcx + 0x238], r13
mov dword [rcx + 0x240], r13d
mov dword [rcx + 0x874], r13d
mov dword [rcx + 0x878], r13d
mov dword [rcx + 0x87c], r13d
mov qword [rcx + 0x890], r13
mov dword [rcx + 0x898], r13d
mov dword [rcx + 0x89c], r13d
mov qword [rcx + 0x8a0], r13
mov qword [rcx + 0x8a8], r13
lea r14d, [r13 + 1]
add rcx, 0x24
mov dword [rcx - 0xc], r14d
xor edx, edx
mov r8d, 0x200
mov r12, r9
call sub.msvcrt.dll_memset
mov edi, 0x208
lea rcx, [rbx + 0x244]
xor edx, edx
mov r8, rdi
call sub.msvcrt.dll_memset
lea rcx, [rbx + 0x44c]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rbx + 0x654]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
xor eax, eax
lea rdi, [rbx + 0x860]
lea esi, [rax + 8]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x30]
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov dword [rsp + 0x34], 0x8000
mov dword [rsp + 0x30], esi
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
cmp r12, r13
je 0x10000317b
mov edx, dword [rsp + 0x440]
mov r9d, r14d
mov r8, rdi
mov rcx, r12
mov dword [rbx + 0x240], r14d
call fcn.100006ee0
cmp eax, r13d
jl 0x100003561
call sub.SHELL32.dll_Ordinal_258
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x420]
mov dword [rsp + 0x420], 4
call sub.bthprops.cpl_BluetoothFindFirstRadio
cmp rax, r13
je 0x1000031ad
mov rcx, rax
call sub.bthprops.cpl_BluetoothFindRadioClose
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x880], rax
cmp rax, r13
je 0x10000354f
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x888], rax
cmp rax, r13
je 0x100003542
lea rax, [rsp + 0x438]
lea r8, [0x100005a40]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r12, rax
cmp rax, r13
je 0x100003535
lea rcx, [rsp + 0xb4]
xor edx, edx
mov r8d, 0x33c
mov dword [rsp + 0xb0], r13d
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll_memset
mov r10, qword [0x10000e7c8]
lea rdx, [rsp + 0xb4]
mov dword [rdx - 4], 0x68
mov dword [rdx], 0x1000
mov qword [rdx + 4], r10
mov qword [rdx + 0x2c], rbx
add rdx, 0x68
sub rsi, r14
jne 0x10000325d
mov edx, dword [rsp + 0x68]
lea rcx, [0x1000037ec]
mov rax, rdx
add edx, r14d
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], 0x2777
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x2af9
mov eax, edx
lea rcx, [0x100004260]
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], 0x2779
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x908
cmp rbp, r13
je 0x100003301
lea rdi, [0x1000017f0]
mov rsi, rbp
mov ecx, 6
repe cmpsb byte [rsi], byte [rdi]
jne 0x100003301
mov dword [rbx + 0x18], r14d
mov dword [rbx + 0x1c], r13d
mov dword [rsp + 0x70], edx
add edx, r14d
lea rcx, [0x100004384]
mov eax, edx
add edx, r14d
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], 0x277a
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x909
mov eax, edx
lea rcx, [0x10000475c]
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], 0x277c
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x90c
cmp rbp, r13
je 0x100003385
lea rdi, [0x100001940]
mov rsi, rbp
mov ecx, 9
repe cmpsb byte [rsi], byte [rdi]
jne 0x100003385
mov dword [rbx + 0x18], r13d
mov dword [rbx + 0x1c], r14d
mov dword [rsp + 0x70], edx
add edx, r14d
lea rcx, [0x100004b90]
mov edi, 0x277b
mov eax, edx
add edx, r14d
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x40], 0x60
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], rdi
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x90a
mov eax, edx
add edx, r14d
lea rcx, [0x100004c48]
mov dword [rsp + 0x44], 0x402a
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r10
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], rdi
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x90b
mov eax, edx
add edx, r14d
lea rcx, [0x100004e40]
mov dword [rsp + 0x20], r13d
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], 0x277f
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x900
mov eax, edx
add edx, r14d
lea rcx, [0x1000053fc]
mov dword [rsp + 0x68], edx
mov edx, WSAGetLastError
imul rax, rax, 0x68
mov qword [rsp + rax + 0xc0], 0x2778
mov qword [rsp + rax + 0xd8], rcx
mov qword [rsp + rax + 0xf8], 0x93e
lea rax, [rsp + 0xb0]
mov rcx, r10
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x78], rax
call qword [sym.imp.USER32.dll_LoadImageW]
mov rcx, qword [0x10000e7c8]
mov edi, 0x40
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x42]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_LoadImageW]
mov rcx, qword [0x10000e7c8]
lea edx, [rdi + 0x41]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_LoadImageW]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], 0x8ff
mov qword [rsp + 0x88], rax
call qword [sym.imp.COMCTL32.dll_PropertySheetW]
mov rcx, qword [rbx + 0x880]
mov dword [rbx + 0x89c], r13d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x888]
call qword [sym.imp.KERNEL32.dll_SetEvent]
or edx, 0xffffffff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x888]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x880]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x8a8]
cmp rcx, r13
je 0x100003561
call qword [sym.imp.GDI32.dll_DeleteObject]
lea r11, [rsp + 0x3f0]
mov rax, rbx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret