Function at 0x40ca5e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x24
mov eax, 0x46f396
call fcn.00450afd
mov eax, dword [ebp + 0xd4]
xor esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], esi
xor eax, eax
mov dword [ebp - 4], esi
push 0xc6
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.00450bc0
add esp, 0xc
mov edi, str.Software_
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 0x64
mov dword [ebp - 0x28], esi
call fcn.004019b7
mov byte [ebp - 4], 1
cmp dword [ebp + 0xf0], 8
mov eax, dword [ebp + 0xdc]
jae 0x40cadd
lea eax, [ebp + 0xdc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408b2d
push 0x47cf18
lea eax, [ebp - 0x14]
push eax
call fcn.00408b2d
cmp dword [ebp + 0xf0], 8
mov eax, dword [ebp + 0xdc]
jae 0x40cb0a
lea eax, [ebp + 0xdc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408b2d
push str._Helper_Compact_
lea eax, [ebp - 0x14]
push eax
call fcn.00408b2d
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.004019b7
mov byte [ebp - 4], 2
cmp dword [ebp + 0xf0], 8
mov eax, dword [ebp + 0xdc]
jae 0x40cb45
lea eax, [ebp + 0xdc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408b2d
push str.WAF_
lea eax, [ebp - 0x1c]
push eax
call fcn.00408b2d
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.0040c8f8
test eax, eax
je 0x40cb73
mov dword [ebp - 0x20], 0x200
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov ebx, 0x20019
push ebx
push esi
push esi
push esi
push dword [ebp - 0x14]
push SysReAllocString
call edi
test eax, eax
jne 0x40cbd8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push str.ClientSign
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cbc6
mov dword [ebp - 0x24], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], esi
jne 0x40cc7b
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
or eax, ebx
push eax
push esi
push esi
push esi
push dword [ebp - 0x14]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
mov dword [ebp - 0x20], eax
call edi
test eax, eax
jne 0x40cc37
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push str.ClientSign
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cc29
mov dword [ebp - 0x24], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], esi
jne 0x40cc7b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x20]
push esi
push esi
push esi
push dword [ebp - 0x1c]
push ebx
call edi
test eax, eax
jne 0x40cc7b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push str.ClientSign
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp]
push eax
call fcn.00406a3c
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401464
push esi
push 1
lea ecx, [ebp + 0xd8]
call fcn.00401fd6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.0044eff8
add ebp, 0xcc
leave
ret