Function at 0x409830
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ed71
push eax
mov dword fs:[0], esp
sub esp, 0xfb8
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push eax
xor esi, esi
push 0x20019
push esi
push str.SoftwareMicrosoftNET_Framework_SetupNDP_
mov ebp, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409879
xor eax, eax
jmp 0x409b53
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0x28]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x2ed
lea edi, [esp + 0x411]
mov byte [esp + 0x410], bl
mov edx, dword [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push 0x3e8
stosw word es:[edi], ax
push ecx
push esi
push edx
mov dword [esp + 0x24], esi
stosb byte es:[edi], al
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x409aab
mov ecx, 0x2ee
xor eax, eax
lea edi, [esp + 0x410]
inc ebx
rep stosd dword es:[edi], eax
mov edi, str.SoftwareMicrosoftNET_Framework_SetupNDP_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x410]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 edx, [esp + 0x410]
and ecx, 3
mov dword [esp + 0x14], eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x41c]
push str.Install
push ecx
push 0x80000002
mov ecx, ebp
call fcn.00408700
test al, al
jne 0x4099ec
mov edi, 0x429538
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 edx, [esp + 0x414]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Client
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x41c]
push str.Install
push ecx
push 0x80000002
mov ecx, ebp
call fcn.00408700
test al, al
je 0x409a89
cmp dword [esp + 0x14], 1
jne 0x409a89
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x28]
push str.v2.0
push edx
xor esi, esi
call edi
add esp, 8
test eax, eax
je 0x409a19
mov esi, 0x14
jmp 0x409a7f
lea eax, [esp + 0x28]
push str.v3.0
push eax
call edi
add esp, 8
test eax, eax
je 0x409a33
mov esi, 0x1e
jmp 0x409a7f
lea ecx, [esp + 0x28]
push str.v3.5
push ecx
call edi
add esp, 8
test eax, eax
je 0x409a4d
mov esi, 0x23
jmp 0x409a7f
lea edx, [esp + 0x28]
push 0x429d4c
push edx
call edi
add esp, 8
test eax, eax
je 0x409a67
mov esi, 0x28
jmp 0x409a7f
lea eax, [esp + 0x28]
push 0x429d48
push eax
call edi
add esp, 8
test eax, eax
je 0x409a7f
mov esi, 0x32
cmp esi, dword [esp + 0x10]
jle 0x409a89
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push 0x3e8
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x4098c6
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
push esi
lea ecx, [esp + 0x1c]
push 0x429d30
push ecx
mov dword [esp + 0xfdc], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x18]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x18]
mov byte [esp + 0xfd8], 1
push eax
call fcn.00415a10
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.LogsLancher.txt
push eax
push ecx
mov byte [esp + 0xfe8], 2
call sub.MFC42.DLL_operator_2
mov byte [esp + 0xfdc], 3
call fcn.00415430
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xfd0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0xfd0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0xfc8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xfc4
ret