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

Disassembly:
push 0xffffffffffffffff
push 0x404ccd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b4
push ebp
xor ebp, ebp
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 3
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CString::CString_1
push str.EnableAutoDial
lea ecx, [esp + 8]
mov dword [esp + 0x3c4], ebp
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x2001f
push ebp
push ecx
push closesocket
mov byte [esp + 0x3d4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x10]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402344
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov byte [esp + 0x3c0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x3b8]
mov dword fs:[0], ecx
pop ebp
add esp, 0x3c0
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push edi
push esi
push ebx
lea edx, [esp + 0x2c]
push 4
push edx
push 3
push ebp
push eax
push ecx
mov dword [esp + 0x44], ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.00404060
lea ecx, [esp + 0x44]
call fcn.004026f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x3cc], 2
call fcn.00402dd0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x3cc], 3
call fcn.004033b0
mov edi, dword [esp + 0x3d4]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x3cc], 4
mov esi, dword [edi + 8]
call fcn.00403840
xor edx, edx
div esi
mov ebx, edx
lea edx, [esp + 0x18]
push ebx
push edx
mov ecx, edi
call fcn.004026b0
push 0xff
push 0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x3d8], 5
call fcn.00402b60
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x3cc], 4
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x402491
inc ebp
cmp ebp, 4
jl 0x4023bc
test esi, esi
jne 0x402491
mov esi, dword [edi + 8]
lea ecx, [esp + 0x9c]
call fcn.00403840
xor edx, edx
div esi
mov ebp, edx
cmp ebx, ebp
jne 0x40243d
mov esi, dword [edi + 8]
lea ecx, [esp + 0x9c]
call fcn.00403840
xor edx, edx
div esi
mov ebp, edx
cmp ebx, ebp
je 0x402424
mov dword [esp + 0x18], 0
mov bl, 6
lea eax, [esp + 0x28]
push ebp
push eax
mov ecx, edi
call fcn.004026b0
push 0xff
push 0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x3d8], bl
call fcn.00402b60
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x3cc], 4
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x402491
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x402447
call fcn.004040a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 4
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x3cc], 3
call fcn.00403400
lea ecx, [esp + 0x34]
mov byte [esp + 0x3cc], 2
call fcn.00402e50
lea ecx, [esp + 0x44]
mov byte [esp + 0x3cc], 1
call fcn.004027b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x3cc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3cc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c4]
xor eax, eax
test esi, esi
pop ebx
pop esi
pop edi
mov dword fs:[0], ecx
setne al
pop ebp
add esp, 0x3c0
ret