Function at 0x42f650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f39cd
mov eax, dword fs:[0]
push eax
sub esp, 0xfc8
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 0
push 0x63bfdc
mov ecx, eax
mov dword [ebp - 0xfc8], eax
call fcn.00402090
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42f6b3
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xfd0], eax
push ecx
lea eax, [ebp - 0xfbc]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00444b40
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0xfd0]
push str.SoftwareSolidWorksSolidWorks__sGeneral
push eax
call fcn.00404520
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfbc]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 0xc
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42f719
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Toolbox_Data_Location
lea ecx, [ebp - 0xfc0]
call fcn.004021e0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0xfd0]
xor eax, eax
mov word [ebp - 0x7e4], ax
lea eax, [ebp - 0xfbc]
push eax
push 0x20019
push 0
push esi
push SysReAllocStringLen
mov dword [ebp - 0xfc4], 0
mov dword [ebp - 0xfcc], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f7ea
lea eax, [ebp - 0xfcc]
push eax
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0xfc4]
push eax
push 0
push dword [ebp - 0xfc0]
push dword [ebp - 0xfbc]
call edi
push dword [ebp - 0xfbc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x42f7e4
lea ecx, [ebp - 0x7e4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f7b4
mov edi, dword [ebp - 0xfc8]
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x7e4]
push eax
mov ecx, edi
call fcn.00402090
mov byte [ebp - 0xfb5], 1
jmp 0x42f89f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov word [ebp - 0xfb4], ax
lea eax, [ebp - 0xfbc]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xfcc], 0
mov dword [ebp - 0xfc4], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f892
lea eax, [ebp - 0xfc4]
push eax
lea eax, [ebp - 0xfb4]
push eax
lea eax, [ebp - 0xfcc]
push eax
push 0
push dword [ebp - 0xfc0]
push dword [ebp - 0xfbc]
call edi
push dword [ebp - 0xfbc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x42f892
lea ecx, [ebp - 0xfb4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f865
mov edi, dword [ebp - 0xfc8]
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xfb4]
push eax
mov ecx, edi
call fcn.00402090
mov byte [ebp - 0xfb5], 1
jmp 0x42f89f
mov edi, dword [ebp - 0xfc8]
mov byte [ebp - 0xfb5], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfc0]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42f8c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xfb5], 0
je 0x42f9be
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42f8eb
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xfc0], eax
mov byte [ebp - 4], 3
push dword [edi]
lea eax, [ebp - 0xfc0]
push str.DETECTED_Toolbox_Folder__s
push eax
call fcn.00404520
add esp, 0xc
lea ecx, [ebp - 0xfbc]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov ebx, eax
push ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xfbc]
add ecx, 0xfffffff0
mov edi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [edi], eax
lea eax, [ebp - 0xfc0]
push eax
push 0x5ff
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldInstallData.cpp
push 0
push 1
mov ecx, ebx
call fcn.004055a0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xfbc]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42f992
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfc0]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42fa84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42fa84
push str.FAILED_TO_DETECT_Toolbox_Folder
lea ecx, [ebp - 0xfc0]
call fcn.004021e0
push 0x63bfdc
lea ecx, [ebp - 0xfbc]
mov byte [ebp - 4], 5
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov ebx, eax
push ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xfbc]
add ecx, 0xfffffff0
mov edi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [edi], eax
lea eax, [ebp - 0xfc0]
push eax
push 0x603
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldInstallData.cpp
push 0
push 1
mov ecx, ebx
call fcn.004055a0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xfbc]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42fa4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfc0]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42fa72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xfc8]
push 0
push 0x63bfdc
call fcn.00402090
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42faa2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xfb5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret 4