Function at 0x422920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f2da8
mov eax, dword fs:[0]
push eax
sub esp, 0xfc4
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xfcc], ecx
push 0x63bfdc
lea ecx, [ebp - 0xfc0]
call fcn.004021e0
push str.Status
lea ecx, [ebp - 0xfb4]
mov dword [ebp - 4], 0
call fcn.004021e0
push str.SoftwareSolidWorksIMBackgroundDownloadRequest
lea ecx, [ebp - 0xfbc]
mov byte [ebp - 4], 1
call fcn.004021e0
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x7e0], ax
lea eax, [ebp - 0xfb8]
push eax
push 0x20019
push 0
push dword [ebp - 0xfbc]
mov dword [ebp - 0xfc4], 0
push SysReAllocStringLen
mov dword [ebp - 0xfc8], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422a42
lea eax, [ebp - 0xfc8]
push eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0xfc4]
push eax
push 0
push dword [ebp - 0xfb4]
push dword [ebp - 0xfb8]
call ebx
push dword [ebp - 0xfb8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x422a42
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422a20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x7e0]
push eax
lea ecx, [ebp - 0xfc0]
call fcn.00402090
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xfbc]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422a68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfb4]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422a8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xfc0]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00425c10
mov ecx, dword [ebp - 0xfcc]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x422ac5
cmp eax, 8
je 0x422ac5
xor bl, bl
jmp 0x422ccd
mov edx, 1
lea ecx, [ebp - 0xfb8]
call fcn.00425bd0
push str.Status
lea ecx, [ebp - 0xfbc]
mov byte [ebp - 4], 3
call fcn.004021e0
push str.SoftwareSolidWorksIMBackgroundDownloadRequest
lea ecx, [ebp - 0xfb4]
mov byte [ebp - 4], 4
call fcn.004021e0
push 1
lea eax, [ebp - 0xfb8]
push eax
lea eax, [ebp - 0xfbc]
push eax
lea edx, [ebp - 0xfb4]
mov ecx, SysReAllocStringLen
mov byte [ebp - 4], 5
call fcn.00417640
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xfb4]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422b47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xfbc]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422b6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfb8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422b8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Status
lea ecx, [ebp - 0xfb8]
call fcn.004021e0
push str.SoftwareSolidWorksIMBackgroundDownloadRequest
lea ecx, [ebp - 0xfbc]
mov byte [ebp - 4], 6
call fcn.004021e0
mov byte [ebp - 4], 7
xor eax, eax
mov word [ebp - 0xfb0], ax
lea eax, [ebp - 0xfb4]
push eax
push 0x20019
push 0
push dword [ebp - 0xfbc]
mov dword [ebp - 0xfc8], 0
push SysReAllocStringLen
mov dword [ebp - 0xfc4], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422c57
lea eax, [ebp - 0xfc4]
push eax
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0xfc8]
push eax
push 0
push dword [ebp - 0xfb8]
push dword [ebp - 0xfb4]
call ebx
push dword [ebp - 0xfb4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x422c57
lea ecx, [ebp - 0xfb0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422c35
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xfb0]
push eax
lea ecx, [ebp - 0xfc0]
call fcn.00402090
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xfbc]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422c7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfb8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x422c9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xfc0]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00425c10
mov ecx, dword [ebp - 0xfcc]
add esp, 4
cmp eax, 1
mov dword [ecx], eax
sete bl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0xfc0]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x422cf1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret