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

Disassembly:
mov eax, 0x4ee534
call fcn.0047b598
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.004b965d
add esp, 0xc
test eax, eax
jne 0x499b99
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x18], eax
call fcn.004dcbe4
push 3
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [edi + 0x30]
call fcn.004b96ca
add esp, 0x18
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x14]
push eax
call fcn.0049000c
lea eax, [ebp - 0x10]
xor esi, esi
push 4
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0049d62b
push 0x528d3c
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x4998d5
push str..tga
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x4998d5
push str..cur
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x4998d5
push str..ani
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x4998d5
push str..ico
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x4998d5
push str..png
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
jne 0x499b4a
push str..cur
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x499927
push str..ani
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x499927
push str..ico
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x499927
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004cc7d3
add esp, 0xc
mov dword [ebp - 0x24], eax
jmp 0x499a23
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.0047b690
mov ebx, eax
push 2
push esi
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x30], ebx
push dword [edi + 0x30]
call fcn.004b96ca
push 0x18
call fcn.004dcbe4
add esp, 0x20
mov dword [ebp - 0x24], eax
cmp eax, esi
mov byte [ebp - 4], 2
je 0x49997e
mov ecx, eax
call fcn.004a8210
mov esi, eax
push str..cur
mov dword [ebp - 0x24], esi
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x4999bd
push str..ani
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
je 0x4999bd
push 0x2050
push 0x10
push 0x10
push 1
push ebx
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
jmp 0x4999c4
push ebx
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4999d8
cmp eax, ebx
je 0x4999d8
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.0047b904
pop ecx
test eax, eax
pop ecx
jne 0x499a00
mov dword [esi + 8], 3
jmp 0x499a23
push str..cur
push dword [ebp - 0x10]
call fcn.0047b904
pop ecx
test eax, eax
pop ecx
jne 0x499a1c
mov dword [esi + 8], 2
jmp 0x499a23
mov dword [esi + 8], 1
cmp dword [ebp - 0x24], 0
je 0x499b7d
mov eax, dword [0x5308bc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
push str.Pictures
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00490210
mov esi, dword [ebp - 0x14]
push 1
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.00490565
push eax
push esi
call fcn.004b56a3
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
call fcn.004905cc
mov esi, 0x5319d8
mov eax, esi
test eax, eax
je 0x499a81
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.004945ce
mov ecx, dword [0x53c43c]
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b5e11
push 0x41c
mov ebx, eax
call fcn.004dcbe4
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 5
je 0x499ac3
mov ecx, eax
call fcn.004996c4
mov esi, eax
jmp 0x499ac5
xor esi, esi
lea eax, [esi + 0x214]
push str.OpenSkin
push eax
mov byte [ebp - 4], 4
call fcn.0047b680
push dword [ebp - 0x14]
lea eax, [esi + 0x318]
push eax
call fcn.0047b680
push dword [ebp - 0x14]
lea eax, [esi + 0x107]
push eax
call fcn.0047b680
push dword [ebp - 0x18]
call fcn.004dcbe4
push dword [ebp - 0x18]
mov dword [esi + 0x20c], eax
push dword [ebp - 0x2c]
push eax
call fcn.0047bb20
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.0048ffe3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0048ffe3
push dword [ebp - 0x2c]
call fcn.004dcc0d
inc dword [ebp - 0x20]
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0048ffe3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0048ffe3
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x20]
jmp 0x499803
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0048ffe3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0048ffe3
xor eax, eax
jmp 0x499b9c
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret