Function at 0x46e870
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.0046d4f0
test eax, eax
je 0x46e904
push 0
push str.CPrepareInstall_::_SetupRegInstallSource_n
push 0x6964d0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x6963d0], eax
mov eax, 0x6964d0
mov dword [0x6963d4], ecx
add esp, 0xc
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46e8c0
mov edi, 0x6963d0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46e8d1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x6963d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
lea edx, [ebp - 0x1f8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46e911
lea eax, [ebp - 0x1fc]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46eb24
mov edx, dword [ebp - 0x1fc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x200]
push ecx
push eax
push eax
push eax
push str.Installation_Sources
push edx
call ebx
test eax, eax
jne 0x46ea92
mov eax, dword [ebp - 0x200]
push eax
call fcn.004a6dbf
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x1f8]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46e986
mov ecx, dword [ebp - 0x200]
sub eax, edx
lea edi, [eax + ecx + 1]
push edi
call fcn.004a6dbf
mov ecx, dword [ebp - 0x1fc]
add esp, 4
lea edx, [ebp - 0x200]
push edx
mov esi, eax
mov eax, dword [ebp - 0x204]
push eax
push 0
push 0
push str.Installation_Sources
push ecx
call ebx
test eax, eax
jne 0x46ea78
lea eax, [ebp - 0x1f8]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46e9d8
lea eax, [ebp - 0x1f8]
lea edx, [eax + 1]
jmp 0x46e9f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46e9f0
sub eax, edx
mov byte [eax + esi], cl
lea eax, [ebp - 0x1f8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ea05
mov ecx, dword [ebp - 0x204]
sub eax, edx
mov edx, dword [ebp - 0x200]
push edx
push ecx
lea edx, [eax + esi + 1]
push edx
call fcn.0059b910
mov eax, dword [ebp - 0x1fc]
add esp, 0xc
push edi
push esi
push 7
push 0
push str.Installation_Sources
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x46ea78
call fcn.0046d4f0
test eax, eax
je 0x46ea78
lea ecx, [ebp - 0x1f8]
push ecx
push str.Install_Source_path_set_to__s_n
push 0x6962d0
call fcn.00599ee3
add esp, 0xc
push 0x6962d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov edx, dword [ebp - 0x204]
push edx
call fcn.004a6dca
push esi
call fcn.004a6dca
add esp, 8
jmp 0x46eb16
lea edi, [ebp - 0x1f8]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46eaa0
mov al, byte [0x5d99dc]
mov byte [edi], al
lea eax, [ebp - 0x1f8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46eab8
sub eax, edx
mov edx, dword [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x1f8]
push ecx
push 7
push 0
push str.Installation_Sources
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x46eb16
call fcn.0046d4f0
test eax, eax
je 0x46eb16
lea eax, [ebp - 0x1f8]
push eax
push str.Install_Source_path_set_to__s_n
push 0x6961d0
call fcn.00599ee3
add esp, 0xc
push 0x6961d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
call fcn.0046d4f0
test eax, eax
je 0x46eba4
push 0
push str.CPrepareInstall_::_SetupRegInstallSource_n
push 0x6960d0
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x695fd4], eax
mov eax, 0x6960d0
add esp, 0xc
mov dword [0x695fd0], edx
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46eb60
mov edi, 0x695fd0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46eb71
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x695fd0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00599ed4
mov esp, ebp
pop ebp
ret 4