Function at 0x4827a0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x8014
call fcn.0051f3e0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push esi
lea eax, [esp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_Agent
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4827ef
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_Agent
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4827ef
pop esi
xor eax, eax
pop ebx
add esp, 0x8014
ret 8
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x482824
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4827e2
cmp dword [esp + 0x8020], 0
push ebp
push edi
je 0x482a1e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], 0x1000
push 0
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2038]
push ecx
push esi
push edx
call ebp
cmp eax, 0x103
je 0x482a00
test eax, eax
jne 0x482904
cmp dword [esp + 0x20], 1
jne 0x482904
jmp 0x482890
movzx ecx, word [esp + eax + 0x2024]
mov word [esp + eax + 0x4024], cx
add eax, 2
test cx, cx
jne 0x482890
lea eax, [esp + 0x4024]
push eax
call fcn.00523e4e
mov ecx, dword [esp + 0x8030]
push ecx
lea edx, [esp + 0x402c]
push edx
call fcn.0051d47a
lea ecx, [esp + 0x4030]
add esp, 0xc
cmp eax, ecx
jne 0x4828f2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2024]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x482915
or esi, 0xffffffff
inc edi
inc esi
cmp edi, 0x4e20
mov dword [esp + 0x14], 0x1000
jg 0x482915
cmp esi, 0x2710
jle 0x482846
jmp 0x482a00
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
je 0x482944
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x8014
ret 8
mov ebx, 0x1000
xor edi, edi
xor esi, esi
mov dword [esp + 0x18], ebx
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6038]
push ecx
push esi
push edx
call ebp
cmp eax, 0x103
je 0x482a00
test eax, eax
jne 0x4829f4
cmp dword [esp + 0x1c], 1
jne 0x4829f4
jmp 0x482990
movzx ecx, word [esp + eax + 0x6024]
mov word [esp + eax + 0x24], cx
add eax, 2
test cx, cx
jne 0x482990
lea eax, [esp + 0x24]
push eax
call fcn.00523e4e
mov ecx, dword [esp + 0x8030]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0051d47a
lea ecx, [esp + 0x30]
add esp, 0xc
cmp eax, ecx
jne 0x4829e6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x6024]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x482a00
or esi, 0xffffffff
inc edi
inc esi
cmp edi, 0x4e20
mov dword [esp + 0x18], ebx
jg 0x482a00
cmp esi, 0x2710
jle 0x482951
mov ecx, dword [esp + 0x8028]
mov edx, dword [esp + 0x10]
push 0
push 0x5dbe20
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x8014
ret 8