Function at 0x180041bd0
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 [0x1801daa00], r12
je 0x180042095
cmp qword [0x1801da9f8], r12
je 0x180042095
test ecx, ecx
js 0x180042090
cmp r14d, 9
jae 0x180042090
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.180040d10
mov rdi, rax
lea ecx, [r15 + 0x18]
call fcn.1800bf2c0
mov rbx, rax
mov qword [rbp + 0x50], rax
test rax, rax
je 0x180041c7e
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, [0x180153cf0]
call fcn.1800e0520
mov qword [rbx], rax
jmp 0x180041c81
mov rbx, r15
mov qword [rbp - 0x28], rbx
test rbx, rbx
jne 0x180041c95
mov ecx, 0x8007000e
call fcn.1800e0510
nop
mov rax, qword [rdi]
test rax, rax
je 0x180041ca2
mov r8, qword [rax]
jmp 0x180041ca5
mov r8, r15
mov rcx, qword [0x1801daa00]
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 0x180041cfe
mov rcx, qword [rbx]
test rcx, rcx
je 0x180041ce8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180041cf6
call fcn.1800bf278
mov rcx, rbx
call fcn.1800bf2b8
mov qword [rbp - 0x28], r15
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x180041d44
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x180041d40
test rbx, rbx
je 0x180041d40
mov rcx, qword [rbx]
test rcx, rcx
je 0x180041d2a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180041d38
call fcn.1800bf278
mov rcx, rbx
call fcn.1800bf2b8
mov qword [rbp - 0x30], r15
test edi, edi
jns 0x180041d52
mov eax, 0xfffffffd
jmp 0x18004209a
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x180042085
nop
mov qword [rbp - 0x40], r15
mov dword [rbp + 0x50], r15d
test r13, r13
je 0x180041d77
cmp r12d, 0xa
jge 0x180042085
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 0x180042081
test r13, r13
je 0x180042065
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 0x180042065
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov ecx, ebx
test ebx, ebx
je 0x180041fd6
dec ecx
je 0x180041f65
dec ecx
je 0x180041ee9
dec ecx
je 0x180041e75
dec ecx
jne 0x18004204f
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 0x180041e63
movzx eax, word [rdx + rcx]
test ax, ax
je 0x180041e63
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x180041e40
jmp 0x180041e68
test r11, r11
jne 0x180041e6c
sub rcx, 2
mov word [rcx], r15w
jmp 0x18004204f
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 0x180041ed7
movzx eax, word [rcx + rdx]
test ax, ax
je 0x180041ed7
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x180041eb4
jmp 0x180041edc
test r11, r11
jne 0x180041ee0
sub rcx, 2
mov word [rcx], r15w
jmp 0x18004204f
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 0x180041f53
movzx eax, word [rcx + rdx]
test ax, ax
je 0x180041f53
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x180041f30
jmp 0x180041f58
test r11, r11
jne 0x180041f5c
sub rcx, 2
mov word [rcx], r15w
jmp 0x18004204f
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 0x180041fc7
movzx eax, word [rcx + rdx]
test ax, ax
je 0x180041fc7
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x180041fa4
jmp 0x180041fcc
test r11, r11
jne 0x180041fd0
sub rcx, 2
mov word [rcx], r15w
jmp 0x18004204f
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 0x180042036
movzx eax, word [rcx + rdx]
test ax, ax
je 0x180042036
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x180042013
jmp 0x18004203b
test r11, r11
jne 0x18004203f
sub rcx, 2
mov word [rcx], r15w
mov rdx, r8
mov ecx, r14d
call fcn.180041480
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
inc ebx
cmp ebx, dword [rsi + rdi + 8]
jl 0x180041dc5
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 0x180041d60
jmp 0x180042085
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, r12d
jmp 0x18004209a
or eax, 0xffffffff
jmp 0x18004209a
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