Function at 0x47ae40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a5082
mov eax, dword fs:[0]
push eax
sub esp, 0xa24
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0xa20], eax
push ebx
push ebp
push esi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0xa34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa44]
xor eax, eax
push 0x206
mov dword [esp + 0x18], 0
push eax
lea ecx, [esp + 0x32]
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x104
mov word [esp + 0x34], ax
call fcn.0048dc10
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax - 0xc], 0
je 0x47aec3
add eax, 0xfffffff0
jmp 0x47b0c8
cmp dword [edi + 0xc], 0
je 0x47af26
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 + 0x24]
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 0x47aef1
sub eax, edx
sar eax, 1
jne 0x47af44
xor eax, eax
jmp 0x47af10
movzx ecx, word [eax + str.configdefaultskin]
mov word [esp + eax + 0x28], cx
add eax, 2
test cx, cx
jne 0x47af10
jmp 0x47af44
xor eax, eax
jmp 0x47af30
movzx ecx, word [eax + str.configdefaultskin]
mov word [esp + eax + 0x28], cx
add eax, 2
test cx, cx
jne 0x47af30
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x47af50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47af50
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
mov eax, edi
call fcn.0046c7e0
push edi
mov eax, 1
lea ecx, [esp + 0x1c]
call fcn.0045ea30
mov dword [esp + 0xa3c], 0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov ebx, 2
mov dword [esp + 0x14], ebx
cmp eax, 1
jne 0x47afb1
test eax, eax
jge 0x47afa8
push 0x80070057
call fcn.004752e0
movzx eax, word [ecx]
cmp ax, 0x5c
je 0x47aff1
push edi
mov eax, 1
lea ecx, [esp + 0x28]
call fcn.0045ea30
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
mov ebx, 6
mov dword [esp + 0x14], ebx
cmp eax, 1
jne 0x47afea
test eax, eax
jge 0x47afe1
push 0x80070057
call fcn.004752e0
movzx eax, word [ecx]
cmp ax, 0x2f
je 0x47aff1
mov byte [esp + 0x13], 0
jmp 0x47aff6
mov byte [esp + 0x13], 1
test bl, 4
je 0x47b022
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b022
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 0x47b052
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b052
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x13], 0
je 0x47b065
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
dec eax
push edi
call fcn.0047ac20
lea esi, [esp + 0x230]
call fcn.0047c860
xor esi, esi
cmp dword [edi + 8], esi
jle 0x47b090
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, edi
lea edx, [esp + 0x230]
push edx
call ebx
inc esi
cmp esi, dword [edi + 8]
jl 0x47b080
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x234]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x230]
call fcn.0047adc0
test eax, eax
jne 0x47b0c3
lea ebx, [eax + 0x12]
push str.configdefaultskin
mov eax, edi
call fcn.0046c7e0
mov eax, dword [edi]
sub eax, 0x10
call fcn.0046b5f0
add eax, 0x10
mov dword [ebp], eax
mov eax, ebp
mov ecx, dword [esp + 0xa34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa20]
xor ecx, esp
call fcn.0048b133
add esp, 0xa30
ret 4