Function at 0x7cf857fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [eax]
push edi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x30]
xor edi, edi
xor ebx, ebx
cmp eax, edi
mov dword [ebp - 0x14], 1
je 0x7cf85848
cmp word [eax], di
je 0x7cf85848
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf855cb
mov dword [ebp + 8], eax
mov ebx, eax
test byte [esi + 0x8c0], 1
jne 0x7cf85874
cmp word [esi + 0x698], di
lea eax, [esi + 0x698]
je 0x7cf85874
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf855cb
add ebx, eax
mov ax, word [esi + 0x8bc]
cmp ax, di
je 0x7cf8589e
mov cx, word [esi + 0x8b8]
push 1
push ecx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf85495
add ebx, eax
mov ax, word [esi + 0x8be]
cmp ax, di
je 0x7cf858c7
mov cx, word [esi + 0x8b8]
push edi
push ecx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf85495
add ebx, eax
mov eax, dword [esi + 0x8b0]
cmp eax, edi
je 0x7cf858eb
push eax
lea eax, [ebp - 4]
push dword [esi + 0x8b4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf856f8
add ebx, eax
mov eax, dword [esi + 0x8a0]
cmp eax, edi
je 0x7cf8590e
cmp word [eax], di
je 0x7cf8590e
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf85768
add ebx, eax
cmp word [esi + 0x454], di
lea eax, [esi + 0x454]
je 0x7cf8593e
mov ecx, dword [esi + 0x8c0]
shr ecx, 2
and ecx, 1
push ecx
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf85689
add ebx, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf85793
add ebx, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
call fcn.7cf863cc
test eax, eax
jl 0x7cf85bc1
mov eax, dword [ebp - 0x20]
mov ebx, 0x7cf34ab8
dec eax
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc], eax
jl 0x7cf85a69
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
push dword [eax + ecx*4]
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x7cf85a60
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
xor esi, esi
mov dword [ebp - 0x10], 2
push dword [eax + ecx*4]
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push eax
call fcn.7cfe71b6
test eax, eax
jl 0x7cf859d4
xor ecx, ecx
mov dword [ebp - 0x10], 1
test eax, eax
sete cl
mov esi, ecx
cmp esi, 2
jae 0x7cf85a60
lea esi, [esi*4 + 0x7d04b040]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x10], 0
jle 0x7cf85a60
push dword [esi]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
push dword [eax + ecx*4]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x7cf85a4c
lea eax, [ebp - 0x248]
push eax
call edi
push ebx
mov esi, eax
call edi
add esi, eax
cmp dword [ebp + 0xc], 0
je 0x7cf85a24
cmp esi, dword [ebp - 8]
ja 0x7cf85a60
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.7cf853fc
add dword [ebp + 8], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.7cf853fc
add dword [ebp + 8], eax
mov esi, dword [ebp - 0x1c]
add esi, 4
dec dword [ebp - 0x10]
cmp esi, 0x7d04b048
mov dword [ebp - 0x1c], esi
jb 0x7cf859e7
dec dword [ebp - 0xc]
jns 0x7cf8598b
lea eax, [ebp - 0x24]
xor esi, esi
push eax
push 0x20019
push esi
push 0x7cf34a24
push reloc.SHLWAPI.dll_ParseURLA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7cf85b9c
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0xc], esi
je 0x7cf85b93
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
jbe 0x7cf85b93
push dword [ebp - 0x10]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], 0x208
push 0x7cf34808
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
lea eax, [ebp - 0x40]
push esi
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7cf85b84
cmp dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jbe 0x7cf85b39
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
push dword [eax + esi*4]
call ebx
mov edx, eax
lea eax, [ebp - 0x246]
push eax
mov dword [ebp - 0x2c], edx
call ebx
mov ecx, dword [ebp - 0x2c]
cmp ecx, eax
je 0x7cf85b2d
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x7cf85b02
jmp 0x7cf85b34
mov dword [ebp - 0x1c], 1
mov ebx, 0x7cf34ab8
cmp dword [ebp - 0x1c], 0
je 0x7cf85b82
lea eax, [ebp - 0x248]
push eax
call edi
push ebx
mov esi, eax
call edi
add esi, eax
cmp dword [ebp + 0xc], 0
je 0x7cf85b5a
cmp esi, dword [ebp - 8]
ja 0x7cf85b93
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.7cf853fc
add dword [ebp + 8], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.7cf853fc
add dword [ebp + 8], eax
xor esi, esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x7cf85abc
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
lea esi, [eax - 1]
test esi, esi
jl 0x7cf85bb7
mov eax, dword [ebp - 0x18]
push dword [eax + esi*4]
call edi
dec esi
jns 0x7cf85bac
push dword [ebp - 0x18]
call edi
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x7cf85be3
cmp dword [ebp - 4], esi
jne 0x7cf85be3
lea eax, [ebp - 4]
push 0x7cf34a1c
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.7cf855cb
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x7cf85bed
mov word [eax], di
cmp esi, edi
jne 0x7cf85bf6
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop edi
pop esi
pop ebx
leave
ret 0xc