Function at 0x4041a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5bda40]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x450], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x448], esp
push str.17025DBEAEDCFABA4E812B954B842692262F41C241CDB8E51303F2465D0EC440882460EC31022B748C47AE6CBC4E960D
call fcn.00406900
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004038a0
add esp, 8
mov dword [ebp - 0x458], eax
mov byte [ebp - 4], 1
call fcn.00403820
test eax, eax
je 0x404238
lea ecx, [ebp - 0x10]
push ecx
push 0xf013f
push 0
lea ecx, [ebp - 0x14]
call fcn.004072e0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
jmp 0x404253
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.004072e0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40438f
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.0053f680
add esp, 0xc
mov dword [ebp - 0x24], 0x400
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x59fd74
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x404346
lea ecx, [ebp - 0x430]
call fcn.00410610
mov byte [ebp - 4], 2
lea eax, [ebp - 0x42c]
push eax
push 0x5a021c
lea ecx, [ebp - 0x430]
push ecx
call fcn.004089d0
add esp, 0xc
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x430]
push eax
call fcn.00406fc0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x404335
lea ecx, [ebp + 8]
call fcn.00408860
shl eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.004072e0
push eax
push 1
push 0
push 0x5a0134
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jne 0x404335
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.004072c0
jmp 0x404380
lea ecx, [ebp + 8]
call fcn.00408860
shl eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.004072e0
push eax
push 1
push 0
push 0x5a0224
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x404380
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40440f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x43c], eax
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.004072e0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404405
lea ecx, [ebp + 8]
call fcn.00408860
shl eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.004072e0
push eax
push 1
push 0
push str.Default_Page_URL
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x404405
mov byte [ebp - 0x15], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x449], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004072c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004072c0
mov al, byte [ebp - 0x449]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00538a54
mov esp, ebp
pop ebp
ret 4