Function at 0x100240f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100705a1
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10087040]
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 edi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], edi
mov eax, dword [0x10089eac]
mov dword [ebp - 0x424], 0
test al, 1
jne 0x1002416a
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
mov ecx, dword [0x10089e5c]
lea ecx, [ecx - 0x10]
call fcn.10005bd0
mov ebx, eax
lea esi, [ebx + 0x10]
mov dword [ebp - 0x428], esi
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push eax
push 0x201
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10024293
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10043f30
add esp, 0xc
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x100244a3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.10005830
test al, al
jne 0x1002426e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024250
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10005aa0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10024485
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10024485
mov eax, dword [0x10089eac]
test al, 1
jne 0x100242c7
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
mov edx, dword [0x10089e60]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x10024328
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x10024313
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10024313
call fcn.10005bd0
mov dword [ebp - 0x430], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10024308
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x430]
lea esi, [eax + 0x10]
mov dword [ebp - 0x428], esi
jmp 0x10024328
push dword [edx - 0xc]
lea ecx, [ebp - 0x428]
push edx
call fcn.10005aa0
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
push eax
push 0x201
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002442f
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10043f30
add esp, 0xc
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.Path
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x100244ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.10005830
test al, al
jne 0x1002440e
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100243f0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10005aa0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10024485
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10024485
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x100244b7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x1007b468
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10005830
test al, al
jne 0x10024466
push 0
push 0x1007b468
mov ecx, edi
call fcn.10005aa0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10024485
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10041e20
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3