Function at 0x434600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f51ed
mov eax, dword fs:[0]
push eax
sub esp, 0xfc8
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
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x43464a
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xfc4], esi
push str.AuthUser
lea ecx, [ebp - 0xfb8]
mov dword [ebp - 4], 0
call fcn.004021e0
push str.SoftwareSolidWorksIM
lea ecx, [ebp - 0xfc8]
mov byte [ebp - 4], 1
call fcn.004021e0
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0xfb0], ax
lea eax, [ebp - 0xfc0]
push eax
push 0x20019
push 0
push dword [ebp - 0xfc8]
mov dword [ebp - 0xfbc], 0
push SysReAllocStringLen
mov dword [ebp - 0xfcc], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434741
lea eax, [ebp - 0xfcc]
push eax
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0xfbc]
push eax
push 0
push dword [ebp - 0xfb8]
push dword [ebp - 0xfc0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xfc0]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x434741
lea ecx, [ebp - 0xfb0]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434710
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xfb0]
push eax
lea ecx, [ebp - 0xfc4]
call fcn.00402090
mov esi, dword [ebp - 0xfc4]
mov byte [ebp - 0xfb1], 1
jmp 0x434748
mov byte [ebp - 0xfb1], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xfc8]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43476e
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, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434791
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xfb1], 0
je 0x4347b1
cmp dword [esi - 0xc], 0
je 0x4347b1
lea eax, [ebp - 0xfc4]
push eax
mov ecx, 0x6c20c0
call fcn.00404570
push str.AuthP
lea ecx, [ebp - 0xfc0]
call fcn.004021e0
push str.SoftwareSolidWorksIM
lea ecx, [ebp - 0xfc8]
mov byte [ebp - 4], 3
call fcn.004021e0
mov byte [ebp - 4], 4
xor eax, eax
mov word [ebp - 0x7e0], ax
lea eax, [ebp - 0xfb8]
push eax
push 0x20019
push 0
push dword [ebp - 0xfc8]
mov dword [ebp - 0xfcc], 0
push SysReAllocStringLen
mov dword [ebp - 0xfbc], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x434891
lea eax, [ebp - 0xfbc]
push eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0xfcc]
push eax
push 0
push dword [ebp - 0xfc0]
push dword [ebp - 0xfb8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xfb8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x434891
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434860
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x7e0]
push eax
lea ecx, [ebp - 0xfc4]
call fcn.00402090
mov esi, dword [ebp - 0xfc4]
mov byte [ebp - 0xfb1], 1
jmp 0x434898
mov byte [ebp - 0xfb1], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xfc8]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4348bb
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 0x4348de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xfb1], 0
je 0x43495c
cmp dword [esi - 0xc], 0
je 0x43495c
push ecx
mov ecx, esp
mov dword [ebp - 0xfcc], esp
push str._________
call fcn.004021e0
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov byte [ebp - 4], 5
call fcn.004046f0
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea ecx, [ebp - 0xfbc]
mov byte [ebp - 4], 0
call fcn.0041e8b0
add esp, 8
push eax
mov ecx, 0x6c20c4
mov byte [ebp - 4], 6
call fcn.00404570
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xfbc]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43495c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xfb8]
push eax
push 0x20019
push 0
push str.SoftwareSolidWorksIM
push SysReAllocStringLen
mov dword [ebp - 0xfd4], 4
mov dword [ebp - 0xfd0], 0
mov dword [ebp - 0xfbc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4349ed
lea eax, [ebp - 0xfbc]
push eax
lea eax, [ebp - 0xfd0]
push eax
lea eax, [ebp - 0xfd4]
push eax
push 0
push str.AuthSkipPrompt
push dword [ebp - 0xfb8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xfb8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4349ed
mov eax, dword [ebp - 0xfd0]
mov ecx, dword [0x6c20c8]
test eax, eax
cmovne ecx, eax
mov dword [0x6c20c8], ecx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x434a0b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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