Function at 0x412d20
Capabilities:
Check if file exists
Delete directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1161
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x4f6414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3a0], ecx
push 0x1a
lea eax, [ebp - 0x334]
push eax
call fcn.00401800
add esp, 8
mov dword [ebp - 4], 0
push 0x4c5d4c
lea ecx, [ebp - 0x334]
call fcn.00403080
push 0x4c5d50
lea ecx, [ebp - 0x334]
call fcn.00403080
push 0x4c5d58
lea ecx, [ebp - 0x334]
call fcn.00403080
lea ecx, [ebp - 0x3b8]
call fcn.00405600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3b8]
push ecx
lea ecx, [ebp - 0x334]
call fcn.00404660
push eax
mov ecx, dword [ebp - 0x3a0]
call fcn.00412990
lea edx, [ebp - 0x39c]
push edx
lea ecx, [ebp - 0x3b8]
call fcn.004055f0
jmp 0x412de5
lea ecx, [ebp - 0x39c]
call fcn.00405cb0
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.004055e0
push eax
lea ecx, [ebp - 0x39c]
call fcn.00405c90
movzx ecx, al
test ecx, ecx
je 0x412e6e
lea ecx, [ebp - 0x39c]
call fcn.00405cc0
mov ecx, eax
call fcn.00404660
push eax
lea edx, [ebp - 0x34c]
push edx
call fcn.00402420
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34c]
call fcn.00404120
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412e5a
lea ecx, [ebp - 0x34c]
call fcn.00404120
push eax
call fcn.004018a0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34c]
call fcn.00404530
jmp 0x412dda
mov dword [ebp - 0x398], 0
jmp 0x412e89
mov eax, dword [ebp - 0x398]
add eax, 1
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0x14
jae 0x412ead
mov ecx, dword [ebp - 0x398]
mov edx, dword [ecx*4 + 0x4f6038]
push edx
mov ecx, dword [ebp - 0x3a0]
call fcn.00413000
jmp 0x412e7a
lea eax, [ebp - 0x364]
push eax
call fcn.00412980
mov ecx, eax
call fcn.004151f0
mov dword [ebp - 0x3a4], eax
mov ecx, dword [ebp - 0x3a4]
call fcn.00404660
push eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x364]
call fcn.004048f0
push str.remindmusic_
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x3a0]
call fcn.00412990
lea ecx, [ebp - 0x37c]
push ecx
call fcn.00412980
mov ecx, eax
call fcn.004151f0
mov dword [ebp - 0x3a8], eax
mov ecx, dword [ebp - 0x3a8]
call fcn.00404660
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x37c]
call fcn.004048f0
xor edx, edx
mov word [ebp - 0x31c], dx
push 0x206
push 0
lea eax, [ebp - 0x31a]
push eax
call fcn.00465ca0
add esp, 0xc
lea ecx, [ebp - 0x31c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x394]
push eax
call fcn.00412980
mov ecx, eax
call fcn.004151f0
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
call fcn.00404660
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x394]
call fcn.004048f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3b8]
call fcn.00405a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.004048f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004640c2
mov esp, ebp
pop ebp
ret