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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x248]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
mov esi, 1
mov dword [ebp - 0x248], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a63
mov eax, dword [ebp - 0x248]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x44]
push edx
push ebx
push eax
xor esi, esi
mov byte [ebp - 0x44], bl
mov dword [ebp - 0x24c], 0x40
call edi
test eax, eax
jne 0x405947
mov edi, edi
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x244]
push edx
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x250]
push eax
push 0
lea ecx, [ebp - 0x44]
push ecx
push edx
inc esi
inc ebx
mov byte [ebp - 0x244], 0
mov dword [ebp - 0x24c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405914
lea eax, [ebp - 0x244]
push eax
call fcn.00405760
add esp, 4
test eax, eax
je 0x405914
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x44]
push ecx
push edx
dec esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 0x248]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x44]
push ecx
push esi
push edx
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x24c], 0x40
call edi
test eax, eax
je 0x4058b0
mov eax, esi
xor esi, esi
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], esi
cmp eax, esi
jle 0x405a60
cmp esi, ebx
jge 0x405a60
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x44]
push str.url_d
push eax
call fcn.004ff1e4
add esp, 0xc
mov byte [ebp - 0x244], 0
mov dword [ebp - 0x24c], 0x200
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x244]
push edx
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x250]
push eax
push 0
lea ecx, [ebp - 0x44]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4059eb
mov esi, edi
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x44]
push str.url_d
push eax
call fcn.004ff1e4
add esp, 0xc
mov byte [ebp - 0x244], 0
mov dword [ebp - 0x24c], 0x200
cmp esi, ebx
jl 0x405993
mov edi, dword [ebp - 0x254]
cmp edi, esi
je 0x405a4c
cmp byte [ebp - 0x244], 0
je 0x405a4c
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x44]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x44]
push str.url_d
push ecx
call fcn.004ff1e4
mov edx, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x250]
add esp, 0xc
push edx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x248]
push ecx
push 0
lea edx, [ebp - 0x44]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc edi
inc esi
mov dword [ebp - 0x254], edi
cmp edi, dword [ebp - 0x258]
jl 0x405965
xor esi, esi
pop edi
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x405a74
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret