Function at 0x47afae
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4cd42c
call fcn.0045d02c
sub esp, 0x254
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x14]
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x15c]
push eax
push 0
push dword [edi + 0x30]
call fcn.0049af75
add esp, 0xc
test eax, eax
jne 0x47b36b
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x18], eax
call fcn.004bdf6c
push 3
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [edi + 0x30]
call fcn.0049afe2
add esp, 0x18
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x14]
push eax
call fcn.004717f2
lea eax, [ebp - 0x10]
xor esi, esi
push 4
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0047edf4
push str..bmp
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0a7
push str..tga
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0a7
push str..cur
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0a7
push str..ani
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0a7
push str..ico
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0a7
push str..png
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
jne 0x47b31c
push str..cur
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0f9
push str..ani
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0f9
push str..ico
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b0f9
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ae18b
add esp, 0xc
mov dword [ebp - 0x24], eax
jmp 0x47b1f5
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.0045d120
mov ebx, eax
push 2
push esi
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x30], ebx
push dword [edi + 0x30]
call fcn.0049afe2
push 0x18
call fcn.004bdf6c
add esp, 0x20
mov dword [ebp - 0x24], eax
cmp eax, esi
mov byte [ebp - 4], 2
je 0x47b150
mov ecx, eax
call fcn.00489999
mov esi, eax
push str..cur
mov dword [ebp - 0x24], esi
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b18f
push str..ani
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
je 0x47b18f
push 0x2050
push 0x10
push 0x10
push 1
push ebx
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
jmp 0x47b196
push ebx
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x47b1aa
cmp eax, ebx
je 0x47b1aa
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x30]
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..ani
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
jne 0x47b1d2
mov dword [esi + 8], 3
jmp 0x47b1f5
push str..cur
push dword [ebp - 0x10]
call fcn.0045d927
pop ecx
test eax, eax
pop ecx
jne 0x47b1ee
mov dword [esi + 8], 2
jmp 0x47b1f5
mov dword [esi + 8], 1
cmp dword [ebp - 0x24], 0
je 0x47b34f
mov eax, dword [0x50a49c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
push str.Pictures
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004719f6
mov esi, dword [ebp - 0x14]
push 1
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00471d4b
push eax
push esi
call fcn.00496fc3
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
call fcn.00471db2
mov esi, 0x50b5b0
mov eax, esi
test eax, eax
je 0x47b253
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00475db4
mov ecx, dword [0x510b9c]
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00497729
push 0x41c
mov ebx, eax
call fcn.004bdf6c
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x47b295
mov ecx, eax
call fcn.0047ae8f
mov esi, eax
jmp 0x47b297
xor esi, esi
lea eax, [esi + 0x214]
push str.OpenSkin
push eax
mov byte [ebp - 4], 4
call fcn.0045d110
push dword [ebp - 0x14]
lea eax, [esi + 0x318]
push eax
call fcn.0045d110
push dword [ebp - 0x14]
lea eax, [esi + 0x107]
push eax
call fcn.0045d110
push dword [ebp - 0x18]
call fcn.004bdf6c
push dword [ebp - 0x18]
mov dword [esi + 0x20c], eax
push dword [ebp - 0x2c]
push eax
call fcn.0045dac0
mov eax, dword [ebp - 0x18]
add esp, 0x28
mov dword [esi + 0x210], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], ebx
mov dword [esi + 0x208], eax
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004717c9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004717c9
push dword [ebp - 0x2c]
call fcn.004bdf95
inc dword [ebp - 0x20]
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004717c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004717c9
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x20]
jmp 0x47afd5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004717c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004717c9
xor eax, eax
jmp 0x47b36e
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret