Function at 0x1000665ac
Capabilities:
Extract resource via kernel32 functions
Register raw input devices

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x368
movaps xmmword [rax - 0x58], xmm6
mov rax, qword [0x1000a1140]
xor rax, rsp
mov qword [rsp + 0x340], rax
xor r13d, r13d
mov edi, r9d
mov dword [rsp + 0x30], r9d
mov rsi, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
cmp byte [0x1000acc3a], r13b
jne 0x10006663a
lea ecx, [r13 + 1]
call qword [sym.imp.USER32.dll_ShowCursor]
mov rcx, qword [rsp + 0x3e0]
mov r9, rsi
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x1000acde0]
mov r8, rbp
mov rdx, r14
call qword [sym.imp.USER32.dll_DialogBoxParamW]
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.USER32.dll_ShowCursor]
mov rax, rdi
jmp 0x100066e3c
mov eax, dword [rsp + 0x3d8]
mov dword [0x1000aa630], eax
lea rax, [0x1000661a4]
cmp r8, rax
je 0x10006665f
mov qword [0x1000ace10], r8
mov rsi, rax
jmp 0x100066666
mov qword [0x1000ace10], r13
mov rdx, rcx
mov rcx, qword [0x1000acde0]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, r13
mov r15d, 1
cmp rax, r13
je 0x100066879
mov rcx, qword [0x1000acde0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
test rax, rax
je 0x100066876
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x100066863
mov rcx, rax
call fcn.1000697dc
mov ecx, dword [0x1000acce4]
movsxd rbp, eax
cmp ebp, ecx
jl 0x100066712
mov rcx, qword [0x1000ace90]
test rcx, rcx
je 0x1000666e6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [rbp + 0x3e8]
mov dword [0x1000acce4], ecx
movsxd rdx, ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [0x1000acce4]
mov rdi, rax
mov qword [0x1000ace90], rax
jmp 0x100066719
mov rdi, qword [0x1000ace90]
test rdi, rdi
je 0x10006685a
cmp ebp, ecx
jge 0x10006685a
mov r8, rbp
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_memcpy
xor ebp, ebp
lea rcx, [rsp + 0x102]
lea r8d, [rbp + 0x3e]
xor edx, edx
mov word [rsp + 0x100], bp
call sub.msvcrt.dll_memset
mov r9d, 0xffff
cmp word [rdi + 2], r9w
jne 0x100066767
mov eax, dword [rdi + 0xc]
jmp 0x100066769
mov eax, dword [rdi]
shr eax, 6
test r15b, al
je 0x10006682d
mov rcx, rdi
call fcn.100069780
cmp word [rdi + 2], r9w
mov edx, 3
mov ecx, r15d
cmove ecx, edx
or r9, 0xffffffffffffffff
add ecx, ecx
lea edx, [r9 + 0x21]
movsxd r8, ecx
lea rcx, [rsp + 0x100]
add r8, rax
call sub.msvcrt.dll_wcsncpy_s
mov cl, r15b
call fcn.100069674
mov rcx, qword [0x1000acdd8]
mov ebx, eax
call qword [sym.imp.USER32.dll_GetDC]
mov edx, 0x58
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rcx, qword [0x1000acdd8]
mov rdx, rdi
movsd xmm6, qword [0x100025c08]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm6, xmm0
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdi, qword [0x1000ace90]
cmp rdi, rbp
je 0x10006682d
movzx eax, bx
lea rdx, [rsp + 0x100]
mov rcx, rdi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm6
cvttsd2si r8, xmm0
call fcn.1000698e8
mov rdi, qword [0x1000ace90]
mov rax, qword [rsp + 0x3e0]
mov rbp, qword [rsp + 0x38]
mov rcx, qword [0x1000acde0]
mov r8, rbp
mov r9, rsi
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rbx, rax
jmp 0x10006685f
mov rbp, qword [rsp + 0x38]
mov edi, dword [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor r13d, r13d
cmp rbx, r13
jne 0x10006689f
jmp 0x100066879
xor r13d, r13d
mov rax, qword [rsp + 0x3e0]
mov rcx, qword [0x1000acde0]
mov r9, rsi
mov r8, rbp
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rbx, rax
mov eax, 0xc
lea rcx, [rsp + 0x70]
mov edx, r15d
lea r14d, [rax + 4]
mov word [rsp + 0x72], r15w
mov dword [rsp + 0x74], r13d
mov r8d, r14d
mov word [rsp + 0x70], ax
mov qword [rsp + 0x78], rbx
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
lea edx, [r14 - 0xb]
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [rsp + 0x3d0], r13b
je 0x100066904
mov edx, edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
lea rcx, [0x100021870]
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov r12d, eax
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, r13d
je 0x100066df1
cmp eax, 0xffffffff
je 0x100066dec
mov eax, dword [rsp + 0x48]
cmp eax, r12d
je 0x100066dec
cmp eax, 0x100
jne 0x100066cd5
mov rax, qword [rsp + 0x50]
cmp rax, 0x28
jne 0x1000669ee
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, r13d
jne 0x100066978
mov rcx, rbx
jmp 0x100066b83
mov rcx, qword [rsp + 0x40]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
and eax, 0xf
cmp rax, 9
je 0x100066997
cmp rax, 4
jne 0x1000669e7
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetNextDlgGroupItem]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xd0]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [rsp + 0xe4]
cmp dword [rsp + 0xd4], edx
jge 0x1000669e7
mov rcx, rdi
jmp 0x100066b83
xor edx, edx
jmp 0x100066a7d
cmp rax, 0x26
jne 0x100066a8a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, r13d
je 0x100066970
mov rcx, qword [rsp + 0x40]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
and eax, 0xf
cmp rax, 9
je 0x100066a2b
cmp rax, 4
jne 0x100066a7a
mov rdx, qword [rsp + 0x40]
mov r8d, r15d
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetNextDlgGroupItem]
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [rsp + 0xa4]
cmp dword [rsp + 0x84], edx
jl 0x100066b80
mov dl, r15b
mov rcx, rbx
call fcn.1000670c4
jmp 0x100066dc7
cmp rax, 0x25
je 0x100066a9a
cmp rax, 0x27
jne 0x100066b93
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, r13d
je 0x100066970
mov rcx, qword [rsp + 0x40]
call fcn.100066f38
cmp al, r13b
je 0x100066b8e
cmp byte [0x1000aa58d], r13b
mov rdx, qword [rsp + 0x40]
mov r8d, r13d
sete r8b
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
cmp qword [rsp + 0x50], 0x25
mov rsi, rax
jne 0x100066b1f
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0xf0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [rsp + 0xc0]
cmp dword [rsp + 0xf0], edx
jl 0x100066b80
cmp byte [0x1000aa58d], r13b
mov rdx, qword [rsp + 0x40]
mov r8d, r13d
setne r8b
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rsi, rax
mov rax, qword [rsp + 0x50]
cmp rax, 0x27
jne 0x100066b93
mov rdi, qword [rsp + 0x40]
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [rsp + 0x90]
cmp dword [rsp + 0xb0], edx
jle 0x100066b8e
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x100066dc7
mov rax, qword [rsp + 0x50]
cmp rax, 0x25
je 0x100066b9f
cmp rax, 0x27
jne 0x100066bcf
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
mov rdi, rax
call fcn.100066e70
cmp al, r13b
jne 0x100066cad
mov rcx, rdi
call fcn.100066ffc
cmp al, r13b
jne 0x100066cad
mov rax, qword [rsp + 0x50]
cmp rax, 0x25
je 0x100066bdb
cmp rax, 0x27
jne 0x100066c46
call qword [sym.imp.USER32.dll_GetFocus]
mov rbp, rax
cmp rax, r13
je 0x100066dc7
lea rdx, [rsp + 0x140]
mov r8d, 0x100
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
cmp eax, r13d
jle 0x100066dc7
lea rsi, [rsp + 0x140]
lea rdi, [0x100021898]
mov ecx, 0x12
repe cmpsw word [rsi], word [rdi]
jne 0x100066dc7
cmp byte [0x1000aa58d], r13b
je 0x100066c41
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rax, qword [rsp + 0x50]
cmp rax, 0xa6
jne 0x100066c6e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, r13d
jne 0x100066c67
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
mov edx, 0x1b
jmp 0x100066c84
cmp rax, 0xd
jne 0x100066d9e
cmp byte [0x1000ae292], r13b
jne 0x100066ca1
lea edx, [rax + 0x13]
mov dword [rsp + 0x28], r13d
xor r9d, r9d
mov rcx, rbx
mov byte [rsp + 0x20], r13b
xor r8d, r8d
call fcn.1000641e8
jmp 0x100066dc7
mov byte [0x1000ae292], r13b
jmp 0x100066d9e
xor r9d, r9d
xor r8d, r8d
cmp qword [rsp + 0x50], 0x25
mov dword [rsp + 0x28], r13d
mov rcx, rbx
mov byte [rsp + 0x20], r13b
jne 0x100066cce
lea edx, [r9 + 0x26]
jmp 0x100066c97
mov edx, 0x28
jmp 0x100066c97
cmp eax, 0xff
jne 0x100066d9e
cmp byte [rsp + 0x50], r13b
jne 0x100066dec
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x10000003
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.USER32.dll_GetRawInputData]
mov ecx, dword [rsp + 0x30]
call fcn.1000910f4
mov rdi, rax
cmp rax, r13
je 0x100066dec
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, 0x10000003
mov dword [rsp + 0x20], 0x18
call qword [sym.imp.USER32.dll_GetRawInputData]
cmp eax, dword [rsp + 0x30]
jne 0x100066de4
cmp dword [rdi], 2
jne 0x100066de4
mov eax, 3
cmp dword [rdi + 0x18], eax
jne 0x100066d96
cmp byte [rdi + 0x20], 2
jne 0x100066d96
cmp byte [rdi + 0x21], 9
jne 0x100066d96
cmp byte [rdi + 0x22], 2
jne 0x100066d96
lea edx, [rax + 0xa]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov byte [0x1000ae292], r15b
mov byte [rsp + 0x20], r13b
call fcn.1000641e8
mov rcx, rdi
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsDialogMessageW]
cmp eax, r13d
jne 0x100066dc7
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, r13d
je 0x100066dec
jmp 0x100066930
mov rcx, rdi
call sub.msvcrt.dll_free
mov rbp, qword [rsp + 0x38]
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyWindow]
lea rcx, [rsp + 0x70]
mov r8d, r14d
mov edx, r15d
mov qword [rsp + 0x78], rbp
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov rcx, qword [0x1000aa638]
cmp rcx, r13
je 0x100066e30
mov rax, qword [rcx]
mov edx, r15d
call qword [rax]
movzx eax, word [rsp + 0x50]
mov qword [0x1000aa638], r13
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1000915c0
movaps xmm6, xmmword [rsp + 0x350]
add rsp, 0x368
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret