Function at 0x40dbb5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jne 0x40dc1d
lea ecx, [edi + 0x10]
call fcn.00408ebc
lea eax, [edi + 0x14]
push eax
push 0x40410c
push 1
push ebx
push 0x4040fc
call dword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x40de15
mov eax, dword [edi + 0x14]
push 1
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x438374]
call esi
mov ebx, eax
test ebx, ebx
js 0x40de15
xor ebx, ebx
cmp dword [edi + 0x64], ebx
jne 0x40dc36
push 0x4041c0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea ecx, [edi + 0x60]
call fcn.0040d8a7
cmp dword [edi + 0x6c], ebx
jne 0x40dc4f
push 0x4041a8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea ecx, [edi + 0x68]
call fcn.0040d8a7
cmp dword [edi + 0x74], ebx
jne 0x40dc68
push 0x404194
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea ecx, [edi + 0x70]
call fcn.0040d8a7
cmp dword [edi + 0x7c], ebx
jne 0x40dc81
push 0x40417c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea ecx, [edi + 0x78]
call fcn.0040d8a7
cmp dword [edi + 0x84], ebx
jne 0x40dca0
push 0x404154
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea ecx, [edi + 0x80]
call fcn.0040d8a7
cmp dword [edi + 0x8c], ebx
jne 0x40dcbf
push 0x404128
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea ecx, [edi + 0x88]
call fcn.0040d8a7
cmp dword [edi + 0x94], ebx
jne 0x40dcde
push 0x40411c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea ecx, [edi + 0x90]
call fcn.0040d8a7
cmp dword [edi + 0x64], ebx
je 0x40de10
cmp dword [edi + 0x6c], ebx
je 0x40de10
cmp dword [edi + 0x74], ebx
je 0x40de10
cmp dword [edi + 0x7c], ebx
je 0x40de10
cmp dword [edi + 0x84], ebx
je 0x40de10
cmp dword [edi + 0x8c], ebx
je 0x40de10
cmp dword [edi + 0x94], ebx
je 0x40de10
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 2
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
push 0
push 0x18
push 0x403ea8
push 0x403ef0
push SysReAllocStringLen
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
push 0x4373d0
push 8
call fcn.0042f28b
mov esi, eax
mov dword [ebp - 0x14], esi
pop ecx
pop ecx
test esi, esi
je 0x40dd77
mov ecx, dword [ebp - 0xc]
mov dword [esi], ecx
mov byte [esi + 4], 0
jmp 0x40dd79
xor esi, esi
mov eax, dword [edi + 0xa0]
cmp esi, eax
je 0x40dd94
test eax, eax
je 0x40dd8e
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov dword [edi + 0xa0], esi
cmp dword [edi + 0xa0], 0
jne 0x40dda2
mov ebx, 0x8007000e
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 3
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 4
push eax
push 0
push 0x18
push 0x403f40
push 0x403ef0
push SysReAllocStringLen
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x40ddde
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x9c], eax
test ebx, ebx
js 0x40de15
mov eax, dword [edi + 0x14]
add edi, 0xa4
push edi
push 0
push 0x405bc4
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x1c]
call dword [0x438374]
call dword [esi + 0x1c]
test eax, eax
jns 0x40de15
mov eax, 0xffff
mov word [edi], ax
jmp 0x40de15
mov ebx, 0x8007000e
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f1b0
mov esp, ebp
pop ebp
ret