Function at 0x10047600
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8b5a
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
xor edi, edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], edi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x10047ce2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x10047674
push edi
push 0x101fe8a0
lea ecx, [ebp - 0x30]
call fcn.10006ab0
mov byte [ebp - 4], 2
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x10047cec
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x100476b8
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x44]
call fcn.10006ab0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x100476d1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
call fcn.100079d0
mov edx, dword [ebp - 0x3c]
or esi, 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0xa0]
mov ecx, dword [edx + 0x9c]
sub eax, ecx
sar eax, 2
cmp dword [ebp + 8], eax
jae 0x10047979
mov eax, dword [ebp - 0x34]
shl eax, 2
add eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x1004772f
push 0x10200564
push eax
call fcn.1019f712
add esp, 8
test eax, eax
je 0x1004772c
mov ecx, dword [ebp - 0x38]
sub eax, dword [ecx]
sar eax, 1
cmp eax, 0xffffffff
jne 0x10047a87
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
inc dword [ebp + 8]
mov dword [ebp - 0x38], ecx
cmp dword [ecx - 0xc], 0
jne 0x100477c5
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x9c]
lea edx, [ecx*4]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + edx]
add ecx, 0xfffffff0
lea eax, [edx - 0x10]
mov dword [ebp - 0x48], eax
cmp eax, ecx
je 0x10047959
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x40], eax
jl 0x100477b4
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x100477b4
push dword [ebp - 0x48]
call fcn.100041a0
mov dword [ebp - 0x48], eax
add esp, 4
mov eax, dword [ebp - 0x40]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100477a6
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x48]
add eax, 0x10
mov dword [ebp - 0x30], eax
jmp 0x10047959
push dword [edx - 0xc]
lea ecx, [ebp - 0x30]
push edx
call fcn.10006ab0
jmp 0x10047959
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x100477e0
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x100477f8
call fcn.100049d0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10047ce2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 5
or edi, 1
mov dword [ebp - 0x5c], edi
mov eax, dword [ebp - 0x30]
push 1
push 0x101fe63c
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10004210
mov eax, dword [ebp - 0x3c]
add esp, 0x14
mov ecx, dword [eax + 0x9c]
mov eax, dword [ebp - 0x34]
lea edx, [eax*4]
add ecx, edx
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x60]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x50], eax
test ecx, ecx
je 0x10047862
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x1004787a
call fcn.100049d0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x10047ce2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 7
or edi, 2
mov dword [ebp - 0x5c], edi
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.10004210
mov eax, dword [ebp - 0x58]
add esp, 0x14
mov esi, dword [ebp - 0x30]
add esi, 0xfffffff0
mov dword [ebp - 0x48], esi
lea edx, [eax - 0x10]
mov dword [ebp - 0x38], edx
cmp edx, esi
je 0x10047917
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x40], ecx
jl 0x10047908
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x10047908
push edx
call fcn.100041a0
mov edx, dword [ebp - 0x40]
or esi, 0xffffffff
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100478fd
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x30], eax
jmp 0x1004791a
push dword [eax - 0xc]
lea ecx, [ebp - 0x30]
push eax
call fcn.10006ab0
mov edx, dword [ebp - 0x38]
or esi, 0xffffffff
and edi, 0xfffffffd
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 5
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047938
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
and edi, 0xfffffffe
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x50]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047959
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3c]
inc dword [ebp - 0x34]
mov eax, dword [edx + 0xa0]
mov ecx, dword [edx + 0x9c]
sub eax, ecx
sar eax, 2
cmp dword [ebp - 0x34], eax
jb 0x100476f7
mov edi, edx
mov esi, dword [ebp - 0x30]
cmp dword [esi - 0xc], 0
je 0x10047c67
push 0xf003f
mov dword [ebp - 0x54], 0
call fcn.1000f150
push eax
push dword [edi + 0x68]
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.1000ef80
add esp, 0x14
call fcn.1000ed10
push eax
push dword [edi + 0x68]
lea eax, [ebp - 0x2c]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x50], esp
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 4
call fcn.1000d700
add esp, 0x10
test eax, eax
je 0x10047c67
mov eax, dword [edi + 0xa0]
sub eax, dword [edi + 0x9c]
sar eax, 2
cmp dword [ebp + 8], eax
jne 0x10047ae1
push ecx
mov esi, esp
mov dword [ebp - 0x50], esp
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
cmp dword [edi + 0x34], 0
push eax
je 0x10047aa4
call fcn.100041a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x10
sub esp, 0x18
movups xmm0, xmmword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov edx, esp
push dword [ebp - 0x54]
movups xmmword [edx], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edx + 0x10], xmm0
mov dword [edx + 0x18], eax
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.10047200
or edi, 0xffffffff
push dword [ebp - 0x54]
call fcn.1000ce40
add esp, 4
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047a82
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10047c88
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edi + 0x9c]
lea eax, [eax + ecx*4]
push eax
lea ecx, [ebp - 0x44]
call fcn.100079d0
jmp 0x1004797b
call fcn.100041a0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x12
sub esp, 0x18
movups xmm0, xmmword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, esp
push dword [ebp - 0x54]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.100468d0
jmp 0x10047a56
cmp dword [ebp - 0x2c], 0
jbe 0x10047a56
mov eax, dword [ebp - 0x28]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100d0345
mov ecx, dword [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0x34], esi
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call fcn.101a08b0
xor ecx, ecx
add esp, 0x10
or edi, 0xffffffff
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x2c], ecx
je 0x10047c59
mov eax, dword [ebp - 0x28]
push 0
push 0
push 0
inc eax
push 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push esi
push ecx
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10047c49
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0x14
push dword [ebp - 0x44]
push dword [ebp - 0x34]
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x10047c2b
push 0x101fe63c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007a90
mov byte [ebp - 4], 0x15
push dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10007a90
add esp, 0x18
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x38]
push eax
call fcn.100079d0
mov byte [ebp - 4], 0x15
or esi, 0xffffffff
mov edx, dword [ebp - 0x4c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047bd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov eax, esi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047bf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov edi, esp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x60], edi
mov esi, dword [ebp - 0x38]
lea eax, [esi - 0x10]
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp + 8]
inc eax
push eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x3c]
call fcn.10047600
or edi, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10047c46
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x58]
inc ecx
mov dword [ebp - 0x58], ecx
cmp ecx, dword [ebp - 0x2c]
jne 0x10047b31
push esi
call fcn.100d06c7
add esp, 4
jmp 0x10047a59
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x44]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047c88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10047ca6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10047cc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
int3