Function at 0x140018c90
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov r14, rdx
mov rdi, rcx
lea rcx, str.http:__webservices.autodesk.com_CommCntrLinkCollectionRequest
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140018cdb
mov ecx, 0x8007000e
call fcn.140002460
nop
xor esi, esi
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x140018ceb
mov rax, rsi
jmp 0x140018cfd
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rsp + 0x40], rax
cmp qword [rdi + 8], rsi
je 0x140018d18
test rax, rax
jne 0x140018d18
mov ecx, 0x8007000e
call fcn.140002460
nop
lea rcx, str.CadManagerControlCommunicationCenter
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rdx, str.CadManagerControlCommunicationCenter
lea rcx, [rsp + 0x40]
call fcn.14000c020
test eax, eax
jns 0x140018d45
mov ecx, eax
call fcn.140002460
int3
mov rbp, rsi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0xa0], rsi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdi, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001905f
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x58], esi
mov r13d, esi
mov dword [rsp + 0xa0], esi
mov dword [rsp + 0xa8], 4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.UseAltURL
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018f26
cmp dword [rsp + 0x30], 4
jne 0x140018f26
cmp dword [rsp + 0xa0], 1
jne 0x140018f26
mov dword [rsp + 0xa8], esi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.DataPollingAltURL
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018f26
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140018e4b
cmp eax, 2
jne 0x140018f26
mov r13d, dword [rsp + 0xa8]
shr r13d, 1
cmp r13d, 1
jbe 0x140018f26
mov ecx, r13d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov r12, rax
lea ecx, [r13 + r13]
mov dword [rsp + 0xa8], ecx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.DataPollingAltURL
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018edd
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140018ec9
cmp eax, 2
jne 0x140018edd
test r12, r12
je 0x140018edd
cmp dword [rsp + 0xa8], 0
jne 0x140018edd
mov word [r12], si
cmp r12, rbx
je 0x140018f19
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r12, r12
je 0x140018f11
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140018f19
mov ecx, 0x8007000e
call fcn.140002460
int3
mov rbx, rsi
mov qword [rsp + 0x38], rbx
mov rcx, r12
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x14001904c
lea eax, [r13 + r13]
mov dword [rsp + 0xa8], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.DataPollingURL
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001904c
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140018f76
cmp eax, 2
jne 0x14001904c
mov r13d, dword [rsp + 0xa8]
shr r13d, 1
cmp r13d, 1
jbe 0x14001904c
mov ecx, r13d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov r12, rax
lea ecx, [r13 + r13]
mov dword [rsp + 0xa8], ecx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.DataPollingURL
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019008
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140018ff4
cmp eax, 2
jne 0x140019008
test r12, r12
je 0x140019008
cmp dword [rsp + 0xa8], 0
jne 0x140019008
mov word [r12], si
cmp r12, rbx
je 0x140019044
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r12, r12
je 0x14001903c
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140019044
mov ecx, 0x8007000e
call fcn.140002460
int3
mov rbx, rsi
mov qword [rsp + 0x38], rbx
mov rcx, r12
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
test rbp, rbp
je 0x140019064
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, rsi
jmp 0x140019064
mov esi, 0x80004005
mov qword [r14], rbx
test rbp, rbp
je 0x140019076
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret