Function at 0x1002e7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082dd2
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x100a1040]
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 ebx, ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x444], ebx
mov edi, dword [0x100a4098]
mov dword [ebp - 0x424], 0
test edi, edi
je 0x1002e80a
lock inc dword [edi + 4]
mov edi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x428]
mov eax, dword [ecx]
push edx
call dword [eax + 0x30]
or esi, 0xffffffff
mov byte [ebp - 4], 2
test edi, edi
je 0x1002e859
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1002e859
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1002e859
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x424]
push eax
push 0x201
push 0
push dword [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002e939
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10055b90
add esp, 0xc
mov dword [ebp - 0x430], 1
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x430]
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.10004070
mov ecx, eax
test ecx, ecx
je 0x1002ebcd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.10007ac0
test al, al
jne 0x1002eb2e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002e923
lea eax, [ebp - 0x218]
jmp 0x1002eb21
mov edi, dword [0x100a4098]
test edi, edi
je 0x1002e94d
lock inc dword [edi + 4]
mov edi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x44c], edi
mov byte [ebp - 4], 4
lea edx, [ebp - 0x434]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
mov dword [ebp - 0x440], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x42c], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x1002e9fa
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x43c], eax
jl 0x1002e9eb
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x1002e9eb
mov ecx, dword [ebp - 0x42c]
call fcn.10007880
mov edx, dword [ebp - 0x43c]
mov ecx, esi
mov dword [ebp - 0x42c], eax
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002e9e0
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x42c]
add eax, 0x10
mov dword [ebp - 0x428], eax
jmp 0x1002e9fa
push dword [edx - 0xc]
lea ecx, [ebp - 0x428]
push edx
call fcn.10007d40
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002ea1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
test edi, edi
je 0x1002ea42
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1002ea42
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1002ea42
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x424]
push eax
push 0x201
push 0
push dword [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002eb52
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10055b90
add esp, 0xc
mov dword [ebp - 0x430], 1
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x430]
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.10004070
mov ecx, eax
test ecx, ecx
je 0x1002ebd7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.10007ac0
test al, al
jne 0x1002eb2e
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002eb10
lea eax, [ebp - 0x420]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10007d40
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1002ebaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002ebaf
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x1002ebe1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x1008f490
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.10007ac0
test al, al
jne 0x1002eb8d
push 0
push 0x1008f490
mov ecx, ebx
call fcn.10007d40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1002ebaf
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.100535a4
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001410
push 0x80004005
call fcn.10001410
push 0x80004005
call fcn.10001410
int3