Function at 0x1400c9e04
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rcx
lea rcx, str.HID.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x218], rax
xor edi, edi
lea r12d, [rdi + 1]
cmp rax, rdi
je 0x1400ca468
lea rdx, str.HidD_GetPreparsedData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x490], rax
lea rdx, str.HidP_GetCaps
mov rcx, qword [rbx + 0x218]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x498], rax
lea rdx, str.HidD_FreePreparsedData
mov rcx, qword [rbx + 0x218]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x4a0], rax
lea rdx, str.HidD_GetFeature
mov rcx, qword [rbx + 0x218]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x4a8], rax
lea rdx, str.HidP_GetValueCaps
mov rcx, qword [rbx + 0x218]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x4b8], rax
lea rdx, [0x1401eaec8]
mov rcx, qword [rbx + 0x218]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x4d8], rax
cmp qword [rbx + 0x490], rdi
je 0x1400ca468
cmp qword [rbx + 0x498], rdi
je 0x1400ca468
cmp qword [rbx + 0x4b8], rdi
je 0x1400ca468
cmp qword [rbx + 0x4a8], rdi
je 0x1400ca468
cmp rax, rdi
je 0x1400ca468
cmp qword [rbx + 0x4a0], rdi
je 0x1400ca468
lea rcx, [rbx + 0x268]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea r8d, [rdi + 3]
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
or r13, 0xffffffffffffffff
cmp rax, r13
je 0x1400ca468
lea rdx, [rsp + 0xa0]
mov rcx, rax
call qword [rbx + 0x490]
cmp al, dil
je 0x1400ca45f
lea rdx, [rbx + 0x228]
mov rcx, qword [rsp + 0xa0]
call qword [rbx + 0x498]
mov ebp, 0x110000
cmp eax, ebp
jne 0x1400ca451
cmp qword [rbx + 0x220], rdi
jne 0x1400c9fc6
movzx ecx, word [rbx + 0x264]
lea eax, [rdi + 0x48]
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.14013f170
mov qword [rbx + 0x220], rax
movzx eax, word [rbx + 0x264]
mov word [rsp + 0x90], ax
mov r9, qword [rsp + 0xa0]
lea r8, [rsp + 0x90]
mov rdx, qword [rbx + 0x220]
mov ecx, 2
call qword [rbx + 0x4b8]
cmp eax, ebp
jne 0x1400ca451
mov ecx, 0x30
lea ebp, [rcx + 0x54]
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
mov r13d, 0x170
lea r14d, [rbp + 0x7c]
cmp eax, edi
je 0x1400ca0c7
mov rcx, r13
call fcn.14013f12c
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x1400ca068
xor edx, edx
mov rcx, rax
call fcn.14006faac
jmp 0x1400ca06b
mov rax, rdi
mov qword [rbx + 0x1e8], rax
lea rcx, [rax + 8]
lea r8, [0x1401e40e0]
mov rdx, r14
call fcn.140044464
mov rdx, qword [rbx + 0x1e8]
mov rcx, rbx
call fcn.14007f140
mov r11, qword [rbx + 0x1e8]
mov eax, dword [rsp + 0x98]
mov dword [r11 + 0x150], eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x140230af8]
mov r8d, r12d
mov rcx, qword [rbx + 0x1e8]
call fcn.14006f85c
mov ecx, 0x36
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
cmp eax, edi
je 0x1400ca190
mov ecx, 0x178
call fcn.14013f12c
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x1400ca129
xor edx, edx
mov rcx, rax
call fcn.14006fdd0
jmp 0x1400ca12c
mov rax, rdi
mov qword [rbx + 0x1f0], rax
lea rcx, [rax + 8]
lea r8, [0x1401e40e0]
mov rdx, r14
call fcn.140044464
mov rdx, qword [rbx + 0x1f0]
mov rcx, rbx
call fcn.14007f140
mov r11, qword [rbx + 0x1f0]
mov eax, dword [rsp + 0x98]
mov dword [r11 + 0x150], eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x140230b14]
subss xmm1, dword [0x1401eaec4]
mov r8d, r12d
mov rcx, qword [rbx + 0x1f0]
call fcn.14006f85c
mov ecx, 0x40
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
mov r11d, 0x44
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r11w
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
cmp eax, edi
je 0x1400ca217
mov eax, dword [rsp + 0x98]
mov dword [rbx + 0x210], eax
mov ecx, 0x35
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
cmp eax, edi
je 0x1400ca2e3
mov rcx, r13
call fcn.14013f12c
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x1400ca277
xor edx, edx
mov rcx, rax
call fcn.1400714a4
jmp 0x1400ca27a
mov rax, rdi
mov qword [rbx + 0x1f8], rax
lea rcx, [rax + 8]
lea r8, str.Power_Load
mov rdx, r14
call fcn.140044464
mov rdx, qword [rbx + 0x1f8]
mov rcx, rbx
call fcn.14007f140
mov r11, qword [rbx + 0x1f8]
mov eax, dword [rsp + 0x98]
mov dword [r11 + 0x150], eax
mov rcx, qword [rbx + 0x1f8]
mov eax, dword [rcx + 0x150]
pxor xmm1, xmm1
cvtsi2ss xmm1, rax
cvtsd2ss xmm0, qword [rsp + 0xa8]
mulss xmm1, xmm0
mov r8d, r12d
call fcn.14006f85c
mov ecx, 0x32
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
mov ebp, 0x85
lea r11d, [rbp - 0x1f]
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r11w
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
cmp eax, edi
je 0x1400ca3db
mov rcx, r13
call fcn.14013f12c
mov qword [rsp + 0x48], rax
cmp rax, rdi
je 0x1400ca37f
xor edx, edx
mov rcx, rax
call fcn.1400714a4
mov rdi, rax
mov qword [rbx + 0x200], rdi
lea rcx, [rdi + 8]
lea r8, [0x1401e40e0]
mov rdx, r14
call fcn.140044464
mov rdx, qword [rbx + 0x200]
mov rcx, rbx
call fcn.14007f140
mov r11, qword [rbx + 0x200]
mov eax, dword [rsp + 0x98]
mov dword [r11 + 0x150], eax
mov rcx, qword [rbx + 0x200]
mov eax, dword [rcx + 0x150]
pxor xmm1, xmm1
cvtsi2ss xmm1, rax
mov r8d, r12d
call fcn.14006f85c
mov ecx, 0x67
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
mov r11d, 0x68
mov r9d, ebp
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r11w
mov r8, qword [rsp + 0xa0]
mov rdx, rsi
mov rcx, rbx
call fcn.1400c9cd0
mov rcx, qword [rsp + 0xa0]
call qword [rbx + 0x4a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret