Function at 0x4af760
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5018f2
mov eax, dword fs:[0]
push eax
sub esp, 0xa28
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0xa24], eax
push ebx
push esi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0xa34]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
push 0x206
mov dword [esp + 0x14], 0
push eax
lea ecx, [esp + 0x32]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x208
mov word [esp + 0x34], ax
call fcn.004e8fe0
add esp, 0xc
cmp dword [esp + 0xa44], 0
jne 0x4af7f7
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4af7f7
add eax, 0xfffffff0
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
mov eax, esi
jmp 0x4af9e7
cmp dword [edi + 0xc], 0
je 0x4af836
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [edi + 0x10]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af825
sub eax, edx
sar eax, 1
jne 0x4af84e
push SHChangeNotifyRegister
push str.configzdefaultskin
mov ecx, 0x104
lea edx, [esp + 0x30]
call fcn.0041ec40
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af855
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
mov eax, edi
call fcn.00401560
push edi
mov eax, 1
lea ecx, [esp + 0x18]
call fcn.00429020
mov dword [esp + 0xa3c], 0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov ebx, 2
mov dword [esp + 0x10], ebx
cmp eax, 1
jne 0x4af8b5
test eax, eax
jge 0x4af8ac
push 0x80070057
call fcn.00401540
movzx eax, word [ecx]
cmp ax, 0x5c
je 0x4af8f5
push edi
mov eax, 1
lea ecx, [esp + 0x1c]
call fcn.00429020
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov ebx, 6
mov dword [esp + 0x10], ebx
cmp eax, 1
jne 0x4af8ee
test eax, eax
jge 0x4af8e5
push 0x80070057
call fcn.00401540
movzx eax, word [ecx]
cmp ax, 0x2f
je 0x4af8f5
mov byte [esp + 0xf], 0
jmp 0x4af8fa
mov byte [esp + 0xf], 1
test bl, 4
je 0x4af926
mov eax, dword [esp + 0x18]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4af926
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa3c], 0xffffffff
test bl, 2
je 0x4af956
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x4af96f
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
dec edx
push edx
push edi
mov eax, 1
call fcn.00427480
lea esi, [esp + 0x230]
call fcn.004b4320
xor esi, esi
cmp dword [edi + 8], esi
jle 0x4af9a0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x4af990
lea eax, [esp + 0x230]
push eax
call ebx
inc esi
cmp esi, dword [edi + 8]
jl 0x4af990
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x234]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x230]
call fcn.004b42a0
test eax, eax
jne 0x4af9d2
push 0x13
push str.configzdefaultskin
mov eax, edi
call fcn.00401560
mov eax, dword [edi]
sub eax, 0x10
call fcn.004048c0
mov ecx, eax
mov eax, dword [esp + 0x1c]
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0xa34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xa24]
xor ecx, esp
call fcn.004e3edb
add esp, 0xa34
ret 4