Function at 0x10036e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009516c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x100bc06c]
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 eax, ecx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 1
call fcn.10002ff0
mov edi, eax
test edi, edi
je 0x100372e8
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x114], eax
push 0x100aaf88
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 2
call fcn.10004620
test al, al
jne 0x10036eac
push 0
push 0x100aaf88
lea ecx, [ebp - 0x114]
call fcn.10005050
mov byte [ebp - 4], 3
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xff
call fcn.10002ff0
mov edi, eax
test edi, edi
je 0x100372f2
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x118], eax
push str.CRLogProductPreferences
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.10004620
test al, al
jne 0x10036f17
push 0x18
push str.CRLogProductPreferences
lea ecx, [ebp - 0x118]
call fcn.10005050
push 1
push 0x100ab298
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.100135a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x118]
push dword [eax - 0xc]
push eax
call fcn.100135a0
mov edi, dword [ebp - 0x118]
push ecx
add edi, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x124], esi
mov ecx, edi
mov dword [ebp - 0x124], edi
call fcn.1000bff0
add eax, 0x10
lea ecx, [ebp - 0x120]
mov dword [esi], eax
call fcn.10038250
add esp, 4
test al, al
jne 0x1003704d
lea ecx, [ebp - 0x114]
call fcn.10005140
mov esi, dword [ebp - 0x114]
add esi, 0xfffffff0
mov ecx, esi
mov dword [ebp - 0x120], esi
call fcn.1000bff0
mov ecx, dword [ebp - 0x128]
add eax, 0x10
or ebx, 0xffffffff
mov byte [ebp - 4], 3
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10036fd7
mov edi, dword [edi]
push dword [ebp - 0x124]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x120]
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10036ffb
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10037025
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100372bb
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
jmp 0x100372af
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100372dd
mov eax, dword [ebp - 0x11c]
mov ecx, 0xff
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
mov dword [ebp - 0x11c], eax
cmovl ecx, eax
cmp ecx, 0x100
jae 0x10037310
lea eax, [ebp - 0x110]
mov byte [ebp + ecx - 0x110], 0
push eax
lea eax, [ebp - 0x114]
push 0x100ac224
push eax
call fcn.10022af0
mov esi, dword [ebp - 0x114]
add esp, 0xc
xor edi, edi
mov ebx, esi
movzx eax, word [esi]
test ax, ax
je 0x10037143
mov ecx, eax
push ecx
call fcn.100752b7
add esp, 4
test eax, eax
je 0x100370ec
test edi, edi
mov eax, ebx
cmovne eax, edi
mov edi, eax
jmp 0x100370ee
xor edi, edi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x100370d4
test edi, edi
je 0x10037143
sub edi, esi
sar edi, 1
js 0x100372fc
mov eax, dword [esi - 8]
mov ebx, 1
mov ecx, ebx
sub eax, edi
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x1003712f
push edi
lea ecx, [ebp - 0x114]
call fcn.100051d0
mov esi, dword [ebp - 0x114]
cmp edi, dword [esi - 8]
jg 0x100372fc
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x10037148
mov ebx, 1
movzx eax, word [esi]
mov edi, esi
push eax
call fcn.100752b7
add esp, 4
test eax, eax
je 0x100371e3
nop
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.100752b7
add esp, 4
test eax, eax
jne 0x10037160
cmp edi, esi
je 0x100371e3
mov ecx, dword [esi - 0xc]
sub edi, esi
sar edi, 1
test ecx, ecx
js 0x10037306
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, ecx
or eax, ebx
jge 0x100371a5
push ecx
lea ecx, [ebp - 0x114]
call fcn.100051d0
mov esi, dword [ebp - 0x114]
mov ecx, dword [esi - 0xc]
lea edx, [esi + edi*2]
mov ebx, ecx
sub ebx, edi
lea eax, [ebx*2 + 2]
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push esi
call fcn.10005d00
add esp, 0x10
test ebx, ebx
js 0x100372fc
cmp ebx, dword [esi - 8]
jg 0x100372fc
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov edi, dword [ebp - 0x124]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov ecx, esi
mov dword [ebp - 0x120], esi
call fcn.1000bff0
mov ecx, dword [ebp - 0x128]
add eax, 0x10
or ebx, 0xffffffff
mov byte [ebp - 4], 3
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10037242
mov edi, dword [edi]
push dword [ebp - 0x124]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x120]
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10037266
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10037290
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100372bb
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100993c0]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x128]
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.1005540b
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x114]
jmp 0x100371e9
push 0x80004005
call fcn.10002d90
push 0x80004005
call fcn.10002d90
push 0x80070057
call fcn.10002d90
push 0x80070057
call fcn.10002d90
call fcn.10055b99
int3