Function at 0x1002da5a
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1414]
mov eax, 0x1414
call fcn.1003b1e0
push 0xffffffffffffffff
push 0x1006ae38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100be114]
xor eax, ebp
mov dword [ebp + 0x1410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x141c]
mov dword [ebp - 0x20], edi
and dword [ebp - 0x1c], 0
and dword [ebp - 0x14], 0
xor ebx, ebx
mov ecx, edi
inc ebx
push 0x10094ccc
mov dword [ebp - 4], ebx
call fcn.1000154d
mov esi, 0x208
mov dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp + 0x1208]
push 0
push eax
call fcn.1003d660
push esi
lea eax, [ebp + 0x1000]
push 0
push eax
call fcn.1003d660
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x18]
add esp, 0x18
mov esi, 0x104
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp + 0x1208]
push eax
push str.CLSID08B0E5C0_4FCB_11CF_AAA5_00401C608501TreatAs
push SysReAllocString
call ebx
test eax, eax
jne 0x1002dc86
push 0x10094d5c
lea ecx, [ebp - 0x10]
call fcn.1000154d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1002db3a
call fcn.100016dc
push 0x10094d70
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1002db67
call fcn.100016dc
lea eax, [ebp + 0x1208]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1002db96
call fcn.100016dc
push 0x10094d7c
lea ecx, [ebp - 0x10]
call fcn.1000154d
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14]
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1002dbc3
call fcn.100016dc
push 0x10094d88
lea ecx, [ebp - 0x10]
call fcn.1000154d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.10001683
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1002dbed
call fcn.100016dc
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1002dbfb
mov eax, dword [esi]
jmp 0x1002dbfd
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x1000]
push ecx
push eax
push SysReAllocString
call ebx
test eax, eax
jne 0x1002dc66
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002dc66
push 0x1000
lea eax, [ebp]
push 0
push eax
call fcn.1003d660
lea eax, [ebp]
push 0x800
push eax
call fcn.10037b72
add esp, 0x14
lea eax, [ebp]
lea ecx, [ebp - 0x10]
push eax
call fcn.1000154d
push eax
mov ecx, edi
call fcn.100015ab
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1002dc66
call fcn.100016dc
test esi, esi
je 0x1002dc86
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x1002dc86
mov ecx, esi
call fcn.10001703
push 0xc
push esi
call fcn.1003b0f2
pop ecx
pop ecx
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 + 0x1410]
xor ecx, ebp
call fcn.1003b105
add ebp, 0x1414
leave
ret