Function at 0x40c279
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x50
mov eax, 0x467a06
call fcn.0043990a
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
mov byte [ebp - 0xd], bl
call fcn.00403419
push ebx
push 0xffffffffffffffff
push 0x478058
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 1
call fcn.00409030
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.0041b98b
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00403754
lea ecx, [ebp - 0x54]
call fcn.00403754
push 1
mov ecx, esi
call fcn.0040bea8
test eax, eax
je 0x40c3e8
cmp dword [esi + 0xc], ebx
je 0x40c45a
lea ecx, [ebp - 0x44]
call fcn.0040852a
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 0x40c3dd
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp + 0xc]
push edx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
push dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
jne 0x40c3dd
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40c3dd
cmp word [eax], 1
jne 0x40c3dd
cmp dword [eax + 4], 1
jne 0x40c3dd
cmp dword [eax + 0x14], ebx
jne 0x40c3dd
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
ja 0x40c3dd
cmp ecx, dword [ebp - 0x20]
ja 0x40c3dd
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x40c3dd
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
shr dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp word [eax + ecx*2 - 2], bx
jne 0x40c3b8
dec dword [ebp - 0x14]
push dword [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00408d8c
push dword [ebp + 0xc]
mov byte [ebp - 0xd], 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
push dword [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40c455
lea ecx, [ebp - 0x44]
call fcn.0040852a
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40c45a
push dword [ebp - 0x14]
call fcn.00439837
pop ecx
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], eax
call fcn.0040852a
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0xc]
push ebx
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
shr dword [ebp - 0x14], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp word [esi + eax*2 - 2], bx
jne 0x40c43f
dec dword [ebp - 0x14]
push dword [ebp - 0x14]
mov ecx, edi
push esi
call fcn.00408d8c
push esi
mov byte [ebp - 0xd], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
cmp byte [ebp - 0xd], bl
jne 0x40c466
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00408cc6
lea ecx, [ebp - 0x34]
call fcn.00403754
lea ecx, [ebp - 0x3c]
call fcn.00403754
mov byte [ebp - 4], bl
cmp dword [ebp - 0x28], ebx
je 0x40c486
mov ecx, dword [ebp - 0x2c]
call fcn.0040a517
mov eax, edi
call fcn.004399e2
ret 0xc