Function at 0x437390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4d53
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 - 0xfd0], ecx
push 0x63bfdc
lea ecx, [ebp - 0xfb4]
call fcn.004021e0
push str.MajorVersionOverride
lea ecx, [ebp - 0xfc0]
mov dword [ebp - 4], 0
call fcn.004021e0
push str.SoftwareSolidWorksIM
lea ecx, [ebp - 0xfc4]
mov byte [ebp - 4], 1
call fcn.004021e0
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
mov word [ebp - 0xfb0], ax
lea eax, [ebp - 0xfbc]
push eax
push 0x20019
push 0
push dword [ebp - 0xfc4]
mov dword [ebp - 0xfcc], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xfc8], 0x7d0
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4374b8
lea eax, [ebp - 0xfc8]
push eax
lea eax, [ebp - 0xfb0]
push eax
lea eax, [ebp - 0xfcc]
push eax
push 0
push dword [ebp - 0xfc0]
push dword [ebp - 0xfbc]
call ebx
push dword [ebp - 0xfbc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4374b2
lea ecx, [ebp - 0xfb0]
lea edx, [ecx + 2]
jmp 0x437490
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437490
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xfb0]
push eax
lea ecx, [ebp - 0xfb4]
call fcn.00402090
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xfc4]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4374de
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, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437501
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xfb4]
cmp dword [eax - 0xc], 0
jne 0x4376a2
push 0x63bfdc
lea ecx, [ebp - 0xfbc]
call fcn.004021e0
push 0x63ca44
lea ecx, [ebp - 0xfc8]
mov byte [ebp - 4], 3
call fcn.004021e0
push str.SoftwareSolidWorksIM
lea ecx, [ebp - 0xfc4]
mov byte [ebp - 4], 4
call fcn.004021e0
mov byte [ebp - 4], 5
xor eax, eax
mov word [ebp - 0x7e0], ax
lea eax, [ebp - 0xfc0]
push eax
push 0x20019
push 0
push dword [ebp - 0xfc4]
mov dword [ebp - 0xfb8], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xfcc], 0x7d0
call esi
test eax, eax
jne 0x4375f2
lea eax, [ebp - 0xfcc]
push eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0xfb8]
push eax
push 0
push dword [ebp - 0xfc8]
push dword [ebp - 0xfc0]
call ebx
push dword [ebp - 0xfc0]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4375f2
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4375d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x7e0]
push eax
lea ecx, [ebp - 0xfbc]
call fcn.00402090
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xfc4]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437615
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xfc8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437638
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 5
lea eax, [ebp - 0xfb8]
push eax
lea ecx, [ebp - 0xfbc]
call fcn.00404680
push eax
lea ecx, [ebp - 0xfb4]
mov byte [ebp - 4], 6
call fcn.00404570
mov byte [ebp - 4], 3
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 0x43767f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
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 0x4376a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xfb4]
cmp dword [eax - 0xc], 4
jl 0x437702
push 4
lea eax, [ebp - 0xfb8]
push eax
lea ecx, [ebp - 0xfb4]
call fcn.00404680
push 0xa
push 0
push dword [eax]
call fcn.005bc96e
mov ebx, dword [ebp - 0xfb8]
add ebx, 0xfffffff0
add esp, 0xc
mov esi, eax
lea ecx, [ebx + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4376f1
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi - 0x7c9]
lea ecx, [esi - 0x7c8]
cmp eax, 0x6a
jbe 0x437707
mov ecx, 0x18
mov eax, dword [ebp - 0xfb4]
mov eax, dword [eax - 0xc]
cmp eax, 4
jge 0x437732
lea eax, [ecx + 0x7c8]
push eax
lea eax, [ebp - 0xfb4]
push 0x64569c
push eax
call fcn.00404520
add esp, 0xc
jmp 0x43777e
cmp eax, 5
jle 0x43777e
push 5
lea eax, [ebp - 0xfb8]
push eax
lea ecx, [ebp - 0xfb4]
call fcn.00404680
push eax
lea ecx, [ebp - 0xfb4]
mov byte [ebp - 4], 7
call fcn.00404570
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 0x43777e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xfb4]
cmp dword [eax - 0xc], 4
jne 0x4377d8
push 0x640d60
lea eax, [ebp - 0xfb4]
push eax
lea eax, [ebp - 0xfb8]
push eax
call fcn.004067b0
add esp, 0xc
push eax
lea ecx, [ebp - 0xfb4]
mov byte [ebp - 4], 8
call fcn.00404570
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 0x4377d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xfb4]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004046f0
mov ebx, dword [ebp - 0xfd0]
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.004445f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xfb4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x437823
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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