Function at 0x40bc92
Capabilities:
Query or enumerate registry value
Set console window title

Disassembly:
push 0x30
mov eax, 0x40a7f0
call fcn.0040a5f0
mov dword [ebp - 0x3c], ecx
mov edi, dword [edx + 0xc]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
test edi, edi
je 0x40bcbc
test dword [edx + 0x2c], 0x800
jne 0x40be08
mov dword [ebp - 0x24], ebx
call fcn.0040c81e
mov ebx, 0x403678
test eax, eax
jne 0x40bcd2
mov ebx, 0x4036b4
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x10000006
push ebx
push 0x403580
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40bde1
mov eax, dword [ebp - 0x24]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040972e
mov ecx, dword [ebp - 0x24]
add ecx, 2
mov dword [ebp - 0x28], eax
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push 0
push 0x10000006
push ebx
push 0x403580
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40bd4f
mov edi, dword [ebp - 0x28]
jmp 0x40bdb1
call fcn.0040c81e
test eax, eax
je 0x40bd7f
mov ebx, 0x4036e8
mov ecx, ebx
call fcn.0040c782
test al, al
jne 0x40bdaf
mov ebx, 0x4037a8
mov ecx, ebx
call fcn.0040c782
test al, al
jne 0x40bdaf
mov ebx, 0x403878
jmp 0x40bda4
mov ebx, 0x403958
mov ecx, ebx
call fcn.0040c782
test al, al
jne 0x40bdaf
mov ebx, 0x403a10
mov ecx, ebx
call fcn.0040c782
test al, al
jne 0x40bdaf
mov ebx, 0x403ac0
mov ecx, ebx
call fcn.0040c782
test al, al
je 0x40bdb4
mov edi, ebx
xor esi, esi
inc esi
push 0x6d
xor ebx, ebx
lea edx, [ebp - 0x14]
pop ecx
mov dword [ebp - 0x14], ebx
call fcn.0040cdcc
test eax, eax
js 0x40c114
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x40bde3
xor ebx, ebx
lea eax, [ebp - 0x14]
mov edx, SysReAllocString
push eax
mov ecx, edi
call fcn.0040ce85
mov edx, dword [ebp - 0x14]
mov ecx, 0x4106e8
push edi
lea edx, [edx + 1]
call fcn.0040ce50
test esi, esi
jne 0x40be29
lea eax, [ebp - 0x14]
mov edx, SysReAllocString
push eax
mov ecx, edi
call fcn.0040ce85
mov edx, dword [ebp - 0x14]
mov ecx, 0x4106e8
push edi
lea edx, [edx + 1]
call fcn.0040ce50
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 0x40334c
push 1
push ebx
push 0x4031b0
call dword [sym.imp.OLE32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40c102
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push 0x4031e0
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x411204]
call dword [esi]
mov esi, eax
test esi, esi
js 0x40c102
mov eax, dword [ebp - 0x34]
push 2
pop edx
push edx
mov ecx, dword [eax]
push 0x4106e8
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x411204]
call esi
mov dword [ebp - 0x38], ebx
test eax, eax
js 0x40bec8
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push 0x104
push 0x4106e8
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x40]
call dword [0x411204]
call dword [esi + 0x40]
mov esi, eax
test esi, esi
jns 0x40beee
jmp 0x40c102
lea eax, [ebp - 0x14]
mov esi, 0x403b98
push eax
mov edx, SysReAllocString
mov ecx, esi
call fcn.0040ce85
mov edx, dword [ebp - 0x14]
mov ecx, 0x4106e8
push esi
lea edx, [edx + 1]
call fcn.0040ce50
mov dword [ebp - 0x20], ebx
push 2
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x20]
push eax
push 0x40332c
push 3
push ebx
push 0x4031d0
call dword [sym.imp.OLE32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40c0fa
mov dword [ebp - 0x1c], ebx
push 0x76
mov byte [ebp - 4], 3
lea edx, [ebp - 0x18]
pop ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040cdcc
mov esi, eax
test esi, esi
js 0x40c0f2
push 0x77
lea edx, [ebp - 0x14]
pop ecx
call fcn.0040cdcc
lea eax, [ebp - 0x1c]
mov edx, edi
push eax
push ecx
push 1
push dword [ebp - 0x38]
push 0x4106e8
push ecx
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040c2e3
push dword [ebp - 0x28]
mov esi, eax
call sub.msvcrt.dll_free
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
test esi, esi
js 0x40c0f2
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x411204]
call esi
mov esi, eax
test esi, esi
js 0x40c0f2
call fcn.0040c197
test eax, eax
je 0x40c0ac
push 0x7a
lea edx, [ebp - 0x18]
pop ecx
call fcn.0040cdcc
mov esi, eax
test esi, esi
js 0x40c0f2
push 0x7b
lea edx, [ebp - 0x14]
pop ecx
call fcn.0040cdcc
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
lea eax, [ebp - 0x1c]
mov edi, 0x403500
push eax
push ecx
push 1
push ebx
push edi
push ecx
push ecx
mov ecx, dword [ebp - 0x18]
mov edx, edi
call fcn.0040c2e3
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
test esi, esi
js 0x40c0f2
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x411204]
call esi
mov esi, eax
test esi, esi
js 0x40c0f2
push 0x65
lea edx, [ebp - 0x18]
pop ecx
call fcn.0040cdcc
mov esi, eax
test esi, esi
js 0x40c0f2
push 0x6f
lea edx, [ebp - 0x14]
pop ecx
call fcn.0040cdcc
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
lea eax, [ebp - 0x1c]
mov edx, edi
push eax
push ecx
push ebx
push ebx
push edi
push ecx
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040c2e3
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
test esi, esi
js 0x40c0f2
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x411204]
call esi
mov esi, eax
test esi, esi
js 0x40c0f2
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x20]
push ecx
push 0x403c18
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x411204]
call dword [esi]
mov esi, eax
test esi, esi
js 0x40c0ea
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x30]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x411204]
call esi
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.00409691
lea ecx, [ebp - 0x1c]
call fcn.00409691
lea ecx, [ebp - 0x20]
call fcn.00409691
lea ecx, [ebp - 0x2c]
call fcn.00409691
lea ecx, [ebp - 0x34]
call fcn.00409691
mov eax, esi
call fcn.0040a59f
ret