Function at 0x14008a820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
xor r14d, r14d
mov eax, dword [rcx + rdx]
cmp dword [0x1401e0d94], eax
jle 0x14008aec0
lea rcx, [0x1401e0d94]
call fcn.140122750
cmp dword [0x1401e0d94], 0xffffffff
jne 0x14008aec0
mov qword [0x1401e0da0], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqa xmmword [0x1401e0db0], xmm0
mov byte [0x1401e0da0], r14b
lea r8d, [r14 + 0x14]
lea rdx, str.EstimatedBatteryTime
lea rcx, [0x1401e0da0]
call fcn.140028df0
nop
lea ecx, [r14 + 0x18]
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008a900
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.RootCIMV2
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008a903
mov rbx, r14
mov qword [0x1401e0dc0], rbx
test rbx, rbx
je 0x14008b49a
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008a951
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.select_EstimatedRunTime_from_Win32_Battery
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008a954
mov rbx, r14
mov qword [0x1401e0dc8], rbx
test rbx, rbx
je 0x14008b4a5
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008a9a2
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.EstimatedRunTime
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008a9a5
mov rbx, r14
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14008b4b0
mov dword [rsp + 0x38], 3
lea rax, [rsp + 0x30]
mov qword [rbp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x60]
lea rcx, [0x1401e0dd0]
call fcn.14008b5f0
nop
lea r9, [0x140066290]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 0xf]
lea rcx, [rsp + 0x30]
call fcn.140122ab8
mov qword [0x1401e0de8], r14
mov qword [0x1401e0df8], r14
mov qword [0x1401e0e00], 0xf
mov byte [0x1401e0de8], 0
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str._no_battery_
lea rcx, [0x1401e0de8]
call fcn.140028df0
nop
mov qword [0x1401e0e08], r14
mov qword [0x1401e0e18], r14
mov qword [0x1401e0e20], 0xf
mov byte [0x1401e0e08], 0
mov r8d, 0xa
lea rdx, str.SystemType
lea rcx, [0x1401e0e08]
call fcn.140028df0
nop
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008aaaa
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.RootCIMV2
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008aaad
mov rbx, r14
mov qword [0x1401e0e28], rbx
test rbx, rbx
je 0x14008b4bb
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008aafb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.select_PCSystemTypeEx_from_Win32_ComputerSystem
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008aafe
mov rbx, r14
mov qword [0x1401e0e30], rbx
test rbx, rbx
je 0x14008b4c6
lea rdx, str.PCSystemTypeEx
lea rcx, [rsp + 0x30]
call fcn.140089fb0
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x30]
mov qword [rbp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x60]
lea rcx, [0x1401e0e38]
call fcn.14008b5f0
nop
lea r9, [0x140066290]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 0xf]
lea rcx, [rsp + 0x30]
call fcn.140122ab8
mov qword [0x1401e0e50], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqa xmmword [0x1401e0e60], xmm0
mov byte [0x1401e0e50], 0
mov r8d, 7
lea rdx, str._error_
lea rcx, [0x1401e0e50]
call fcn.140028df0
nop
mov qword [0x1401e0e70], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqa xmmword [0x1401e0e80], xmm0
mov byte [0x1401e0e70], 0
mov r8d, 0xa
lea rdx, str.PowerState
lea rcx, [0x1401e0e70]
call fcn.140028df0
nop
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008ac0f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.RootCIMV2
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008ac12
mov rbx, r14
mov qword [0x1401e0e90], rbx
test rbx, rbx
je 0x14008b4d1
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008ac60
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.select_PowerState_from_Win32_ComputerSystem
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008ac63
mov rbx, r14
mov qword [0x1401e0e98], rbx
test rbx, rbx
je 0x14008b4dc
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008acb1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.PowerState
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008acb4
mov rbx, r14
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14008b4e7
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x30]
mov qword [rbp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x60]
lea rcx, [0x1401e0ea0]
call fcn.14008b5f0
nop
lea r9, [0x140066290]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 0xf]
lea rcx, [rsp + 0x30]
call fcn.140122ab8
mov qword [0x1401e0eb8], r14
mov qword [0x1401e0ec8], r14
mov qword [0x1401e0ed0], 0xf
mov byte [0x1401e0eb8], 0
mov r8d, 7
lea rdx, str._error_
lea rcx, [0x1401e0eb8]
call fcn.140028df0
nop
mov qword [0x1401e0ed8], r14
mov qword [0x1401e0ee8], r14
mov qword [0x1401e0ef0], 0xf
mov byte [0x1401e0ed8], 0
mov r8d, SafeArrayDestroy
lea rdx, str.WorstDiskState
lea rcx, [0x1401e0ed8]
call fcn.140028df0
nop
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008adb6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.rootwmi
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008adb9
mov rbx, r14
mov qword [0x1401e0ef8], rbx
test rbx, rbx
je 0x14008b4f2
mov ecx, 0x18
call fcn.140122570
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14008ae07
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r14
mov dword [rbx + 0x10], 1
lea rcx, str.select_PredictFailure_from_MSStorageDriver_FailurePredictStatus
call fcn.140123b20
mov qword [rbx], rax
jmp 0x14008ae0a
mov rbx, r14
mov qword [0x1401e0f00], rbx
test rbx, rbx
je 0x14008b48f
lea rdx, str.PredictFailure
lea rcx, [rsp + 0x30]
call fcn.140089fb0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x30]
mov qword [rbp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x60]
lea rcx, [0x1401e0f08]
call fcn.14008b5f0
nop
lea r9, [0x140066290]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 0xf]
lea rcx, [rsp + 0x30]
call fcn.140122ab8
mov qword [0x1401e0f20], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqa xmmword [0x1401e0f30], xmm0
mov byte [0x1401e0f20], 0
mov r8d, 0x18
lea rdx, str._error_or_not_supported_
lea rcx, [0x1401e0f20]
call fcn.140028df0
nop
lea rcx, [0x14016d860]
call fcn.140122aa0
lea rcx, [0x1401e0d94]
call fcn.1401226f0
mov qword [rbp + 0x80], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], 0
mov r8d, 2
lea rdx, [0x1401a036c]
lea rcx, [rbp + 0x80]
call fcn.140028df0
nop
lea rbx, [rsi + 0x28]
lea r8, [rbp + 0x80]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rcx, qword [rax]
add rcx, 0x40
cmp rcx, rbx
je 0x14008af34
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14008af2b
mov rbx, qword [rbx]
mov rdx, rbx
call fcn.140028df0
nop
lea rcx, [rbp + 0x80]
call fcn.140028ff0
nop
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14008afbd
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14008afbd
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008afbd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14008afbd
cmp word [rax + 4], 0
jne 0x14008afbd
cmp dword [rax + 0x28], 0xfeef04bd
jne 0x14008afbd
movzx edx, word [rax + 0x32]
movzx r8d, word [rax + 0x30]
movzx r9d, word [rax + 0x36]
movzx eax, word [rax + 0x34]
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x60]
call fcn.140089a70
jmp 0x14008afe9
mov qword [rbp + 0x60], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], 0
mov r8d, 7
lea rdx, str.0.0.0.0
lea rcx, [rbp + 0x60]
call fcn.140028df0
nop
mov qword [rbp + 0x80], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], 0
mov r8d, 0xa
lea rdx, str.OS_Version
lea rcx, [rbp + 0x80]
call fcn.140028df0
nop
lea r8, [rbp + 0x80]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rbx, qword [rax]
add rbx, 0x40
lea rax, [rbp + 0x60]
cmp rbx, rax
je 0x14008b06e
mov rcx, rbx
call fcn.140028ff0
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x70]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], 0
lea rcx, [rbp + 0x80]
call fcn.140028ff0
nop
lea rcx, [rbp + 0x60]
call fcn.140028ff0
mov qword [rbp + 0x80], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], 0
mov r8d, reloc.OLEAUT32.dll_SafeArrayDestroy
lea rdx, str.Product_Version
lea rcx, [rbp + 0x80]
call fcn.140028df0
nop
lea r8, [rbp + 0x80]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rcx, qword [rax]
add rcx, 0x40
mov r8d, 9
lea rdx, str.4.1.1.866
call fcn.140028df0
nop
lea rcx, [rbp + 0x80]
call fcn.140028ff0
mov qword [rbp + 0x80], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], 0
mov r8d, 4
lea rdx, str.UUID
lea rcx, [rbp + 0x80]
call fcn.140028df0
nop
lea r8, [rbp + 0x80]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rcx, qword [rax]
add rcx, 0x40
xor r8d, r8d
lea rdx, [0x140194f27]
call fcn.140028df0
nop
lea rcx, [rbp + 0x80]
call fcn.140028ff0
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x90], r14
mov qword [rbp + 0x98], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbp + 0x80], 0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r14w
lea rdx, [rbp + 0x60]
call fcn.1400836c0
test al, al
jne 0x14008b1b7
lea rcx, [rbp + 0x60]
call fcn.1400285b0
jmp 0x14008b2f3
lea rax, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rax, qword [rbp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140029190
test al, al
jne 0x14008b26c
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140059480
lea rax, str.UIDService.cpp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x74
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140026620
lea rdx, str.Failed_to_convert_wuuid_to_string
lea rcx, [rsp + 0x60]
call fcn.140026650
lea rcx, [rbp - 8]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400fa82c
nop
lea rcx, [rbp + 0x60]
call fcn.1400285b0
jmp 0x14008b2f3
lea rcx, [rbp + 0x60]
call fcn.1400285b0
mov qword [rbp + 0x60], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], 0
mov r8d, 4
lea rdx, str.UUID
lea rcx, [rbp + 0x60]
call fcn.140028df0
nop
lea r8, [rbp + 0x60]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rbp + 0x80]
cmp rcx, rax
je 0x14008b2ea
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
mov r8, qword [rbp + 0x90]
call fcn.140028df0
nop
lea rcx, [rbp + 0x60]
call fcn.140028ff0
mov qword [rbp + 0x60], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0x60], 0
mov r8d, 0xa
lea rdx, str.Machine_ID
lea rcx, [rbp + 0x60]
call fcn.140028df0
nop
lea r8, [rbp + 0x60]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rcx, qword [rax]
add rcx, 0x40
mov r8d, 9
lea rdx, str.NO_REGKEY
call fcn.140028df0
nop
lea rcx, [rbp + 0x60]
call fcn.140028ff0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbp + 0x60], 0
lea rdx, [rbp + 0x60]
call fcn.140083a70
test al, al
je 0x14008b3ea
mov qword [rsp + 0x40], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov r8d, 0xa
lea rdx, str.Machine_ID
lea rcx, [rsp + 0x40]
call fcn.140028df0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rbp + 0x60]
cmp rcx, rax
je 0x14008b3e0
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x70]
call fcn.140028df0
nop
lea rcx, [rsp + 0x40]
call fcn.140028ff0
mov qword [rsp + 0x40], r14
movdqa xmm0, xmmword [0x1401a4090]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov r8d, reloc.OLEAUT32.dll_VariantChangeType
lea rdx, str.OS_Platform
lea rcx, [rsp + 0x40]
call fcn.140028df0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.14008b900
mov rcx, qword [rax]
add rcx, 0x40
mov r8d, 2
lea rdx, [0x1401a03b4]
call fcn.140028df0
nop
lea rcx, [rsp + 0x40]
call fcn.140028ff0
nop
lea rcx, [rbp + 0x60]
call fcn.140028ff0
nop
lea rcx, [rbp + 0x80]
call fcn.140028ff0
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140122510
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
nop
mov ecx, 0x8007000e
call fcn.1401239f0
int3