Function at 0x40c470
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4fc
mov eax, dword [0x51f4f4]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
xor edi, edi
cmp eax, edi
je 0x40c66e
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ecx
push eax
mov eax, dword [esi + 0x24]
push edx
push eax
push str.ATL:_QIThunk_____10d_tLEAK____:_tObject__0x_p_tRefcount___d_tMaxRefCount___d_t
lea ecx, [esp + 0x10c]
push 0x201
push ecx
call fcn.00445f8b
add esp, 0x1c
lea eax, [esp + 0xf8]
xor edx, edx
push eax
mov word [esp + 0x4fc], dx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x14]
push edx
add esi, 0x14
push esi
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 0xc8
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x40c840
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
push 0x507814
call esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
push str.Interface
push SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c5b3
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push 0x20019
push edi
push esi
push ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c5b3
xor eax, eax
cmp ebx, edi
je 0x40c57a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], edi
cmp eax, edi
jne 0x40c5b3
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
mov word [esp + 0x38], ax
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c5b3
lea ecx, [esp + 0x30]
push ecx
jmp 0x40c653
lea edx, [esp + 0x10]
push edx
push 0x20019
push edi
push str.CLSID
push SysReAllocString
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c64e
xor eax, eax
cmp ebx, edi
je 0x40c5e3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
mov ebx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
cmp eax, edi
jne 0x40c64e
mov ecx, esi
lea esi, [esp + 0x1c]
call fcn.0040c420
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x40c64e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
mov word [esp + 0x38], ax
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c64e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._CLSID____
call esi
lea ecx, [esp + 0x30]
push ecx
call esi
push 0x507848
call esi
mov eax, dword [esp + 0x14]
push eax
jmp 0x40c829
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x507848
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
push eax
jmp 0x40c829
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x24]
push ecx
push edx
push str.ATL:_QIThunk_____10d_tNonAddRef_LEAK_:_tObject__0x_p_t
lea eax, [esp + 0x104]
push 0x201
push eax
call fcn.00445f8b
add esp, 0x14
lea edx, [esp + 0xf8]
xor ecx, ecx
push edx
mov word [esp + 0x4fc], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x14]
push ecx
add esi, 0x14
push esi
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], 0xc8
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x40c840
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edx
call esi
push 0x507814
call esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x20019
push edi
push str.Interface
push SysReAllocString
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c780
mov ebx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push edi
push esi
push ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c780
xor eax, eax
cmp ebx, edi
je 0x40c747
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x2c], edi
cmp eax, edi
jne 0x40c780
xor edx, edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov word [esp + 0x38], dx
lea edx, [esp + 0x24]
push edx
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c780
lea eax, [esp + 0x30]
push eax
jmp 0x40c813
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push edi
push str.CLSID
push SysReAllocString
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40c80e
xor eax, eax
cmp ebx, edi
je 0x40c7b0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
mov ebx, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
cmp eax, edi
jne 0x40c80e
mov ecx, esi
lea esi, [esp + 0x28]
call fcn.0040c420
mov ebx, dword [esp + 0x28]
test eax, eax
jne 0x40c80e
xor edx, edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov word [esp + 0x38], dx
lea edx, [esp + 0x24]
push edx
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c80e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._CLSID____
call esi
lea eax, [esp + 0x30]
push eax
call esi
jmp 0x40c819
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x507848
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp ebx, edi
je 0x40c840
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [ebx]
mov ecx, dword [esp + 0x504]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004451b5
mov esp, ebp
pop ebp
ret