Function at 0x1002ccb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea esi, [ebp - 0x820]
mov edx, edi
call fcn.1002bc40
cmp dword [eax + 0x14], 8
jb 0x1002ccdd
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x824]
push ecx
push 0
push 0xc0000000
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
sete bl
cmp dword [ebp - 0x80c], 8
jb 0x1002cd1f
mov edx, dword [ebp - 0x820]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x1002cf71
test esi, esi
jne 0x1002cf64
cmp dword [edi + 0x6c], 8
mov ecx, dword [edi + 0x68]
lea eax, [edi + 0x58]
jb 0x1002cd3d
mov eax, dword [eax]
mov edx, dword [ebp - 0x824]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.InstanceId
push edx
call esi
test eax, eax
jne 0x1002cf64
mov ecx, dword [edi + 0x4c]
lea eax, [edi + 0x3c]
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x1002cd73
mov eax, dword [eax]
mov edx, dword [ebp - 0x824]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.AffiliateId
push edx
call esi
test eax, eax
jne 0x1002cf64
mov ecx, dword [edi + 0x84]
cmp dword [edi + 0x88], ebx
lea eax, [edi + 0x74]
jb 0x1002cda4
mov eax, dword [eax]
mov edx, dword [ebp - 0x824]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.cookieName
push edx
call esi
test eax, eax
jne 0x1002cf64
mov ecx, dword [edi + 0xa0]
cmp dword [edi + 0xa4], ebx
lea eax, [edi + 0x90]
jb 0x1002cdd8
mov eax, dword [eax]
mov edx, dword [ebp - 0x824]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.cookiePath
push edx
call esi
test eax, eax
jne 0x1002cf64
mov ecx, dword [edi + 0xd8]
cmp dword [edi + 0xdc], ebx
lea eax, [edi + 0xc8]
jb 0x1002ce0c
mov eax, dword [eax]
mov edx, dword [ebp - 0x824]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.updateUrl
push edx
call esi
test eax, eax
jne 0x1002cf64
mov ecx, dword [edi + 0xbc]
cmp dword [edi + 0xc0], ebx
lea eax, [edi + 0xac]
jb 0x1002ce40
mov eax, dword [eax]
mov edx, dword [ebp - 0x824]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.preloadJS
push edx
call esi
test eax, eax
jne 0x1002cf64
mov ecx, dword [ebp - 0x824]
push 4
lea eax, [edi + 0xec]
push eax
push 4
push 0
push 0x10059b4c
push ecx
call esi
test eax, eax
jne 0x1002cf64
mov edx, dword [ebp - 0x824]
push 4
lea ebx, [edi + 0xf0]
push ebx
push 4
push eax
push str.doNotTrack
push edx
call esi
cmp dword [ebx], 1
mov dword [ebp - 0x828], eax
sete cl
call fcn.1002d300
cmp dword [ebp - 0x828], 0
jne 0x1002cf64
mov ecx, dword [ebp - 0x824]
push 4
lea eax, [edi + 0xe4]
push eax
push 4
push 0
push str.blocked
push ecx
call esi
xor edx, edx
push 0x7fe
mov ebx, eax
push edx
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x828], 0x400
mov word [ebp - 0x804], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x828]
push ecx
mov ecx, dword [ebp - 0x824]
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x82c]
push eax
push 0
push str.used
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002cf34
cmp dword [ebp - 0x82c], 1
je 0x1002cf59
mov eax, dword [ebp - 0x824]
push 4
lea edx, [ebp - 0x830]
push edx
push 4
push 0
push str.used
push eax
mov dword [ebp - 0x830], 0
call esi
test ebx, ebx
jne 0x1002cf64
mov esi, edi
call fcn.1002baf0
mov ecx, dword [ebp - 0x824]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048188
mov esp, ebp
pop ebp
ret