Function at 0x446130
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x61c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
xor edi, edi
test eax, eax
je 0x4461a0
push eax
lea eax, [esp + 0x228]
push str.SoftwareEDS_s_TranslatorCurrentVersionEnvironment
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0x224]
push ecx
push 0x20019
push edi
push edx
push closesocket
call esi
test eax, eax
je 0x4462d0
lea eax, [esp + 8]
push eax
push 0x20019
push edi
push str.SoftwareEAI_s_TranslatorCurrentVersionEnvironment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SoftwareEDSTranslatorCurrentVersionEnvironment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push str.SoftwareEAITranslatorCurrentVersionEnvironment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareEDSVisView5.1Environment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SoftwareEDSVisView5.0Environment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push str.SoftwareEDSVisView4.1Environment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareEDSVisView4.0Environment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SoftwareEDSVisView3.0Environment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push str.SoftwareEAIVisView3.0Environment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareEAIVisView2.4Environment
push closesocket
call esi
test eax, eax
je 0x4462d0
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SoftwareEAIVisView2.02Environment
push closesocket
call esi
test eax, eax
jne 0x4463a8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
mov ebp, 0x80
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x1ac]
push edx
lea edx, [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x30]
push 0
lea edx, [esp + 0x38]
mov eax, edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
inc edi
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
call ebx
test eax, eax
jne 0x44639b
cmp dword [esp + 0x20], 1
jne 0x4462dd
xor eax, eax
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0xa8], cl
inc eax
test cl, cl
jne 0x446323
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa8]
repne scasb al, byte es:[edi]
mov cx, word [0x4c7260]
mov word [edi - 1], cx
lea edi, [esp + 0x1ac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xa8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__putenv]
mov edi, dword [esp + 0x1c]
add esp, 4
jmp 0x4462dd
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x61c
ret