Function at 0x1007c710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b5ce4
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xdc], 0
je 0x1007cb6e
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 0x58]
call fcn.10004fc0
mov dword [ebp - 4], 0
lea ecx, [esi + 0xcc]
cmp dword [esi + 0xe0], 8
jb 0x1007c776
mov ecx, dword [esi + 0xcc]
push dword [esi + 0xdc]
push ecx
lea ecx, [ebp - 0x58]
call fcn.1001f0c0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x74]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push 0x20219
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], 0
call edi
test eax, eax
jne 0x1007cb34
push dword [ebp - 0x74]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea ecx, [ebp - 0x40]
call fcn.10005010
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.10005010
push 0x101cdc64
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10004fc0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x94]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.10004fc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
push ecx
cmovae eax, dword [ebp - 0x94]
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], 0
call edi
test eax, eax
jne 0x1007c905
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1007c905
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x74]
push edx
push 0
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1007c876
push dword [ebp - 0x78]
jmp 0x1007c903
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x1007c88d
push eax
push 0x101cdc64
lea ecx, [ebp - 0x40]
call fcn.100055f0
jmp 0x1007c8fb
add eax, 2
push eax
call fcn.1019f3bd
mov ecx, dword [ebp - 0x74]
mov edi, eax
add ecx, 2
push ecx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x7c]
push eax
push 0
push ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007c8ec
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007c8d3
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.100055f0
push edi
call fcn.1019f0a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 4
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x1007c905
push eax
call ebx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.10004f10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10004f10
push 0x101df710
lea ecx, [ebp - 0x28]
call fcn.10004fc0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x94]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.10004fc0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x78]
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
push ecx
cmovae eax, dword [ebp - 0x94]
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], 0
call edi
test eax, eax
jne 0x1007ca4c
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1007ca4c
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x74]
push edx
push 0
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1007c9bb
push dword [ebp - 0x78]
jmp 0x1007ca4a
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x1007c9d2
push eax
push 0x101cdc64
lea ecx, [ebp - 0x70]
call fcn.100055f0
jmp 0x1007ca42
add eax, 2
push eax
call fcn.1019f3bd
mov ecx, dword [ebp - 0x74]
mov edi, eax
add ecx, 2
push ecx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x7c]
push eax
push 0
push ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007ca39
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007ca20
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x70]
call fcn.100055f0
push edi
call fcn.1019f0a0
add esp, 4
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x1007ca4c
push eax
call ebx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.10004f10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10004f10
cmp dword [ebp - 0x60], 0
je 0x1007cac8
lea ecx, [ebp - 0x70]
call fcn.100b2b00
test al, al
je 0x1007cac8
mov edx, 0x10
lea ecx, [ebp - 0x70]
call fcn.100b4c20
mov edx, 0x40000000
lea ecx, [ebp - 0x70]
call fcn.100b4c20
mov edx, 0x10
lea ecx, [esi + 0x7c]
call fcn.100b4c20
mov edx, 0x40000000
lea ecx, [esi + 0x7c]
call fcn.100b4c20
lea edx, [ebp - 0x70]
lea ecx, [esi + 0x7c]
call fcn.100b57f0
test eax, eax
je 0x1007cac8
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x7c]
call fcn.10007b40
cmp dword [ebp - 0x30], 0
je 0x1007cafc
lea edi, [esi + 0x94]
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.100b57f0
test eax, eax
je 0x1007cafc
lea eax, [ebp - 0x40]
cmp edi, eax
je 0x1007cafc
cmp dword [ebp - 0x2c], 8
mov ecx, edi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100055f0
lea ecx, [esi + 0x94]
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x1007cb1a
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100055f0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.10004f10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10004f10
jmp 0x1007cb5f
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x74]
push ecx
push 0x20019
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x1007cb5f
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.10004f10
cmp dword [esi + 0x8c], 0
je 0x1007cc7d
cmp dword [esi + 0xdc], 0
je 0x1007cc7d
cmp dword [esi + 0xa4], 0
jne 0x1007cbd2
lea eax, [esi + 0xcc]
push eax
lea edx, [esi + 0x7c]
lea ecx, [ebp - 0x94]
call fcn.100b51b0
add esp, 4
lea edi, [esi + 0x94]
mov dword [ebp - 4], 7
push eax
mov ecx, edi
call fcn.10004f50
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.10004f10
jmp 0x1007cbd8
lea edi, [esi + 0x94]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.100b3380
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x70]
call fcn.100b3290
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 6
push 0x101df790
push 0
call fcn.1002b4f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1007cc62
push 0
lea ebx, [esi + 0xcc]
push 0x101df790
mov ecx, ebx
call fcn.100479f0
cmp eax, 0xffffffff
jne 0x1007cc62
push ebx
lea edx, [esi + 0x7c]
lea ecx, [ebp - 0x94]
call fcn.100b51b0
add esp, 4
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.10004f50
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
call fcn.10004f10
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.10004f10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10004f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret