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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cd31
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x40cc07
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov ecx, dword [ebx + 0x280]
mov edx, 0x40cd48
call fcn.004031ac
mov eax, dword [ebp - 0x14]
call fcn.00403324
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40cd1b
mov eax, dword [ebx + 0xd0]
call fcn.00407f54
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0xd0]
call fcn.00407f84
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0xd0]
call fcn.00407fdc
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0xd0]
call fcn.00407fb4
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x40cd1b
mov eax, dword [ebx + 0x28c]
call dword [ebx + 0x288]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x14]
mov ecx, dword [ebx + 0x280]
mov edx, 0x40cd48
call fcn.004031ac
mov eax, dword [ebp - 0x14]
call fcn.00403324
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40cd1b
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40cd54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40cc88
mov eax, dword [ebx + 0xd0]
mov edx, dword [ebp - 0x10]
call fcn.00407f60
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40cd5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40ccb6
mov eax, dword [ebx + 0xd0]
mov edx, dword [ebp - 0x10]
call fcn.00407f90
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40cd60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40cce4
mov eax, dword [ebx + 0xd0]
mov edx, dword [ebp - 0x10]
call fcn.00407fe8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40cd68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40cd12
mov eax, dword [ebx + 0xd0]
mov edx, dword [ebp - 0x10]
call fcn.00407fc0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd38
lea eax, [ebp - 0x14]
call fcn.00402ff4
ret