Function at 0x180049660
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea ebp, [rcx + 3]
mov rbx, r9
mov r14, r8
mov r15, rdx
mov esi, ecx
cmp ecx, ebp
jae 0x1800498a3
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
nop
mov eax, esi
sub eax, 0x69
je 0x1800497ab
sub eax, 3
je 0x1800496be
cmp eax, 1
je 0x1800498a3
jmp 0x1800499fa
movzx eax, byte [r13]
lea r9, [rsp + 0xb0]
mov byte [rsp + 0x40], al
lea rdx, [rsp + 0x58]
mov rax, qword [r14]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov r8d, 0x15
mov rax, qword [r15]
mov qword [rsp + 0x58], rax
movzx eax, byte [r12]
mov byte [rsp + 0xb0], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call fcn.180067950
mov rcx, qword [rbx]
add rcx, rax
call fcn.180080df4
mov rbx, rax
test rax, rax
je 0x18004979a
movzx ecx, byte [r13]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov byte [rsp + 0x40], cl
lea rax, [rsp + 0x40]
mov rcx, qword [r14]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov r8d, 0x97
mov rcx, qword [r15]
mov qword [rsp + 0x58], rcx
movzx ecx, byte [r12]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov byte [rsp + 0x48], cl
lea rcx, [rsp + 0x60]
mov byte [rsp + 0xb0], 0
mov qword [rsp + 0x20], rax
call fcn.180049f50
mov qword [rsp + 0x50], rbx
jmp 0x1800499f2
mov rbx, qword [0x1800c7048]
mov qword [rsp + 0x50], rbx
jmp 0x1800499f2
mov edi, 0xfb
mov eax, edi
sub eax, 0xfa
je 0x1800498a3
cmp eax, 1
jne 0x1800499e4
lea rcx, str.hid.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1800c95a8], rax
mov r8, rax
test rax, rax
je 0x18004989b
mov ebx, 9
nop dword [rax + rax]
cmp ebx, 9
ja case.default.0x18004980d
lea r9, [0x180000000]
mov ecx, ebx
mov edx, dword [r9 + rcx*4 + 0x49a0c]
add rdx, r9
jmp rdx
lea rdx, str.Language_ne_Nepali
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9550], rax
jmp 0x1800499c7
cmp qword [0x1800c9560], 0
je 0x18004989b
lea rdx, str.2_CONTROL_POINT_PATCH
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9568], rax
jmp 0x1800499c7
lea rdx, str.HidD_GetIndexedString
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9580], rax
test rax, rax
je 0x18004989b
mov rcx, qword [0x1800c95a8]
lea rdx, str.track_prototype_users
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9588], rax
jmp 0x1800499c7
cmp qword [0x1800c9550], 0
jne case.default.0x18004980d
mov dword [rsp + 0x50], 0xffffffff
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.HidD_GetManufacturerString
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9560], rax
jmp 0x1800499c7
cmp qword [0x1800c9588], 0
je 0x18004989b
lea rdx, str.smErrq4LStOKmZf1sh_SYg
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9590], rax
test rax, rax
je 0x18004989b
mov rcx, qword [0x1800c95a8]
lea rdx, str.VMINPDZ128rm
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9598], rax
jmp 0x1800499c7
cmp qword [0x1800c9578], 0
je 0x18004989b
jmp case.default.0x18004980d
cmp qword [0x1800c9568], 0
je 0x18004989b
lea rdx, str.icudt51l_sq.res
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9570], rax
test rax, rax
je 0x18004989b
mov rcx, qword [0x1800c95a8]
lea rdx, str.PenEventPackets
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9578], rax
jmp 0x1800499c7
cmp qword [0x1800c9598], 0
je 0x18004989b
lea rdx, str.HidD_SetNumInputBuffers
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c95a0], rax
jmp 0x1800499be
lea rdx, str.Variable__s_has_NULL_value
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800c9558], rax
test rax, rax
je 0x18004989b
mov r8, qword [0x1800c95a8]
dec ebx
lea eax, [rbx + 0x7e]
cmp eax, 0x7d
ja 0x1800497f0
mov dword [rsp + 0x50], 0
dec edi
cmp edi, 0xf9
ja 0x1800497b0
mov rbx, qword [rsp + 0xc8]
inc esi
cmp esi, ebp
jb 0x1800496a0
jmp 0x1800498a3