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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5bda40]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x43c], esp
push str.17025DBEAEDCFABAE8AF5A87EE34DAF1120516F9685673EEF3ACCBA15A0E1BA213C01BA44740FD06E29ECE05529CD1EBCC99FCE29BAFDF4C
call fcn.00406900
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004038a0
add esp, 8
mov dword [ebp - 0x44c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004072e0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x403e25
xor edx, edx
mov word [ebp - 0x424], dx
push 0x3fe
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.0053f680
add esp, 0xc
mov dword [ebp - 0x20], 0x400
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x59ff7c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403ddf
lea ecx, [ebp - 0x428]
call fcn.00410610
mov byte [ebp - 4], 2
lea edx, [ebp - 0x424]
push edx
push 0x59ff94
lea eax, [ebp - 0x428]
push eax
call fcn.004089d0
add esp, 0xc
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.00406fc0
add esp, 8
movzx eax, al
test eax, eax
je 0x403dce
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 0x59ff9c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
jne 0x403dce
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x428]
call fcn.004072c0
jmp 0x403e19
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 0x59ffb4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jne 0x403e19
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403e99
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.004072e0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403e8f
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.Start_Page
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 0x403e8f
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [ebp - 0x15]
mov byte [ebp - 0x43d], dl
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 - 0x43d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00538a54
mov esp, ebp
pop ebp
ret 4