Function at 0x18003e2b0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov r13, rdx
movsxd r14, ecx
xor r15d, r15d
mov r12d, r15d
cmp qword [0x1801d99d8], r12
je 0x18003e775
cmp qword [0x1801d99d0], r12
je 0x18003e775
test ecx, ecx
js 0x18003e770
cmp r14d, 9
jae 0x18003e770
mov qword [rbp - 0x38], r15
mov rsi, r14
imul rsi, rsi, 0x38
lea rdx, str.SELECT_PNPDeviceID_FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
mov rdx, qword [rsi + rdx]
lea rcx, [rbp - 0x30]
call fcn.18003d3f0
mov rdi, rax
lea ecx, [r15 + 0x18]
call fcn.1800be830
mov rbx, rax
mov qword [rbp + 0x50], rax
test rax, rax
je 0x18003e35e
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, [0x180152dd4]
call fcn.1800dfa80
mov qword [rbx], rax
jmp 0x18003e361
mov rbx, r15
mov qword [rbp - 0x28], rbx
test rbx, rbx
jne 0x18003e375
mov ecx, 0x8007000e
call fcn.1800dfa70
nop
mov rax, qword [rdi]
test rax, rax
je 0x18003e382
mov r8, qword [rax]
jmp 0x18003e385
mov r8, r15
mov rcx, qword [0x1801d99d8]
mov rax, qword [rcx]
lea rdx, [rbp - 0x38]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r15
mov r9d, 0x30
mov rdx, qword [rbx]
call qword [rax + QueryPathOfRegTypeLib]
mov edi, eax
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x18003e3de
mov rcx, qword [rbx]
test rcx, rcx
je 0x18003e3c8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18003e3d6
call fcn.1800be7e8
mov rcx, rbx
call fcn.1800be828
mov qword [rbp - 0x28], r15
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x18003e424
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x18003e420
test rbx, rbx
je 0x18003e420
mov rcx, qword [rbx]
test rcx, rcx
je 0x18003e40a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18003e418
call fcn.1800be7e8
mov rcx, rbx
call fcn.1800be828
mov qword [rbp - 0x30], r15
test edi, edi
jns 0x18003e432
mov eax, 0xfffffffd
jmp 0x18003e77a
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x18003e765
nop
mov qword [rbp - 0x40], r15
mov dword [rbp + 0x50], r15d
test r13, r13
je 0x18003e457
cmp r12d, 0xa
jge 0x18003e765
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x40]
mov r8d, 1
or edx, 0xffffffff
call qword [rax + 0x20]
cmp dword [rbp + 0x50], 0
je 0x18003e761
test r13, r13
je 0x18003e745
lea rdi, str.SELECT_PNPDeviceID_FROM_Win32_NetworkAdapter_WHERE__MACAddress_IS_NOT_NULL__AND__NOT__PNPDeviceID_LIKE_ROOT___
mov eax, dword [rsi + rdi + 8]
mov dword [r13 + 0xa00], eax
mov ebx, r15d
cmp dword [rsi + rdi + 8], ebx
jle 0x18003e745
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov ecx, ebx
test ebx, ebx
je 0x18003e6b6
dec ecx
je 0x18003e645
dec ecx
je 0x18003e5c9
dec ecx
je 0x18003e555
dec ecx
jne 0x18003e72f
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, qword [rsi + rdi + 0x30]
call qword [rax + 0x20]
mov r11d, 0x100
movsxd rax, r12d
imul rax, rax, 0xa04
lea rcx, [rax + r13 + 0x800]
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
nop dword [rax]
lea rax, [r11 + 0x7ffffefe]
test rax, rax
je 0x18003e543
movzx eax, word [rdx + rcx]
test ax, ax
je 0x18003e543
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x18003e520
jmp 0x18003e548
test r11, r11
jne 0x18003e54c
sub rcx, 2
mov word [rcx], r15w
jmp 0x18003e72f
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, qword [rsi + rdi + 0x28]
call qword [rax + 0x20]
mov r11d, 0x100
movsxd rax, r12d
imul rax, rax, 0xa04
lea rcx, [rax + r13 + 0x600]
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
lea rax, [r11 + 0x7ffffefe]
test rax, rax
je 0x18003e5b7
movzx eax, word [rcx + rdx]
test ax, ax
je 0x18003e5b7
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x18003e594
jmp 0x18003e5bc
test r11, r11
jne 0x18003e5c0
sub rcx, 2
mov word [rcx], r15w
jmp 0x18003e72f
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, qword [rsi + rdi + 0x20]
call qword [rax + 0x20]
mov r11d, 0x100
movsxd rax, r12d
imul rax, rax, 0xa04
lea rcx, [rax + r13 + 0x400]
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
nop dword [rax + rax]
lea rax, [r11 + 0x7ffffefe]
test rax, rax
je 0x18003e633
movzx eax, word [rcx + rdx]
test ax, ax
je 0x18003e633
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x18003e610
jmp 0x18003e638
test r11, r11
jne 0x18003e63c
sub rcx, 2
mov word [rcx], r15w
jmp 0x18003e72f
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, qword [rsi + rdi + 0x18]
call qword [rax + 0x20]
mov r11d, 0x100
movsxd rax, r12d
imul rax, rax, 0xa04
lea rcx, [rax + r13 + 0x200]
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
lea rax, [r11 + 0x7ffffefe]
test rax, rax
je 0x18003e6a7
movzx eax, word [rcx + rdx]
test ax, ax
je 0x18003e6a7
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x18003e684
jmp 0x18003e6ac
test r11, r11
jne 0x18003e6b0
sub rcx, 2
mov word [rcx], r15w
jmp 0x18003e72f
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, qword [rsi + rdi + 0x10]
call qword [rax + 0x20]
mov r11d, 0x100
movsxd r8, r12d
imul r8, r8, 0xa04
add r8, r13
mov rcx, r8
mov rdx, qword [rbp - 0x10]
sub rdx, r8
lea rax, [r11 + 0x7ffffefe]
test rax, rax
je 0x18003e716
movzx eax, word [rcx + rdx]
test ax, ax
je 0x18003e716
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x18003e6f3
jmp 0x18003e71b
test r11, r11
jne 0x18003e71f
sub rcx, 2
mov word [rcx], r15w
mov rdx, r8
mov ecx, r14d
call fcn.18003db60
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
inc ebx
cmp ebx, dword [rsi + rdi + 8]
jl 0x18003e4a5
inc r12d
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x38]
test rcx, rcx
jne 0x18003e440
jmp 0x18003e765
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, r12d
jmp 0x18003e77a
or eax, 0xffffffff
jmp 0x18003e77a
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret