Function at 0x140059690
Capabilities:
Reference wmi statements

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x850
mov qword [rax - 0x6e8], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14035b8c0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov r14, rdx
cmp byte [rcx + 0x28], 0
jne 0x1400596d8
xor al, al
jmp 0x140059c89
lea r8, [rsp + 0x120]
lea rdx, str.SELECT__FROM_Win32_DiskDrive
call fcn.14005c730
test al, al
je 0x140059c87
xor r15d, r15d
mov dword [rsp + 0x34], r15d
mov rcx, qword [rsp + 0x120]
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x200]
lea edx, [r15 - 1]
mov r8d, MsiSourceListClearAllW
call qword [rax + 0x20]
test eax, eax
js 0x140059c87
mov esi, r15d
mov dword [rsp + 0x30], r15d
lea r12, vtable.srl::Value.0
lea r13, vtable.srl::Exists.0
lea rbx, vtable.srl::Name.0
cmp esi, dword [rsp + 0x34]
jae 0x140059c87
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x78]
call fcn.1400152d0
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x80], rbx
lea rcx, [rsp + 0x88]
call fcn.1400152d0
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x90], rbx
lea rcx, [rsp + 0x98]
call fcn.1400152d0
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0xa8]
call fcn.1400152d0
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xb8], r13
mov byte [rsp + 0xc0], 0
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xc8], r13
mov byte [rsp + 0xd0], 0
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd8], r13
mov byte [rsp + 0xe0], 0
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov eax, esi
lea rdi, [rsp + 0x200]
lea rdi, [rdi + rax*8]
lea r9, [rsp + 0x48]
lea r8, str.Model
mov rdx, qword [rdi]
call fcn.14005c040
test al, al
je 0x1400599b0
mov qword [rsp + 0x38], r15
cmp word [rsp + 0x48], 8
jne 0x14005985c
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14005e0d0
jmp 0x1400598b8
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0xf0], eax
test eax, eax
js 0x140059cb6
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0x38]
call fcn.14005e0d0
nop
lea rcx, [rsp + 0x148]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400598c7
mov rdx, qword [rax]
jmp 0x1400598ca
mov rdx, r15
lea rcx, [rsp + 0x1c0]
call fcn.140009580
mov rdx, rax
mov qword [rsp + 0x198], rax
mov qword [rsp + 0x128], rax
cmp qword [rax + 0x18], 8
jb 0x1400598fc
mov rdx, qword [rax]
mov qword [rsp + 0x128], rdx
test rdx, rdx
jne 0x140059906
mov eax, r15d
jmp 0x14005991a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140059910
mov dword [rsp + 0x60], eax
mov r8d, eax
lea rcx, [rsp + 0x78]
call fcn.1400029fc
nop
lea rcx, [rsp + 0x1c0]
call fcn.140009568
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400599b0
mov qword [rsp + 0x130], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0xf8], eax
jne 0x1400599a7
mov rbx, qword [rsp + 0x130]
test rbx, rbx
je 0x1400599a7
mov rcx, qword [rbx]
test rcx, rcx
je 0x140059980
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14005999a
mov qword [rsp + 0x1a0], rcx
call fcn.14008a738
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140004154
mov qword [rsp + 0x38], r15
mov esi, dword [rsp + 0x30]
lea r9, [rsp + 0x48]
lea r8, str.Name
mov rdx, qword [rdi]
call fcn.14005c040
test al, al
je 0x140059b43
mov qword [rsp + 0x40], r15
cmp word [rsp + 0x48], 8
jne 0x1400599ea
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14005e0d0
jmp 0x140059a46
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0x100], eax
test eax, eax
js 0x140059cbe
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x40]
call fcn.14005e0d0
nop
lea rcx, [rsp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140059a55
mov rdx, qword [rax]
jmp 0x140059a58
mov rdx, r15
lea rcx, [rsp + 0x1e0]
call fcn.140009580
mov rdx, rax
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x138], rax
cmp qword [rax + 0x18], 8
jb 0x140059a8a
mov rdx, qword [rax]
mov qword [rsp + 0x138], rdx
test rdx, rdx
jne 0x140059a94
mov eax, r15d
jmp 0x140059aaa
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140059aa0
mov dword [rsp + 0x64], eax
mov r8d, eax
lea rcx, [rsp + 0xa8]
call fcn.1400029fc
nop
lea rcx, [rsp + 0x1e0]
call fcn.140009568
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140059b43
mov qword [rsp + 0x140], rcx
mov eax, 0xffffffff
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0x108], eax
jne 0x140059b3a
mov rbx, qword [rsp + 0x140]
test rbx, rbx
je 0x140059b3a
mov rcx, qword [rbx]
test rcx, rcx
je 0x140059b13
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140059b2d
mov qword [rsp + 0x1b0], rcx
call fcn.14008a738
mov qword [rbx + 8], r15
mov edx, 0x18
mov rcx, rbx
call fcn.140004154
mov qword [rsp + 0x40], r15
mov esi, dword [rsp + 0x30]
lea r9, [rsp + 0x48]
lea r8, str.Index
mov rdx, qword [rdi]
call fcn.14005c040
test al, al
je 0x140059bce
cmp word [rsp + 0x48], 0x17
jne 0x140059b6d
mov ebx, dword [rsp + 0x50]
mov dword [rsp + 0x68], ebx
jmp 0x140059bc7
lea rcx, [rsp + 0x178]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 0x17
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x178]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0x110], eax
test eax, eax
js 0x140059cc6
mov ebx, dword [rsp + 0x180]
mov dword [rsp + 0x118], ebx
lea rcx, [rsp + 0x178]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0xb4], ebx
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [r14 + 8]
cmp qword [r14 + 0x10], rax
je 0x140059bfd
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14005dd10
add qword [r14 + 8], 0x78
jmp 0x140059c0e
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call fcn.14005da80
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov qword [rsp + 0xd8], r13
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xb8], r12
lea rcx, [rsp + 0xa0]
call fcn.140053a30
lea rcx, [rsp + 0x90]
call fcn.140053a30
lea rcx, [rsp + 0x80]
call fcn.140053a30
lea rcx, [rsp + 0x70]
call fcn.140053a30
nop
inc esi
mov dword [rsp + 0x30], esi
jmp 0x140059744
mov al, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140229750
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, eax
call fcn.14022aaf0
nop
mov ecx, eax
call fcn.14022aaf0
nop
mov ecx, eax
call fcn.14022aaf0
int3