Function at 0x40cb44
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 0x40cd61
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x40cc43
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 + 0x1c8]
mov edx, 0x40cd78
call fcn.0040343c
mov eax, dword [ebp - 0x14]
call fcn.004035b4
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40cd4b
mov eax, dword [ebx + 0x7c]
call fcn.00408334
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0x7c]
call fcn.00408364
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0x7c]
call fcn.004083bc
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0x7c]
call fcn.00408394
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40cd98
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 0x40cd4b
mov eax, dword [ebx + 0x1d4]
call dword [ebx + 0x1d0]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x14]
mov ecx, dword [ebx + 0x1c8]
mov edx, 0x40cd78
call fcn.0040343c
mov eax, dword [ebp - 0x14]
call fcn.004035b4
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40cd4b
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 0x40cd84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40ccc1
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebp - 0x10]
call fcn.00408340
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40cd8c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40ccec
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebp - 0x10]
call fcn.00408370
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40cd90
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40cd17
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebp - 0x10]
call fcn.004083c8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40cd98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40cd42
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebp - 0x10]
call fcn.004083a0
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 0x40cd68
lea eax, [ebp - 0x14]
call fcn.00403278
ret