Function at 0x403ee0
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 0x59ffe8
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 0x403f78
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 0x403f93
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 0x4040cf
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 0x5a00ac
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 0x404086
lea ecx, [ebp - 0x430]
call fcn.00410610
mov byte [ebp - 4], 2
lea eax, [ebp - 0x42c]
push eax
push 0x5a00cc
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 0x404075
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 0x5a00d4
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 0x404075
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.004072c0
jmp 0x4040c0
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 0x5a00f4
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 0x4040c0
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40414f
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 0x404145
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.First_Home_Page
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 0x404145
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