Function at 0x140011b90
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rsi, rcx
mov qword [rsp + 0x40], rcx
call fcn.140018dc0
lea rcx, str...AsusSystemAnalysisAsusWinIO64.dll
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140012c3d
test edi, edi
jne 0x140012c3d
lea rdx, str.InitializeWinIo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_ACStatus
mov rcx, rbx
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_CellVoltage1
mov rcx, rbx
mov qword [rbp - 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_CellVoltage2
mov rcx, rbx
mov qword [rbp - 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_CellVoltage3
mov rcx, rbx
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_CellVoltage4
mov rcx, rbx
mov qword [rbp - 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_Current
mov rcx, rbx
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_DesignVoltage
mov rcx, rbx
mov qword [rbp - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_DeviceName
mov rcx, rbx
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_ECChipID
mov rcx, rbx
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_ECChipName
mov rcx, rbx
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_GaugeIC
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_ManufactureName
mov rcx, rbx
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_PFStatus
mov rcx, rbx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_TimeoutStatus
mov rcx, rbx
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_ReadVersion
mov rcx, rbx
mov qword [0x1400c1900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_Rsoc
mov rcx, rbx
mov qword [rbp + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_SerialNumber
mov rcx, rbx
mov qword [rbp - 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_Temperature
mov rcx, rbx
mov qword [rbp - 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_BatteryError
mov rcx, rbx
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c18f0], rax
lea rdx, str.ShutdownWinIo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.BatteryHealthyTable_ManufactureNameBySMBus
mov rcx, rbx
mov qword [0x1400c18e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r14d, r14d
lea rcx, [rbp]
mov qword [0x1400c1918], rax
mov qword [rbp], r14
call fcn.140054a40
lea rcx, [rbp + 0x28]
mov qword [rbp + 0x28], r14
call fcn.140054910
lea rcx, [rbp - 8]
mov qword [rbp - 8], r14
call fcn.140054b70
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], r14
call fcn.140054ca0
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], r14
call fcn.140054890
mov r12, qword [rbp - 0x18]
cmp dword [r12 + 0x20], r14d
jle 0x140011e64
mov rax, qword [r12 + 0x18]
cmp qword [rax], r14
je 0x140011e64
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [r12 + 0x18]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], r14
lea rdx, str.Voltage
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140011e64
cmp word [rbp + 0x10], 2
jb 0x140011e64
mov eax, dword [rbp + 0x18]
mov bl, 1
mov dword [rbp - 0x20], eax
jmp 0x140011e66
xor bl, bl
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [rbp - 0x20]
lea rcx, [rsi + 0x654]
test bl, bl
mov qword [rsp + 0x48], rcx
cmovne eax, dword [rbp - 0x20]
mov dword [rcx], eax
cmp dword [r12 + 0x20], r14d
jle 0x140011edd
mov rax, qword [r12 + 0x18]
cmp qword [rax], r14
je 0x140011edd
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [r12 + 0x18]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], r14
lea rdx, str.RemainingCapacity
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140011edd
cmp word [rbp + 0x10], 2
jb 0x140011edd
mov eax, dword [rbp + 0x18]
mov bl, 1
mov dword [rbp - 0x20], eax
jmp 0x140011edf
xor bl, bl
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rdi, qword [rbp + 0x28]
lea rcx, [rsi + 0x650]
mov eax, dword [rbp - 0x20]
test bl, bl
mov qword [rsp + 0x50], rcx
cmovne eax, dword [rbp - 0x20]
mov dword [rcx], eax
mov qword [rbp - 0x18], rdi
cmp dword [rdi + 0x20], r14d
jle 0x140011f5b
mov rax, qword [rdi + 0x18]
cmp qword [rax], r14
je 0x140011f5b
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi + 0x18]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], r14
lea rdx, str.DesignedCapacity
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140011f5b
cmp word [rbp + 0x10], 2
jb 0x140011f5b
mov eax, dword [rbp + 0x18]
mov bl, 1
mov dword [rbp - 0x20], eax
jmp 0x140011f5d
xor bl, bl
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [rbp - 0x20]
lea rcx, [rsi + 0x648]
test bl, bl
mov qword [rsp + 0x58], rcx
mov rbx, qword [rbp]
cmovne eax, dword [rbp - 0x20]
mov dword [rcx], eax
mov qword [rbp + 0x28], rbx
cmp dword [rbx + 0x20], r14d
jle 0x140011fda
mov rax, qword [rbx + 0x18]
cmp qword [rax], r14
je 0x140011fda
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0x18]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], r14
lea rdx, str.FullChargedCapacity
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140011fda
cmp word [rbp + 0x10], 2
jb 0x140011fda
mov eax, dword [rbp + 0x18]
mov r15b, 1
mov dword [rbp - 0x20], eax
jmp 0x140011fdd
xor r15b, r15b
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [rbp - 0x20]
lea rcx, [rsi + 0x64c]
mov r13, qword [rbp - 8]
test r15b, r15b
mov qword [rbp + 0x30], rcx
cmovne eax, dword [rbp - 0x20]
mov dword [rcx], eax
cmp dword [r13 + 0x20], r14d
jle 0x140012056
mov rax, qword [r13 + 0x18]
cmp qword [rax], r14
je 0x140012056
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [r13 + 0x18]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], r14
lea rdx, str.CycleCount
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x140012056
cmp word [rbp + 0x10], 2
jb 0x140012056
mov eax, dword [rbp + 0x18]
mov r15b, 1
mov dword [rbp - 0x20], eax
jmp 0x140012059
xor r15b, r15b
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [rbp - 0x20]
lea rcx, [rsi + 0x658]
test r15b, r15b
mov qword [rbp + 0x38], rcx
mov r15, qword [rbp - 0x10]
cmovne eax, dword [rbp - 0x20]
mov dword [rcx], eax
cmp dword [r15 + 0x20], r14d
jle 0x1400120d6
mov rax, qword [r15 + 0x18]
cmp qword [rax], r14
je 0x1400120d6
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rax, qword [r15 + 0x18]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], r14
lea rdx, str.EstimatedChargeRemaining
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
jne 0x1400120d6
cmp word [rbp + 0x10], 2
jb 0x1400120d6
movzx eax, word [rbp + 0x18]
mov word [rbp - 0x20], ax
mov byte [rsp + 0x30], 1
jmp 0x1400120db
mov byte [rsp + 0x30], r14b
lea rcx, [rbp + 0x10]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
movzx eax, word [rbp - 0x20]
cmp byte [rsp + 0x30], r14b
jne 0x1400120f3
mov eax, dword [rbp - 0x20]
mov dword [rsi + 0x61c], eax
call qword [rsp + 0x68]
mov dword [rsi], eax
cmp eax, 1
jne 0x140012944
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov edx, eax
mov dword [rsi + 4], eax
lea rcx, str.BatteryHealthyTableVersion:_d
call fcn.140036ce0
mov eax, dword [rsi + 4]
cmp eax, 2
jb 0x140012794
cmp eax, 0x7fffffff
je 0x140012794
mov rax, qword [0x1400c1918]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140012265
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x100
call fcn.140059e60
lea rcx, [rbp + 0x40]
call qword [rsp + 0x68]
lea rax, [rbp + 0x40]
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp byte [rax + r9], r14b
jne 0x140012170
mov dword [rsp + 0x28], r14d
lea r8, [rbp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp - 0x20], eax
lea ecx, [rax + 1]
mov eax, 2
movsxd rdx, ecx
mov rcx, 0xffffffffffffffff
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.140055768
mov qword [rbp - 0x18], rax
lea rcx, [rbp + 0x40]
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rcx + r9], r14b
jne 0x1400121c4
mov ecx, dword [rbp - 0x20]
lea r8, [rbp + 0x40]
mov dword [rsp + 0x28], ecx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rbp - 0x18]
movsxd rax, dword [rbp - 0x20]
mov rdx, rcx
mov word [rcx + rax*2], r14w
lea rcx, str.battery_manfacNameBySMBus__s
call fcn.140036ce0
cmp qword [rbp - 0x18], r14
jne 0x140012265
lea rcx, [rsi + 0x65c]
mov r14d, 0x6003
mov dword [rsi + 0x67c], r14d
mov edx, 0x10
lea rsi, str.HW_BAT_02
mov r8, rsi
call fcn.140005120
lea rcx, str.BatteryInfoGet_Fail:_Battery_Unplugin_By_EC_judgment_
call fcn.140036ce0
mov r8, rsi
lea rcx, str.BatteryInfoGet_ErrorCode:_0X_X_SymptomCode:__s_r_n
mov edx, r14d
call fcn.140036ce0
call qword [0x1400c18e8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140012c10
call qword [rbp - 0x50]
mov dword [rsi + 0x630], eax
call qword [rbp - 0x48]
mov dword [rsi + 0x620], eax
call qword [rbp - 0x40]
mov dword [rsi + 0x624], eax
call qword [rbp - 0x38]
mov dword [rsi + 0x628], eax
call qword [rbp - 0x30]
mov dword [rsi + 0x62c], eax
call qword [rbp - 0x28]
mov dword [rsi + 0x634], eax
call qword [rbp - 0x80]
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x100
mov dword [rsi + 0x614], eax
call fcn.140059e60
lea rcx, [rbp + 0x140]
call qword [rsp + 0x60]
lea rax, [rbp + 0x140]
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], r14b
jne 0x1400122d1
mov dword [rsp + 0x28], r14d
lea r8, [rbp + 0x140]
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp - 0x20], eax
lea ecx, [rax + 1]
mov eax, 2
movsxd rdx, ecx
mov rcx, 0xffffffffffffffff
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.140055768
mov rcx, rax
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x140]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp byte [rax + r9], r14b
jne 0x140012330
mov eax, dword [rbp - 0x20]
lea r8, [rbp + 0x140]
mov dword [rsp + 0x28], eax
xor edx, edx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rax, dword [rbp - 0x20]
lea rcx, [rsi + 0x208]
mov r9, qword [rsp + 0x60]
lea r8, [0x1400a233c]
mov edx, 0x100
mov word [r9 + rax*2], r14w
call fcn.140004a70
call qword [rbp - 0x78]
mov dword [rsi + 0x410], eax
call qword [rbp - 0x70]
movzx eax, al
xor edx, edx
lea rcx, [rbp + 0x240]
mov dword [rsi + 0x40c], eax
mov r8d, 0x100
call fcn.140059e60
lea rcx, [rbp + 0x240]
call qword [rsp + 0x78]
lea rax, [rbp + 0x240]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp byte [rax + r9], r14b
jne 0x1400123c0
mov dword [rsp + 0x28], r14d
lea r8, [rbp + 0x240]
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp - 0x20], eax
lea ecx, [rax + 1]
mov eax, 2
movsxd rdx, ecx
mov rcx, 0xffffffffffffffff
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.140055768
mov rcx, rax
mov qword [rsp + 0x78], rax
mov rax, 0xffffffffffffffff
lea rdx, [rbp + 0x240]
nop
inc rax
cmp byte [rdx + rax], r14b
jne 0x140012420
mov r9, rax
lea r8, [rbp + 0x240]
mov eax, dword [rbp - 0x20]
xor edx, edx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rax, dword [rbp - 0x20]
lea rcx, [rsi + 8]
mov r9, qword [rsp + 0x78]
lea r8, [0x1400a233c]
mov edx, 0x100
mov word [r9 + rax*2], r14w
call fcn.140004a70
call qword [rbp + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsi + 4], eax
cmp eax, 2
jbe 0x14001248e
movzx eax, word [rsi + 0xe]
sub ax, 0x46
cmp ax, 1
ja 0x14001248e
call qword [rbp - 0x68]
mov dword [rsi + 0x644], eax
call qword [0x1400c1900]
mov edx, eax
mov dword [0x1400c2d80], eax
lea rcx, str.Battery_Test_SMBus_Fail_Timeout_and_Permanent_Failure_Timeout:_0x_08x
call fcn.140036ce0
mov rax, qword [0x1400c18f0]
mov dword [0x1400c2d84], r14d
test rax, rax
je 0x1400124ca
call rax
test al, al
setne r14b
mov dword [0x1400c2d84], r14d
mov edx, r14d
lea rcx, str.Battery_HealthyTable_BatteryAccessError:__u
call fcn.140036ce0
call qword [rbp - 0x60]
mov dword [rsi + 0x638], eax
call qword [rbp - 0x58]
mov dword [rsi + 0x408], eax
call qword [rsp + 0x70]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x1400ac828]
subsd xmm0, qword [0x1400ac870]
cvttsd2si eax, xmm0
mov dword [rsi + 0x63c], eax
mov eax, dword [rsi + 0x62c]
test eax, eax
jne 0x140012593
cmp dword [rsi + 0x628], eax
jne 0x14001253f
cmp dword [rsi + 0x624], eax
jne 0x14001253f
cmp dword [rsi + 0x620], eax
je 0x14001253f
mov dword [rsi + 0x618], 1
jmp 0x1400125b8
test eax, eax
jne 0x140012593
cmp dword [rsi + 0x628], eax
jne 0x140012567
cmp dword [rsi + 0x624], eax
je 0x140012567
cmp dword [rsi + 0x620], eax
je 0x140012567
mov dword [rsi + 0x618], 2
jmp 0x1400125b8
test eax, eax
jne 0x140012593
cmp dword [rsi + 0x628], eax
je 0x14001258f
cmp dword [rsi + 0x624], eax
je 0x14001258f
cmp dword [rsi + 0x620], eax
je 0x14001258f
mov dword [rsi + 0x618], 3
jmp 0x1400125b8
test eax, eax
je 0x1400125b8
cmp dword [rsi + 0x628], 0
je 0x1400125b8
cmp dword [rsi + 0x624], 0
je 0x1400125b8
cmp dword [rsi + 0x620], 0
je 0x1400125b8
mov dword [rsi + 0x618], 4
mov edx, 0x6000
lea rcx, [rsi + 0x65c]
mov dword [rsi + 0x67c], edx
lea r8, str.SW_BAT_01
mov edx, 0x10
call fcn.140005120
mov edx, dword [rsi]
lea rcx, str.InitializeWinIo:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x654]
lea rcx, str.Voltage:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x650]
lea rcx, str.remainCapacity:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x648]
lea rcx, str.designedCapacity:_d_mwh
call fcn.140036ce0
mov edx, dword [rsi + 0x64c]
lea rcx, str.fullChargedCapacity:_d_mwh
call fcn.140036ce0
mov edx, dword [rsi + 0x658]
lea rcx, str.BatteryCycleCount:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x61c]
lea rcx, str.BatteryEstimatedChargeRemaining:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x630]
lea rcx, str.BatteryHealthyTableACStatus:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x620]
lea rcx, str.BatteryHealthyTableCellVoltage1:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x624]
lea rcx, str.BatteryHealthyTableCellVoltage2:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x628]
lea rcx, str.BatteryHealthyTableCellVoltage3:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x62c]
lea rcx, str.BatteryHealthyTableCellVoltage4:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x634]
lea rcx, str.BatteryHealthyTableCurrent:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x614]
lea rcx, str.BatteryHealthyTableDesignVoltage:_d
call fcn.140036ce0
lea rdx, [rsi + 0x208]
lea rcx, str.BatteryHealthyTableDeviceName:_s
call fcn.140036ce0
lea rdx, [rsi + 8]
lea rcx, str.BatteryHealthyTableManufactureName:_s
call fcn.140036ce0
mov edx, dword [rsi + 0x644]
lea rcx, str.BatteryHealthyTablePFStatus:_d
call fcn.140036ce0
mov edx, dword [rsi + 4]
lea rcx, str.BatteryHealthyTableVersion:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x638]
lea rcx, str.BatteryHealthyTableRsoc:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x408]
lea rcx, str.BatteryHealthyTableSerialNumber:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x63c]
lea rcx, str.BatteryHealthyTableTemperature:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x618]
lea rcx, str.BatteryCellCount:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x410]
lea rcx, str.BatteryHealthyTableECChipID_:_d
call fcn.140036ce0
mov edx, dword [rsi + 0x40c]
lea rcx, str.BatteryHealthyTableGaugeIC:_d
call fcn.140036ce0
lea rcx, str.BatteryInfoGet_Success
call fcn.140036ce0
jmp 0x14001224f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, SafeArrayPutElement
call fcn.14005572c
lea rdx, [0x14009dd28]
mov qword [rbp + 8], rax
mov rcx, rax
mov qword [rax + 8], r14
mov qword [rax], r14
mov qword [rax + 0x10], r14
call fcn.14003a550
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 1
jl 0x140012976
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], r14
call fcn.140054ca0
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], r14
call fcn.140054910
lea rcx, [rbp - 8]
mov qword [rbp - 8], r14
call fcn.140054a40
lea rcx, [rbp]
mov qword [rbp], r14
call fcn.140054b70
mov r14, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x10]
mov rdi, qword [rbp - 8]
mov rbx, qword [rbp]
cmp dword [r14 + 0x20], 1
jl 0x140012b3d
cmp dword [rsi + 0x20], 1
jl 0x140012b3d
cmp dword [rdi + 0x20], 1
jl 0x140012b3d
cmp dword [rbx + 0x20], 1
jl 0x140012b3d
mov r8, qword [rsp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.140054dd0
mov r8, qword [rsp + 0x50]
lea rcx, [rbp - 0x20]
call fcn.140054d20
mov r8, qword [rsp + 0x58]
lea rcx, [rbp - 0x10]
call fcn.140054990
mov rsi, qword [rbp + 0x30]
lea rcx, [rbp - 8]
mov r8, rsi
call fcn.140054ac0
mov r14, qword [rbp + 0x38]
lea rcx, [rbp]
mov r8, r14
call fcn.140054bf0
mov rcx, qword [rsp + 0x40]
lea rbx, str.SW_BAT_01
mov edi, 0x6000
mov r8, rbx
mov edx, 0x10
mov dword [rcx + 0x67c], edi
add rcx, 0x65c
call fcn.140005120
mov rax, qword [rsp + 0x48]
lea rcx, str.BatteryInfoGet_Voltage:__u_mV
mov edx, dword [rax]
call fcn.140036ce0
mov rax, qword [rsp + 0x50]
lea rcx, str.BatteryInfoGet_RemainingCapacity:__u_mWh
mov edx, dword [rax]
call fcn.140036ce0
mov rax, qword [rsp + 0x58]
lea rcx, str.BatteryInfoGet_DesignedCapacity:__u_mWh
mov edx, dword [rax]
call fcn.140036ce0
mov edx, dword [rsi]
lea rcx, str.BatteryInfoGet_FullChargedCapacity:__u_mWh
call fcn.140036ce0
mov edx, dword [r14]
lea rcx, str.BatteryInfoGet_CycleCount:__u
call fcn.140036ce0
mov r8, rbx
lea rcx, str.BatteryInfoGet_ErrorCode:_0X_X_SymptomCode:__s_r_n
mov edx, edi
call fcn.140036ce0
call qword [0x1400c18e8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x10]
mov rdi, qword [rbp - 8]
mov rbx, qword [rbp]
jmp 0x140012b99
mov ecx, SafeArrayPutElement
call fcn.14005572c
lea rdx, [0x14009dd28]
mov qword [rbp + 8], rax
mov rcx, rax
mov qword [rax + 8], r14
mov qword [rax], r14
mov qword [rax + 0x10], r14
call fcn.14003a550
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 1
jge 0x1400129d1
mov dword [rsi + 0x67c], 0x6001
lea rcx, [rsi + 0x65c]
lea rsi, str.HW_BAT_02
mov edx, 0x10
mov r8, rsi
call fcn.140005120
lea rcx, str.BatteryInfoGet_Fail:_Battery_Not_Exist
call fcn.140036ce0
mov r8, rsi
lea rcx, str.BatteryInfoGet_ErrorCode:_0X_X_SymptomCode:__s_r_n
mov edx, 0x6001
call fcn.140036ce0
call qword [0x1400c18e8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140012bd8
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], r14
call fcn.140054ca0
lea rcx, [rbp]
mov qword [rbp], r14
call fcn.140054910
lea rcx, [rbp - 8]
mov qword [rbp - 8], r14
call fcn.140054a40
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x10], r14
call fcn.140054b70
mov r14, qword [rbp - 0x20]
mov rsi, qword [rbp]
mov rdi, qword [rbp - 8]
mov rbx, qword [rbp - 0x10]
cmp dword [r14 + 0x20], 1
jl 0x140012b3d
cmp dword [rsi + 0x20], 1
jl 0x140012b3d
cmp dword [rdi + 0x20], 1
jl 0x140012b3d
cmp dword [rbx + 0x20], 1
jl 0x140012b3d
mov r8, qword [rsp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.140054dd0
mov r8, qword [rsp + 0x50]
lea rcx, [rbp - 0x20]
call fcn.140054d20
mov r8, qword [rsp + 0x58]
lea rcx, [rbp]
call fcn.140054990
mov rsi, qword [rbp + 0x30]
lea rcx, [rbp - 8]
mov r8, rsi
call fcn.140054ac0
mov r14, qword [rbp + 0x38]
lea rcx, [rbp - 0x10]
mov r8, r14
call fcn.140054bf0
mov rcx, qword [rsp + 0x40]
lea rbx, str.SW_BAT_01
mov edi, 0x6000
mov r8, rbx
mov edx, 0x10
mov dword [rcx + 0x67c], edi
add rcx, 0x65c
call fcn.140005120
mov rax, qword [rsp + 0x48]
lea rcx, str.BatteryInfoGet_Voltage:__u_mV
mov edx, dword [rax]
call fcn.140036ce0
mov rax, qword [rsp + 0x50]
lea rcx, str.BatteryInfoGet_RemainingCapacity:__u_mWh
mov edx, dword [rax]
call fcn.140036ce0
mov rax, qword [rsp + 0x58]
lea rcx, str.BatteryInfoGet_DesignedCapacity:__u_mWh
mov edx, dword [rax]
call fcn.140036ce0
mov edx, dword [rsi]
lea rcx, str.BatteryInfoGet_FullChargedCapacity:__u_mWh
call fcn.140036ce0
mov edx, dword [r14]
lea rcx, str.BatteryInfoGet_CycleCount:__u
call fcn.140036ce0
mov r8, rbx
lea rcx, str.BatteryInfoGet_ErrorCode:_0X_X_SymptomCode:__s_r_n
mov edx, edi
call fcn.140036ce0
call qword [0x1400c18e8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rbp - 0x20]
mov rsi, qword [rbp]
mov rdi, qword [rbp - 8]
mov rbx, qword [rbp - 0x10]
jmp 0x140012b99
mov rcx, qword [rsp + 0x40]
lea r8, str.HW_BAT_02
mov edx, 0x10
mov dword [rcx + 0x67c], 0x6003
add rcx, 0x65c
call fcn.140005120
lea rcx, str.BatteryInfoGet_Fail:_Battery_Unplugin
call fcn.140036ce0
lea r8, str.HW_BAT_02
mov edx, 0x6003
lea rcx, str.BatteryInfoGet_ErrorCode:_0X_X_SymptomCode:__s_r_n
call fcn.140036ce0
call qword [0x1400c18e8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140012ba6
mov rcx, rbx
call fcn.140053b20
test rdi, rdi
je 0x140012bb3
mov rcx, rdi
call fcn.140053b20
test rsi, rsi
je 0x140012bc0
mov rcx, rsi
call fcn.140053b20
test r14, r14
je 0x140012bcd
mov rcx, r14
call fcn.140053b20
mov rdi, qword [rbp - 0x18]
xor r14d, r14d
mov rbx, qword [rbp + 0x28]
mov rsi, qword [rbp + 8]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140012bed
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov qword [rsi], r14
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140012bff
call fcn.140055724
mov qword [rsi + 0x10], r14
mov edx, SafeArrayPutElement
mov dword [rsi + 8], r14d
mov rcx, rsi
call fcn.140055724
mov rcx, r15
call fcn.140053b20
mov rcx, r12
call fcn.140053b20
mov rcx, r13
call fcn.140053b20
mov rcx, rdi
call fcn.140053b20
mov rcx, rbx
call fcn.140053b20
jmp 0x140013009
lea rcx, str.LoadLibrary_AsusWinIo64_dll_fail
call fcn.140036ce0
mov ecx, SafeArrayPutElement
call fcn.14005572c
xor r13d, r13d
mov qword [rsp + 0x70], rax
lea rdx, [0x14009dd28]
mov rcx, rax
mov r15, rax
mov qword [rax + 8], r13
mov qword [rax], r13
mov qword [rax + 0x10], r13
call fcn.14003a550
cmp dword [r15 + 8], 1
jge 0x140012cc8
lea rbx, str.HW_BAT_02
mov dword [rsi + 0x67c], 0x6001
mov r8, rbx
lea rcx, [rsi + 0x65c]
lea edx, [r13 + 0x10]
call fcn.140005120
lea rcx, str.BatteryInfoGet_Fail:_Battery_Not_Exist
call fcn.140036ce0
mov r8, rbx
lea rcx, str.BatteryInfoGet_ErrorCode:_0X_X_SymptomCode:__s_r_n
mov edx, 0x6001
call fcn.140036ce0
jmp 0x140012fd5
mov ecx, 0x48
call fcn.14005572c
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.140052ed0
lea rdx, str.ROOTWMI
mov qword [rbp - 0x18], rax
mov rcx, rax
mov r14, rax
call fcn.140052fa0
lea rdx, str.SELECT__FROM_BatteryStatus
mov rcx, r14
call fcn.140053170
mov ecx, 0x48
call fcn.14005572c
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.140052ed0
lea rdx, str.ROOTWMI
mov qword [rbp + 0x38], rax
mov rcx, rax
mov rdi, rax
call fcn.140052fa0
lea rdx, str.SELECT__FROM_BatteryStaticData
mov rcx, rdi
call fcn.140053170
mov ecx, 0x48
call fcn.14005572c
xor edx, edx
mov rcx, rax
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
mov qword [rax + 0x40], rdx
call fcn.140052ed0
lea rdx, str.ROOTWMI
mov qword [rbp + 0x30], rax
mov rcx, rax
mov rbx, rax
call fcn.140052fa0
lea rdx, str.SELECT__FROM_BatteryFullChargedCapacity
mov rcx, rbx
call fcn.140053170
mov ecx, 0x48
call fcn.14005572c
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rcx, rax
call fcn.140052ed0
mov rsi, rax
lea rdx, str.ROOTWMI
mov qword [rbp + 8], rax
mov rcx, rax
call fcn.140052fa0
lea rdx, str.SELECT__FROM_BatteryCycleCount
mov rcx, rsi
call fcn.140053170
cmp dword [r14 + 0x20], 1
jl 0x140012f55
cmp dword [rdi + 0x20], 1
jl 0x140012f55
cmp dword [rbx + 0x20], 1
jl 0x140012f55
cmp dword [rsi + 0x20], 1
jl 0x140012f55
mov r12, qword [rsp + 0x40]
lea rcx, [rbp - 0x18]
lea rbx, [r12 + 0x654]
mov r8, rbx
call fcn.140054dd0
lea rdi, [r12 + 0x650]
mov r8, rdi
lea rcx, [rbp - 0x18]
call fcn.140054d20
lea rsi, [r12 + 0x648]
mov r8, rsi
lea rcx, [rbp + 0x38]
call fcn.140054990
lea r14, [r12 + 0x64c]
mov r8, r14
lea rcx, [rbp + 0x30]
call fcn.140054ac0
lea r15, [r12 + 0x658]
mov r8, r15
lea rcx, [rbp + 8]
call fcn.140054bf0
mov eax, 0x6000
lea rcx, [r12 + 0x65c]
mov dword [r12 + 0x67c], eax
mov edx, 0x10
lea r12, str.SW_BAT_01
mov dword [rbp - 0x20], eax
mov r8, r12
call fcn.140005120
mov edx, dword [rbx]
lea rcx, str.BatteryInfoGet_Voltage:__u_mV
call fcn.140036ce0
mov edx, dword [rdi]
lea rcx, str.BatteryInfoGet_RemainingCapacity:__u_mWh
call fcn.140036ce0
mov edx, dword [rsi]
lea rcx, str.BatteryInfoGet_DesignedCapacity:__u_mWh
call fcn.140036ce0
mov edx, dword [r14]
lea rcx, str.BatteryInfoGet_FullChargedCapacity:__u_mWh
call fcn.140036ce0
mov edx, dword [r15]
lea rcx, str.BatteryInfoGet_CycleCount:__u
call fcn.140036ce0
mov r14, qword [rbp - 0x18]
mov rdi, qword [rbp + 0x38]
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 8]
mov r15, qword [rsp + 0x70]
jmp 0x140012f8f
mov rcx, qword [rsp + 0x40]
lea r12, str.HW_BAT_02
mov eax, 0x6003
mov r8, r12
mov edx, 0x10
mov dword [rbp - 0x20], eax
mov dword [rcx + 0x67c], eax
add rcx, 0x65c
call fcn.140005120
lea rcx, str.BatteryInfoGet_Fail:_Battery_Unplugin
call fcn.140036ce0
mov edx, dword [rbp - 0x20]
lea rcx, str.BatteryInfoGet_ErrorCode:_0X_X_SymptomCode:__s_r_n
mov r8, r12
call fcn.140036ce0
test rsi, rsi
je 0x140012fae
mov rcx, rsi
call fcn.140053b20
test rbx, rbx
je 0x140012fbb
mov rcx, rbx
call fcn.140053b20
test rdi, rdi
je 0x140012fc8
mov rcx, rdi
call fcn.140053b20
test r14, r14
je 0x140012fd5
mov rcx, r14
call fcn.140053b20
mov rcx, qword [r15]
test rcx, rcx
je 0x140012fe6
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov qword [r15], r13
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x140012ff8
call fcn.140055724
mov qword [r15 + 0x10], r13
mov edx, SafeArrayPutElement
mov dword [r15 + 8], r13d
mov rcx, r15
call fcn.140055724
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140055700
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret