Function at 0x546020
Capabilities:
Delete registry value
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x653fa1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [edi], vtable.CUrlHistory.0
push 0xa
lea ecx, [edi + 4]
call fcn.005f7439
xor esi, esi
mov dword [ebp - 4], esi
lea ecx, [edi + 0x20]
mov dword [ecx], esi
mov dword [ecx + 8], esi
xor eax, eax
mov word [ecx + 4], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 0xffffffff
mov byte [ebp - 4], 2
mov eax, dword [0x752c1c]
cmp eax, esi
jne 0x5460a1
mov eax, 0x752c20
push esi
push str.UrlHistory.txt
push eax
push 0x66dde0
call fcn.00402320
mov byte [ebp - 0x15], 0
push 0x66e97c
lea ecx, [ebp - 0x14]
call fcn.004030b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
push ecx
push 0xf003f
push esi
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5461e6
lea edx, [ebp - 0x28]
push edx
push esi
push esi
push esi
push str.UrlHistory
mov eax, dword [ebp - 0x20]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x5461e6
mov eax, dword [ebp - 0x28]
cmp eax, 1
jbe 0x5461cd
inc eax
push eax
call fcn.005e9aa7
mov ebx, eax
mov ecx, dword [ebp - 0x28]
inc ecx
push ecx
push 0
push ebx
call fcn.00615eb0
add esp, 0x10
lea edx, [ebp - 0x28]
push edx
push ebx
push 0
push 0
push str.UrlHistory
mov eax, dword [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x5461c4
mov byte [ebp - 0x15], 1
push ebx
lea ecx, [ebp - 0x14]
call fcn.00546c40
nop
push 0
push 0x7c
lea ecx, [ebp - 0x14]
call fcn.004b31d0
mov esi, eax
cmp esi, 0xffffffff
jle 0x5461c4
test esi, esi
jne 0x546184
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00500f00
jmp 0x546160
push esi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004f7ba0
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.004058f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.00402570
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [edi + 4]
call fcn.005f775f
inc esi
push esi
push 0
lea ecx, [ebp - 0x14]
call fcn.00500f00
jmp 0x546160
push ebx
call fcn.005e9ab2
add esp, 4
push str.UrlHistory
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp byte [ebp - 0x15], 0
jne 0x5462e8
cmp dword [edi + 0x20], 0
je 0x5461f1
mov eax, dword [edi + 0x20]
jmp 0x5461f4
lea eax, [edi + 0x24]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x546238
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], 1
mov dword [ebp - 4], esi
jmp 0x54635d
mov bl, 6
lea ebx, [ebx]
push 0x400
push 0
lea ecx, [ebp]
push ecx
call fcn.00615eb0
add esp, 0xc
push 0
lea edx, [ebp - 0x24]
push edx
push 0x3ff
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5462e8
cmp dword [ebp - 0x24], 0
jbe 0x5462e8
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403070
nop
push 0
push 0xa
lea ecx, [ebp - 0x14]
call fcn.004b31d0
mov esi, eax
cmp esi, 0xffffffff
jle 0x5462e0
lea ecx, [ebp - 0x14]
test esi, esi
jne 0x5462a4
push 1
push eax
call fcn.00500f00
jmp 0x546280
push esi
lea edx, [ebp - 0x30]
push edx
call fcn.004f7ba0
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x1c]
call fcn.004058f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402570
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [edi + 4]
call fcn.005f775f
inc esi
push esi
push 0
lea ecx, [ebp - 0x14]
call fcn.00500f00
jmp 0x546280
mov esi, dword [ebp - 0x2c]
jmp 0x546240
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 1
jmp 0x546349
mov eax, dword [ebp - 0x2c]
or esi, 0xffffffff
cmp eax, esi
je 0x54635a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x404
mov esp, ebp
pop ebp
ret