Function at 0x402060
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x403672
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
lea eax, [esp + 4]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SoftwareACD_SystemsDownloadManager10
push 0x80000001
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4020b2
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov eax, dword [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
lea ebp, [esi + 0x14]
push ebp
lea edx, [esp + 0x28]
push edx
push ebx
push str.NumberOfFiles
push eax
mov dword [esp + 0x2c], 4
call edi
cmp eax, ebx
jne 0x40232d
mov eax, dword [ebp]
cmp eax, ebx
jle 0x40232d
cmp eax, 0x64
jg 0x40232d
lea ecx, [esp + 0x14]
push ecx
add esi, 0xc
push 0x7d0
mov ecx, esi
mov dword [esp + 0x1c], 0x7d0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push ebx
push str.WelcomeURL
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
push 0x4049c0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x4049c0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [esp + 0x2c], 1
mov eax, dword [ebp]
xor esi, esi
cmp eax, ebx
jle 0x4021e7
jmp 0x402170
push esi
lea ecx, [esp + 0x20]
push str.URL_02d
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov ebx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x7d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x7d0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push ebx
push ecx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
test ebx, ebx
jne 0x402261
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x24]
add ecx, 0x1c
lea edx, [esp + 0x18]
push edx
push eax
call sub.MFC71.DLL_CStringArray::SetAtGrow
mov eax, dword [ebp]
inc esi
cmp esi, eax
jl 0x402170
mov eax, dword [ebp]
xor ebx, ebx
test eax, eax
jle 0x402282
push ebx
lea edx, [esp + 0x20]
push str.License_02d
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov esi, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x7d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x7d0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push esi
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
mov ecx, dword [esp + 0x34]
add ecx, 0x30
test esi, esi
jne 0x402268
mov edx, dword [ecx + 8]
lea eax, [esp + 0x18]
push eax
push edx
call sub.MFC71.DLL_CStringArray::SetAtGrow
jmp 0x402276
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x4022b8
mov eax, dword [ecx + 8]
push 0x4049c0
push eax
call sub.MFC71.DLL_CStringArray::SetAtGrow_1
mov eax, dword [ebp]
inc ebx
cmp ebx, eax
jl 0x4021f4
mov edx, dword [esp + 0x34]
mov eax, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
add edx, 0x10
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0
push str.StopDownloadManagerAfterDownload
push ecx
call edi
test eax, eax
je 0x4022e4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareACD_SystemsDownloadManager10
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x18]
call dword [0x4040e4]
lea ecx, [esp + 0x1c]
call dword [0x4040e4]
jmp 0x402348
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareACD_SystemsDownloadManager10
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x18]
call dword [0x4040e4]
lea ecx, [esp + 0x1c]
call dword [0x4040e4]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareACD_SystemsDownloadManager10
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4