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

Disassembly:
mov eax, 0x8014
call fcn.0047af40
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 0x42abcf
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_Agent
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x42abcf
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 0x42ac04
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42abc2
cmp dword [esp + 0x8020], 0
push ebp
push edi
je 0x42adfe
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 0x42ade0
test eax, eax
jne 0x42ace4
cmp dword [esp + 0x20], 1
jne 0x42ace4
jmp 0x42ac70
movzx ecx, word [esp + eax + 0x2024]
mov word [esp + eax + 0x4024], cx
add eax, 2
test cx, cx
jne 0x42ac70
lea eax, [esp + 0x4024]
push eax
call fcn.0047e9b7
mov ecx, dword [esp + 0x8030]
push ecx
lea edx, [esp + 0x402c]
push edx
call fcn.0047a849
lea ecx, [esp + 0x4030]
add esp, 0xc
cmp eax, ecx
jne 0x42acd2
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2024]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x42acf5
or esi, 0xffffffff
inc edi
inc esi
cmp edi, 0x4e20
mov dword [esp + 0x14], 0x1000
jg 0x42acf5
cmp esi, 0x2710
jle 0x42ac26
jmp 0x42ade0
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 closesocket
call ebx
test eax, eax
je 0x42ad24
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 0x42ade0
test eax, eax
jne 0x42add4
cmp dword [esp + 0x1c], 1
jne 0x42add4
jmp 0x42ad70
movzx ecx, word [esp + eax + 0x6024]
mov word [esp + eax + 0x24], cx
add eax, 2
test cx, cx
jne 0x42ad70
lea eax, [esp + 0x24]
push eax
call fcn.0047e9b7
mov ecx, dword [esp + 0x8030]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0047a849
lea ecx, [esp + 0x30]
add esp, 0xc
cmp eax, ecx
jne 0x42adc6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x6024]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x42ade0
or esi, 0xffffffff
inc edi
inc esi
cmp edi, 0x4e20
mov dword [esp + 0x18], ebx
jg 0x42ade0
cmp esi, 0x2710
jle 0x42ad31
mov ecx, dword [esp + 0x8028]
mov edx, dword [esp + 0x10]
push 0
push 0x4e88c0
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