Function at 0x4cf040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c4ef
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5f62dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe0], edi
push eax
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xe4], 0
call fcn.00408be3
add esp, 8
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040909d
mov ecx, dword [ebp - 0x4c]
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov word [ebp - 0x2c], 0
test ecx, ecx
je 0x4cf148
cmp dword [ebp - 0x38], 0
jne 0x4cf0fb
cmp ecx, 0x80000000
jne 0x4cf0fb
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push 0
push ecx
call edx
test eax, eax
je 0x4cf148
jmp 0x4cf141
cmp dword [ebp - 0x34], 8
lea esi, [ebp - 0x30]
push esi
push 0x20019
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push 0
push eax
push ecx
call edx
mov ecx, eax
mov dword [ebp - 0xec], ecx
test ecx, ecx
je 0x4cf148
cmp byte [ebp - 0x2b], 0
jne 0x4cf141
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ecx
cmovae eax, dword [ebp - 0x48]
push eax
push str.CRegKey::Open___RegOpenKeyExW_FAILED:_mSubKey:___S___error:_0x_X_n
call fcn.00401ce9
add esp, 0xc
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407c4d
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00407e64
mov esi, dword [ebp - 0x104]
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xec], eax
cmp esi, eax
je 0x4cf27f
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00408be3
add esp, 8
cmp dword [ebp - 0xbc], 8
lea edi, [ebp - 0xd0]
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x88]
cmovae edi, dword [ebp - 0xd0]
cmp dword [ebp - 0x74], 8
mov ecx, dword [ebp - 0xc0]
cmovae edx, eax
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 5
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xf4], edx
cmp ecx, eax
ja 0x4cf217
test ecx, ecx
je 0x4cf21a
sub eax, ecx
mov ecx, edx
inc eax
lea eax, [edx + eax*2]
mov dword [ebp - 0xf0], eax
sub eax, ecx
sar eax, 1
je 0x4cf211
movzx edx, word [edi]
nop dword [eax]
cmp word [ecx], dx
je 0x4cf2e0
add ecx, 2
sub eax, 1
jne 0x4cf200
mov esi, dword [ebp - 0xdc]
or ecx, 0xffffffff
cmp ecx, 0xffffffff
jne 0x4cf32c
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x4cf264
mov edx, dword [ebp - 0xf8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cf25a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf813
push ecx
push edx
call fcn.004045c0
add esp, 8
add esi, 0x18
mov dword [ebp - 0xdc], esi
cmp esi, dword [ebp - 0xec]
jne 0x4cf187
mov edi, dword [ebp - 0xe8]
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
lea ecx, [ebp - 0x104]
mov word [edi], ax
call fcn.00404160
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x4cf7f1
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf7e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf80e
jmp 0x4cf7e7
mov esi, dword [ebp - 0xc0]
mov edx, edi
test esi, esi
je 0x4cf305
mov edi, ecx
sub edi, dword [ebp - 0xd8]
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x4cf318
add edx, 2
sub esi, 1
jne 0x4cf2f4
sub ecx, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xdc]
sar ecx, 1
jmp 0x4cf21a
mov edi, dword [ebp - 0xd8]
add ecx, 2
mov eax, dword [ebp - 0xf0]
jmp 0x4cf1f3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4cf336
mov eax, dword [esi]
push eax
push str.AppPathFromRegistry:_Matched_app__S_n
call fcn.00401ce9
add esp, 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0xe0]
call fcn.0040909d
push 1
push 0x5a8734
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404b06
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4cf36e
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00404b06
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x70], reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040909d
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x50], 0
test ecx, ecx
je 0x4cf41c
cmp dword [ebp - 0x5c], 0
jne 0x4cf3ca
cmp ecx, 0x80000000
jne 0x4cf3ca
lea eax, [ebp - 0x54]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x20019
push 0
push 0
push ecx
call eax
test eax, eax
je 0x4cf41c
jmp 0x4cf415
cmp dword [ebp - 0x58], 8
lea edx, [ebp - 0x54]
push edx
push 0x20019
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push 0
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ecx
call eax
mov ecx, eax
mov dword [ebp - 0xe0], ecx
test ecx, ecx
je 0x4cf41c
cmp byte [ebp - 0x4f], 0
jne 0x4cf415
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
push str.CRegKey::Open___RegOpenKeyExW_FAILED:_mSubKey:___S___error:_0x_X_n
call fcn.00401ce9
add esp, 0xc
mov dword [ebp - 0x54], 0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x4cf45a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf450
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf813
push edx
push ecx
call fcn.004045c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x5a4104
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.00403841
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408161
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x4cf4f4
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf4ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf818
push edx
push ecx
call fcn.004045c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
cmp dword [ebp - 0xa8], eax
jne 0x4cf584
push 4
push str.Path
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403841
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0xe4], 1
test ecx, ecx
je 0x4cf584
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xd8]
push edx
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd8], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4cf584
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0xd8], eax
jne 0x4cf58b
mov byte [ebp - 0xd1], 0
test byte [ebp - 0xe4], 1
je 0x4cf5ce
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4cf5ce
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf5c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf81d
push edx
push ecx
call fcn.004045c0
add esp, 8
cmp byte [ebp - 0xd1], 0
je 0x4cf6f0
push 4
xor eax, eax
mov dword [ebp - 0x18], 0
push str.Path
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403841
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408161
push 1
push 0x5a8734
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00404b06
mov ecx, dword [ebp - 0xdc]
cmp dword [ecx + 0x14], 8
jb 0x4cf632
mov ecx, dword [ecx]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00404b06
lea ecx, [ebp - 0xb8]
cmp ecx, eax
je 0x4cf660
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4cf651
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00403841
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x4cf69e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf694
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf822
push edx
push ecx
call fcn.004045c0
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x4cf6f0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf6e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf822
push edx
push ecx
call fcn.004045c0
add esp, 8
cmp dword [ebp - 0xa8], 0
jne 0x4cf706
push str.AppPathFromRegistry:_WARNING___did_NOT_find_path_for_app_n
call fcn.00401ce9
add esp, 4
mov edi, dword [ebp - 0xe8]
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [ebp - 0xb8]
xor eax, eax
mov word [ebp - 0xb8], ax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0xa8]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
call fcn.00407e64
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x4cf793
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf789
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf827
push edx
push ecx
call fcn.004045c0
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00404160
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x4cf7f1
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4cf7e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cf827
push edx
push ecx
call fcn.004045c0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403e8b
mov esp, ebp
pop ebp
ret
call fcn.00406866
call fcn.00406866
call fcn.00406866
call fcn.00406866
call fcn.00406866
call fcn.00406866
int3