Function at 0x40c800
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 0x40ca35
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x40c90b
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 + 0x238]
mov edx, 0x40ca4c
call fcn.004031c0
mov eax, dword [ebp - 0x14]
call fcn.00403328
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x40ca1f
mov eax, dword [ebx + 0xb8]
call fcn.00407964
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40ca58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0xb8]
call fcn.00407994
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40ca60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0xb8]
call fcn.004079ec
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40ca64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebx + 0xb8]
call fcn.004079c4
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x40ca6c
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 0x40ca1f
mov eax, dword [ebx + 0x244]
call dword [ebx + 0x240]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x14]
mov ecx, dword [ebx + 0x238]
mov edx, 0x40ca4c
call fcn.004031c0
mov eax, dword [ebp - 0x14]
call fcn.00403328
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40ca1f
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 0x40ca58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40c98c
mov eax, dword [ebx + 0xb8]
mov edx, dword [ebp - 0x10]
call fcn.00407970
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40ca60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40c9ba
mov eax, dword [ebx + 0xb8]
mov edx, dword [ebp - 0x10]
call fcn.004079a0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40ca64
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40c9e8
mov eax, dword [ebx + 0xb8]
mov edx, dword [ebp - 0x10]
call fcn.004079f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x40ca6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40ca16
mov eax, dword [ebx + 0xb8]
mov edx, dword [ebp - 0x10]
call fcn.004079d0
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 0x40ca3c
lea eax, [ebp - 0x14]
call fcn.00403008
ret