Function at 0x477d20
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5075a5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54c154]
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
push 0x104
push 0x5577f8
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x477f11
push 0x5577f8
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], str.skinltr_
push eax
push 0x20019
push 0
push str..DEFAULTSoftwareSetID
push SysStringLen
mov dword [ebp - 0x24], str..._skinltr_
mov dword [ebp - 0x20], str.skin_
mov dword [ebp - 0x1c], str.skin_rtl_
mov dword [ebp - 0x18], str..._skin_rtl_
mov dword [ebp - 0x14], str.skin_
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477e01
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x522510
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
push dword [ebp - 0x30]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 1
lea edi, [ebp - 0x1c]
lea eax, [ebp - 0x28]
cmovne edi, eax
xor ebx, ebx
mov dword [ebp - 0x34], edi
call fcn.00424520
mov ecx, eax
test ecx, ecx
je 0x477f8c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 0x5577f8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00425e20
test al, al
jne 0x477e6d
mov eax, 0x5577f8
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477e50
sub eax, edx
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
push 0x5577f8
call fcn.00426110
mov dword [ebp - 4], 1
mov ecx, 1
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x477e9b
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.00425f40
mov esi, dword [ebp - 0x2c]
push dword [edi + ebx*4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x477f6f
lea edi, [esi - 0x10]
test esi, esi
jne 0x477eb8
xor eax, eax
jmp 0x477ecc
push dword [edi + 8]
push esi
call fcn.004e5bf5
add esp, 8
test eax, eax
js 0x477f96
cmp eax, dword [edi + 8]
jg 0x477f96
xor ecx, ecx
mov dword [edi + 4], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x477f2f
mov dword [ebp - 4], eax
or eax, eax
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x477f04
lfence
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x34]
inc ebx
cmp ebx, 3
jb 0x477e13
xor eax, eax
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.004a44cd
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push 0x5577f8
call fcn.004dab23
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x477f5d
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.images_2_
push 0x5577f8
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x477f13
add esi, 0xfffffff0
or edi, 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x477f11
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x477f11
push 0x80004005
call fcn.004098e0
push 0x80070057
call fcn.004098e0
int3