Function at 0x40cc28
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x47109e
call fcn.0043cb52
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
xor edi, edi
inc edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
call fcn.0040337b
push ebx
push 0xffffffffffffffff
push 0x4820d4
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00408f1a
push dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 3
call fcn.004039d5
add esp, 0xc
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00403632
lea ecx, [ebp - 0x6c]
call fcn.00403632
cmp dword [esi + 8], ebx
jne 0x40ccb9
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.00403996
mov dword [ebp - 0x1c], edi
jmp 0x40ce3c
push edi
mov ecx, esi
call fcn.0040c857
test eax, eax
je 0x40cda5
cmp dword [esi + 0xc], ebx
je 0x40ce1c
lea ecx, [ebp - 0x5c]
call fcn.0040830e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x14]
push edx
push ebx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
mov eax, dword [esi + 0xc]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
jne 0x40cd9a
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp + 0xc]
push edx
push dword [ebp - 0x18]
mov dword [ebp + 0xc], ebx
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
jne 0x40cd9a
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40cd9a
cmp word [eax], 1
jne 0x40cd9a
cmp dword [eax + 4], 1
jne 0x40cd9a
cmp dword [eax + 0x14], ebx
jne 0x40cd9a
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
ja 0x40cd9a
cmp ecx, edi
ja 0x40cd9a
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40cd9a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
shr dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp word [eax + ecx*2 - 2], bx
jne 0x40cd74
dec dword [ebp - 0x14]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
push eax
call fcn.00408c07
push dword [ebp + 0xc]
mov byte [ebp - 0xd], 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40ce17
lea ecx, [ebp - 0x5c]
call fcn.0040830e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push ebx
push eax
push dword [esi + 8]
call edi
cmp eax, ebx
jne 0x40ce1c
push dword [ebp - 0x14]
call fcn.0043ca7f
pop ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp + 0xc], eax
call fcn.0040830e
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0xc]
push ebx
push ebx
push eax
push dword [esi + 8]
call edi
shr dword [ebp - 0x14], 1
je 0x40cdfc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp word [ecx + eax*2 - 2], bx
jne 0x40cdfc
dec dword [ebp - 0x14]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
push dword [ebp + 0xc]
call fcn.00408c07
push dword [ebp + 0xc]
mov byte [ebp - 0xd], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
cmp byte [ebp - 0xd], bl
jne 0x40ce29
push 0xffffffffffffffff
push dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
call fcn.00408ad4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.00403996
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x4c]
call fcn.00403632
lea ecx, [ebp - 0x54]
call fcn.00403632
mov byte [ebp - 4], 1
cmp dword [ebp - 0x28], ebx
je 0x40ce5d
mov ecx, dword [ebp - 0x2c]
call fcn.0040a4f0
lea ecx, [ebp - 0x34]
call fcn.00403632
lea ecx, [ebp - 0x3c]
call fcn.00403632
mov eax, dword [ebp + 8]
call fcn.0043cc2a
ret 0xc