Function at 0x7d037805
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
xor esi, esi
mov dword [ebp - 0x14], edi
test eax, eax
mov dword [ebp - 4], esi
mov dword [ebp + 8], eax
jne 0x7d037843
test byte [ebx + 8], 1
je 0x7d03783b
mov dword [ebp + 8], 0x7d03778e
jmp 0x7d037843
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push 0x7cf3df78
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x7d037a1e
lea eax, [edi*4 + 4]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.COMCTL32.dll_Ordinal_71]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x7d037a1e
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x7cf3e108
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
jne 0x7d0378be
mov eax, dword [ebp - 8]
cmp eax, 4
jb 0x7d0378be
test al, 3
jne 0x7d0378be
mov esi, dword [ebp - 0xc]
shr eax, 2
cmp dword [esi + eax*4 - 4], 0xffffffff
je 0x7d0378d5
jmp 0x7d0378c1
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
call fcn.7d0376b6
test eax, eax
jge 0x7d0378d5
or dword [esi], 0xffffffff
lea eax, [edi*4 + 0x14]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_71]
mov esi, eax
test esi, esi
je 0x7d037a15
lea eax, [edi*4 + 4]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_71]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x7d037910
push esi
call dword [sym.imp.COMCTL32.dll_Ordinal_73]
xor esi, esi
jmp 0x7d037a15
mov ecx, dword [ebx + 8]
mov dword [esi + 4], edi
mov edi, dword [ebp - 0xc]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
mov eax, edi
mov dword [esi + 0xc], ecx
cmp dword [eax], 0xffffffff
je 0x7d0379f9
lea eax, [ebp - 0x30]
push 0xa
push eax
push dword [edi]
call fcn.7d0375fe
test byte [ebx + 8], 1
je 0x7d0379ed
mov eax, dword [edi]
cmp eax, dword [ebp - 0x14]
jae 0x7d0379ed
xor ecx, ecx
cmp dword [esi + eax*4 + 0x14], ecx
jne 0x7d0379ed
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
jne 0x7d0379ed
cmp dword [ebp - 0x10], 3
jne 0x7d0379ed
mov eax, dword [ebp - 8]
add eax, 4
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_71]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x7d0379ed
mov ecx, dword [ebp - 8]
push eax
mov dword [eax], ecx
add eax, 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
jne 0x7d0379ed
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add dword [ebp + 8], 4
cmp dword [ebp + 0xc], 0
mov dword [esi + ecx*4 + 0x14], eax
mov ecx, dword [edi]
mov dword [edx], ecx
je 0x7d0379ed
cmp dword [ebp + 0x14], 0
je 0x7d0379ed
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push esi
call fcn.7d0377c6
test eax, eax
jne 0x7d037a39
add edi, 4
cmp dword [edi], 0xffffffff
jne 0x7d037935
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x7d037a15
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x7d037a15
test byte [esi + 1], 0x80
jne 0x7d037a15
or dword [eax], 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.COMCTL32.dll_Ordinal_73]
test esi, esi
jne 0x7d037a30
cmp dword [ebp - 4], esi
je 0x7d037a30
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
sub eax, dword [esi + 0x10]
sar eax, 2
mov dword [ecx], eax
or byte [esi + 1], 0x80
mov eax, dword [edi + 4]
add edi, 4
cmp eax, 0xffffffff
je 0x7d0379f9
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 4
mov dword [ecx], eax
jmp 0x7d037a4b