Function at 0x413870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1264
call fcn.005fffa0
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
add ecx, 1
push ecx
call fcn.0047ce38
add esp, 4
mov dword [ebp - 0x1258], eax
mov edx, dword [ebp - 0x1258]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x28], 0
jne 0x4138e5
xor eax, eax
jmp 0x413c83
mov byte [ebp - 0x128], 0
push 0xff
push 0
lea eax, [ebp - 0x127]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x238], 0
push 0xff
push 0
lea ecx, [ebp - 0x237]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov word [ebp - 0x13], dx
mov byte [ebp - 0x11], dl
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x23c], ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x134], edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004136c0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x413999
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x125c], edx
mov eax, dword [ebp - 0x125c]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
jmp 0x413c83
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1260], ecx
mov edx, dword [ebp - 0x1260]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x413a92
mov byte [ebp - 0x640], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x63f]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapRangesRange_d
push 0x3ff
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
mov dword [ebp - 0x648], 2
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x640]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x644], 0
je 0x413a38
xor eax, eax
jmp 0x413c83
push 4
lea eax, [ebp - 0x648]
push eax
push 4
push 0
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 1
push 0
push str.:Range
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413bda
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1264], ecx
push 0x2e
mov edx, dword [ebp - 0x1264]
push edx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
mov dword [ebp - 0x1254], eax
cmp dword [ebp - 0x1254], 0
jne 0x413ac3
xor eax, eax
jmp 0x413c83
mov byte [ebp - 0x1250], 0
push 0x3ff
push 0
lea eax, [ebp - 0x124f]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x1254]
sub ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x1250]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov byte [ebp - 0xa50], 0
push 0x3ff
push 0
lea ecx, [ebp - 0xa4f]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x1254]
add edx, 1
push edx
lea eax, [ebp - 0xa50]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
mov byte [ebp - 0xe50], 0
push 0x3ff
push 0
lea ecx, [ebp - 0xe4f]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x1250]
push edx
lea eax, [ebp - 0xa50]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZoneMapDomains_s_s
lea ecx, [ebp - 0xe50]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
mov dword [ebp - 0x650], 2
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0xe50]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x413bac
xor eax, eax
jmp 0x413c83
push 4
lea ecx, [ebp - 0x650]
push ecx
push 4
push 0
mov edx, dword [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x12c]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413c01
xor eax, eax
jmp 0x413c83
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.1004
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.1201
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 3
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push str.1409
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
push 0
push 0
push 0x57
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret