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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4082e0
push 0x405f0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x598
push ebx
push esi
push edi
mov dword [ebp - 0x5a8], ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x498], bl
mov ecx, 0xdd
xor eax, eax
lea edi, [ebp - 0x497]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x378
mov dword [ebp - 0x49c], esi
mov byte [ebp - 0x120], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40371e
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x498]
push ecx
push ebx
push ebx
push str.PackedCatalogItem
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403731
cmp dword [ebp - 0x49c], esi
jne 0x403731
lea eax, [ebp - 0x394]
mov dword [ebp - 0x4a0], eax
mov ecx, 0x41
lea esi, [ebp - 0x498]
lea edi, [ebp - 0x120]
rep movsd dword es:[edi], dword [esi]
push str.ProxyIE.dll
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x403712
cmp dword [ebp - 0x36c], 1
jne 0x403712
cmp dword [ebp - 0x348], 2
jne 0x403712
push str.MSAFD_Tcpip__TCP_IP_
lea edx, [ebp - 0x320]
push edx
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
call esi
add esp, 8
test eax, eax
jne 0x40368b
push str.MSAFD_Tcpip__UDP_IP_
lea eax, [ebp - 0x320]
push eax
call esi
add esp, 8
test eax, eax
jne 0x40368b
push str.MSAFD_Tcpip__RAW_IP_
lea ecx, [ebp - 0x320]
push ecx
call esi
add esp, 8
test eax, eax
jne 0x40368b
push str.RSVP_UDP_Service_Provider
lea edx, [ebp - 0x320]
push edx
call esi
add esp, 8
test eax, eax
jne 0x40368b
push str.RSVP_TCP_Service_Provider
lea eax, [ebp - 0x320]
push eax
call esi
add esp, 8
test eax, eax
je 0x403712
mov byte [ebp - 0x5a4], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x5a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x5a4]
push ecx
mov edx, dword [ebp - 0x370]
push edx
mov ecx, dword [ebp - 0x5a8]
call fcn.00402230
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x498]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x5a4]
lea edx, [ebp - 0x498]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x49c]
push ecx
lea edx, [ebp - 0x498]
push edx
push 3
push ebx
push str.PackedCatalogItem
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
call fcn.00403761
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8