Function at 0x1002c590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fa85
mov eax, dword fs:[0]
push eax
sub esp, 0x900
mov eax, dword [0x10067068]
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
lea esi, [ebp - 0x8e8]
mov edx, ebx
call fcn.1002bc40
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x1002c5d9
mov eax, dword [eax]
lea ecx, [ebp - 0x8f0]
push ecx
push SysReAllocString
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp dword [ebp - 0x8d4], edi
jb 0x1002c60d
mov edx, dword [ebp - 0x8e8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test esi, esi
jne 0x1002caf5
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x8ec]
push eax
mov eax, dword [ebp - 0x8f0]
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x8f4]
push edx
push esi
push str.InstanceId
push eax
mov dword [ebp - 0x8ec], 0x800
call edi
test eax, eax
jne 0x1002c66a
cmp dword [ebp - 0x8f4], 1
jne 0x1002c66a
mov ecx, dword [ebp - 0x8ec]
shr ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x810], dx
jmp 0x1002c677
xor ecx, ecx
mov word [ebp - 0x810], cx
test eax, eax
js 0x1002c69e
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002c680
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x58]
lea eax, [ebp - 0x810]
call fcn.1000cf60
lea edx, [ebp - 0x8ec]
push edx
mov edx, dword [ebp - 0x8f0]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x8f4]
push ecx
push 0
push str.AffiliateId
push edx
mov dword [ebp - 0x8ec], 0x800
call edi
test eax, eax
jne 0x1002c6ee
cmp dword [ebp - 0x8f4], 1
jne 0x1002c6ee
mov eax, dword [ebp - 0x8ec]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x810], cx
jmp 0x1002c6fb
xor edx, edx
mov word [ebp - 0x810], dx
test eax, eax
js 0x1002c722
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002c704
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x3c]
lea eax, [ebp - 0x810]
call fcn.1000cf60
lea eax, [ebp - 0x8ec]
push eax
mov eax, dword [ebp - 0x8f0]
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x8f4]
push edx
push 0
push str.cookieName
push eax
mov dword [ebp - 0x8ec], 0x800
call edi
test eax, eax
jne 0x1002c772
cmp dword [ebp - 0x8f4], 1
jne 0x1002c772
mov ecx, dword [ebp - 0x8ec]
shr ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x810], dx
jmp 0x1002c77f
xor ecx, ecx
mov word [ebp - 0x810], cx
test eax, eax
js 0x1002c7ae
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
jmp 0x1002c790
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002c790
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x74]
lea eax, [ebp - 0x810]
call fcn.1000cf60
lea edx, [ebp - 0x8ec]
push edx
mov edx, dword [ebp - 0x8f0]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x8f4]
push ecx
push 0
push str.cookiePath
push edx
mov dword [ebp - 0x8ec], 0x800
call edi
test eax, eax
jne 0x1002c7fe
cmp dword [ebp - 0x8f4], 1
jne 0x1002c7fe
mov eax, dword [ebp - 0x8ec]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x810], cx
jmp 0x1002c80b
xor edx, edx
mov word [ebp - 0x810], dx
test eax, eax
js 0x1002c835
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002c814
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x90]
lea eax, [ebp - 0x810]
call fcn.1000cf60
lea eax, [ebp - 0x8ec]
push eax
mov eax, dword [ebp - 0x8f0]
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x8f4]
push edx
push 0
push str.preloadJS
push eax
mov dword [ebp - 0x8ec], 0x800
call edi
test eax, eax
jne 0x1002c885
cmp dword [ebp - 0x8f4], 1
jne 0x1002c885
mov ecx, dword [ebp - 0x8ec]
shr ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x810], dx
jmp 0x1002c892
xor ecx, ecx
mov word [ebp - 0x810], cx
test eax, eax
js 0x1002c8c1
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
jmp 0x1002c8a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002c8a0
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0xac]
lea eax, [ebp - 0x810]
call fcn.1000cf60
lea edx, [ebp - 0x8ec]
push edx
mov edx, dword [ebp - 0x8f0]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x8f4]
push ecx
push 0
push str.updateUrl
push edx
mov dword [ebp - 0x8ec], 0x800
call edi
test eax, eax
jne 0x1002c911
cmp dword [ebp - 0x8f4], 1
jne 0x1002c911
mov eax, dword [ebp - 0x8ec]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x810], cx
jmp 0x1002c91e
xor edx, edx
mov word [ebp - 0x810], dx
test eax, eax
js 0x1002c948
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002c927
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0xc8]
lea eax, [ebp - 0x810]
call fcn.1000cf60
mov eax, dword [ebp - 0x8f0]
lea esi, [ebx + 0xec]
push eax
call fcn.1002d010
call fcn.1002d110
test al, al
je 0x1002c96f
mov dword [ebx + 0xf0], 1
jmp 0x1002c981
mov ecx, dword [ebp - 0x8f0]
lea esi, [ebx + 0xf0]
push ecx
call fcn.1002d090
lea edx, [ebp - 0x8f4]
push edx
mov edx, dword [ebp - 0x8f0]
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x8ec]
push ecx
push 0
push str.used
push edx
mov dword [ebp - 0x8f4], 4
call edi
test eax, eax
js 0x1002cae8
cmp dword [ebx + 0xe8], 1
setne al
test al, al
je 0x1002cae8
mov eax, dword [ebp - 0x8f0]
lea esi, [ebx + 0xe4]
push eax
call fcn.1002cf90
test eax, eax
js 0x1002cae8
lea ecx, [ebp - 0x90c]
push ecx
call fcn.10025eb0
mov edx, 3
lea eax, [ebp - 0x90c]
mov dword [ebp - 4], 0
call fcn.10026130
test eax, eax
je 0x1002cad5
push 0
push 0x100694e8
push 0x100694b4
push 0
push eax
call sub.MSVCR100.dll___RTDynamicCast
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1002cad5
mov edx, dword [esi]
xor eax, eax
push eax
lea ecx, [ebx + 0x74]
mov word [ebp - 0x8c8], ax
push ecx
mov esi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x8c8]
mov dword [ebp - 0x8cc], edx
mov dword [ebp - 0x8b4], esi
mov dword [ebp - 0x8b8], 0
call fcn.1000c030
xor edx, edx
mov byte [ebp - 4], 1
push edx
add ebx, 0x90
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x8ac]
mov dword [ebp - 0x898], esi
mov dword [ebp - 0x89c], 0
mov word [ebp - 0x8ac], dx
call fcn.1000c030
mov byte [ebp - 4], 2
mov edx, dword [edi]
mov edx, dword [edx]
lea eax, [ebp - 0x8cc]
mov dword [ebp - 0x8f8], eax
lea eax, [ebp - 0x8f8]
push eax
mov ecx, edi
mov dword [ebp - 0x8f4], 0x3c
call edx
lea eax, [ebp - 0x8cc]
push eax
mov byte [ebp - 4], 0
call fcn.100179e0
lea ecx, [ebp - 0x90c]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.10025ff0
mov edx, dword [ebp - 0x8f0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.10048188
mov esp, ebp
pop ebp
ret