Function at 0x4017a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
or ecx, 0xffffffff
mov edi, 0x4089d0
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x408760], ebx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x40876c
mov dword [0x408764], ebx
mov dword [0x408768], ebx
mov dword [0x4085c0], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [0x4085c4], ebx
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths3dsmax.exe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x4085c8], ebx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x4087d0
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Path
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x408834
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.3D_Studio_Max_V3
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x408898
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4089d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4085cc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths3dsmax.exe
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 0xff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x408630
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Path
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x408694
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.3D_Studio_Max_V4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, 0x4086f8
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SOFTWAREAutodesk3D_Studio_MaxCurrentVersion
push 0x80000002
call edi
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push ebx
push str.Version
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x401960
cmp byte [esp + 0x18], 0x33
jne 0x401960
mov dword [0x408764], 1
mov dword [0x408768], 3
jmp 0x40196c
mov dword [0x408764], ebx
mov dword [0x408768], ebx
lea edx, [esp + 0x10]
push edx
push 1
push ebx
push str.SOFTWAREAutodesk3D_Studio_Max
push 0x80000002
call edi
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push ebx
push str.CurrentVersion
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov edi, 4
jne 0x4019c7
cmp byte [esp + 0x18], 0x34
jne 0x4019c7
mov dword [0x4085c4], 1
mov dword [0x4085c8], edi
jmp 0x4019d3
mov dword [0x4085c4], ebx
mov dword [0x4085c8], ebx
cmp dword [0x408768], 3
jne 0x4019e9
push 0x408760
call fcn.00401600
add esp, 4
mov eax, dword [0x4085c8]
cmp eax, edi
pop edi
pop esi
pop ebp
pop ebx
jne 0x401a03
push 0x4085c0
call fcn.00401600
add esp, 4
add esp, 0x108
ret