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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdd35
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x53d058]
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 0x5455c0
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46ae81
push 0x5455c0
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 0x46ad71
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0x5163b0
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.00416870
mov ecx, eax
test ecx, ecx
je 0x46aefc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 0x5455c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00418170
test al, al
jne 0x46addd
mov eax, 0x5455c0
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46adc0
sub eax, edx
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
push 0x5455c0
call fcn.00418460
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 0x46ae0b
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.00418290
mov esi, dword [ebp - 0x2c]
push dword [edi + ebx*4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x46aedf
lea edi, [esi - 0x10]
test esi, esi
jne 0x46ae28
xor eax, eax
jmp 0x46ae3c
push dword [edi + 8]
push esi
call fcn.004dbcb9
add esp, 8
test eax, eax
js 0x46af06
cmp eax, dword [edi + 8]
jg 0x46af06
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 0x46ae9f
mov dword [ebp - 4], eax
or eax, eax
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46ae74
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 0x46ad83
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.0049852a
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push 0x5455c0
call fcn.004d0eb1
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46aecd
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.images_2_
push 0x5455c0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x46ae83
add esi, 0xfffffff0
or edi, 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x46ae81
lfence
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46ae81
push 0x80004005
call fcn.00416620
push 0x80070057
call fcn.00416620
int3