Function at 0x140059380
Capabilities:
Reference wmi statements

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x710
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0x750], rbx
mov rax, qword [0x14035b8c0]
xor rax, rsp
mov qword [rsp + 0x700], rax
mov r15, rdx
mov byte [rdx], 0
cmp byte [rcx + 0x28], 0
jne 0x1400593c9
xor al, al
jmp 0x14005964c
lea r8, [rsp + 0x60]
lea rdx, str.SELECT__FROM_Win32_NetworkAdapter
call fcn.14005c730
test al, al
je 0x14005964a
xor r12d, r12d
mov dword [rsp + 0x34], r12d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0xc0]
lea edx, [r12 - 1]
mov r8d, MsiSourceListClearAllW
call qword [rax + 0x20]
test eax, eax
js 0x14005964a
mov esi, r12d
nop dword [rax]
cmp esi, dword [rsp + 0x34]
jae 0x14005964a
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov eax, esi
lea r14, [rsp + 0xc0]
lea r14, [r14 + rax*8]
lea r9, [rsp + 0x40]
lea r8, str.PhysicalAdapter
mov rdx, qword [r14]
call fcn.14005c040
test al, al
je 0x14005962e
cmp word [rsp + 0x40], 0xb
jne 0x140059473
cmp word [rsp + 0x48], 0
setne bl
jmp 0x1400594b4
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, SafeArrayGetDim
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x140059674
cmp word [rsp + 0x70], 0xffff
sete bl
lea rcx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x14005962e
lea r9, [rsp + 0x40]
lea r8, str.NetConnectionStatus
mov rdx, qword [r14]
call fcn.14005c040
test al, al
je 0x14005962e
cmp word [rsp + 0x40], 0x16
jne 0x1400594e6
mov eax, dword [rsp + 0x48]
jmp 0x1400594f0
lea rcx, [rsp + 0x40]
call fcn.14005e190
cmp eax, 2
jne 0x14005962e
lea r9, [rsp + 0x40]
lea r8, str.Name
mov rdx, qword [r14]
call fcn.14005c040
test al, al
je 0x14005962e
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], r12
cmp word [rsp + 0x40], 8
jne 0x140059545
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.14005e0d0
jmp 0x14005959a
lea rcx, [rsp + 0x80]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x14005967c
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.14005e0d0
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400595a9
mov rdx, qword [rbx]
jmp 0x1400595ac
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.140009580
mov rdi, rax
call fcn.140083240
nop
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rax
call fcn.140083650
movzx edi, al
test rbx, rbx
je 0x14005961e
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14005961e
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400595ff
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140059611
call fcn.14008a738
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140004154
test dil, dil
je 0x14005962e
cmp byte [rsp + 0x30], 0
je 0x14005962e
mov byte [r15], 1
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
inc esi
jmp 0x140059420
mov al, 1
mov rcx, qword [rsp + 0x700]
xor rcx, rsp
call fcn.140229750
mov rbx, qword [rsp + 0x750]
add rsp, 0x710
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, eax
call fcn.14022aaf0
nop
mov ecx, eax
call fcn.14022aaf0
int3