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

Disassembly:
push 0x2c
mov eax, 0x40d297
call fcn.0040bbff
mov dword [ebp - 0x38], ecx
mov edi, dword [edx + 0xc]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov esi, ebx
test edi, edi
je 0x40dbbd
test dword [edx + 0x2c], 0x800
jne 0x40dd0a
mov dword [ebp - 0x20], ebx
call fcn.0040e6db
mov ebx, 0x40408c
test eax, eax
jne 0x40dbd3
mov ebx, 0x4040c8
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x10000006
push ebx
push 0x403ee0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40dce3
mov eax, dword [ebp - 0x20]
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.0040b4cc
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 2
mov dword [ebp - 0x24], eax
push ecx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push 0
push 0x10000006
push ebx
push 0x403ee0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x40dc51
mov edi, dword [ebp - 0x24]
jmp 0x40dcb3
call fcn.0040e6db
test eax, eax
je 0x40dc81
mov ebx, 0x404100
mov ecx, ebx
call fcn.0040e659
test al, al
jne 0x40dcb1
mov ebx, 0x4041c0
mov ecx, ebx
call fcn.0040e659
test al, al
jne 0x40dcb1
mov ebx, 0x404290
jmp 0x40dca6
mov ebx, 0x404370
mov ecx, ebx
call fcn.0040e659
test al, al
jne 0x40dcb1
mov ebx, 0x404428
mov ecx, ebx
call fcn.0040e659
test al, al
jne 0x40dcb1
mov ebx, 0x4044d8
mov ecx, ebx
call fcn.0040e659
test al, al
je 0x40dcb6
mov edi, ebx
xor esi, esi
inc esi
push 0x6d
xor ebx, ebx
lea edx, [ebp - 0x18]
pop ecx
mov dword [ebp - 0x18], ebx
call fcn.0040eccb
test eax, eax
js 0x40e017
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x40dce5
xor ebx, ebx
lea eax, [ebp - 0x18]
mov edx, SysReAllocString
push eax
mov ecx, edi
call fcn.0040ed82
mov edx, dword [ebp - 0x18]
mov ecx, 0x411738
push edi
lea edx, [edx + 1]
call fcn.0040ed4d
test esi, esi
jne 0x40dd2b
lea eax, [ebp - 0x18]
mov edx, SysReAllocString
push eax
mov ecx, edi
call fcn.0040ed82
mov edx, dword [ebp - 0x18]
mov ecx, 0x411738
push edi
lea edx, [edx + 1]
call fcn.0040ed4d
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push 0x404668
push 1
push ebx
push 0x403da8
call dword [sym.imp.OLE32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40e005
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
push 0x403dd8
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x412228]
call dword [esi]
mov esi, eax
test esi, esi
js 0x40e005
mov eax, dword [ebp - 0x30]
push 2
pop edx
push edx
mov ecx, dword [eax]
push 0x411738
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x412228]
call esi
mov dword [ebp - 0x34], ebx
test eax, eax
js 0x40ddca
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
push 0x104
push 0x411738
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x40]
call dword [0x412228]
call dword [esi + 0x40]
mov esi, eax
test esi, esi
jns 0x40ddf0
jmp 0x40e005
lea eax, [ebp - 0x18]
mov esi, 0x4045b0
push eax
mov edx, SysReAllocString
mov ecx, esi
call fcn.0040ed82
mov edx, dword [ebp - 0x18]
mov ecx, 0x411738
push esi
lea edx, [edx + 1]
call fcn.0040ed4d
mov dword [ebp - 0x1c], ebx
push 2
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x1c]
push eax
push 0x404648
push 3
push ebx
push 0x403dc8
call dword [sym.imp.OLE32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40dffd
mov dword [ebp - 0x14], ebx
push 0x76
mov byte [ebp - 4], 3
lea edx, [ebp - 0x10]
pop ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040eccb
mov esi, eax
test esi, esi
js 0x40dff5
push 0x77
lea edx, [ebp - 0x18]
pop ecx
call fcn.0040eccb
lea eax, [ebp - 0x14]
mov edx, edi
push eax
push ecx
push 1
push dword [ebp - 0x34]
push 0x411738
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040e1c0
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
js 0x40dff5
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x412228]
call esi
mov esi, eax
test esi, esi
js 0x40dff5
call fcn.0040e07f
test eax, eax
je 0x40dfaf
push 0x7a
lea edx, [ebp - 0x10]
pop ecx
call fcn.0040eccb
mov esi, eax
test esi, esi
js 0x40dff5
push 0x7b
lea edx, [ebp - 0x18]
pop ecx
call fcn.0040eccb
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
lea eax, [ebp - 0x14]
mov edi, 0x403e60
push eax
push ecx
push 1
push ebx
push edi
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, edi
call fcn.0040e1c0
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
js 0x40dff5
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x412228]
call esi
mov esi, eax
test esi, esi
js 0x40dff5
push 0x65
lea edx, [ebp - 0x10]
pop ecx
call fcn.0040eccb
mov esi, eax
test esi, esi
js 0x40dff5
push 0x6f
lea edx, [ebp - 0x18]
pop ecx
call fcn.0040eccb
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
lea eax, [ebp - 0x14]
mov edx, edi
push eax
push ecx
push ebx
push ebx
push edi
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040e1c0
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
js 0x40dff5
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x412228]
call esi
mov esi, eax
test esi, esi
js 0x40dff5
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
push ecx
push 0x4046a8
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x412228]
call dword [esi]
mov esi, eax
test esi, esi
js 0x40dfed
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x2c]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x412228]
call esi
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0040b25d
lea ecx, [ebp - 0x14]
call fcn.0040b25d
lea ecx, [ebp - 0x1c]
call fcn.0040b25d
lea ecx, [ebp - 0x28]
call fcn.0040b25d
lea ecx, [ebp - 0x30]
call fcn.0040b25d
mov eax, esi
call fcn.0040bbdc
ret