Function at 0x41cd60
Capabilities:
Check if file exists
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d081
mov eax, dword fs:[0]
push eax
mov eax, 0x10b4
call fcn.004d7a20
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108c], ecx
cmp dword [ebp + 8], 0
jne 0x41cda1
jmp 0x41d0c8
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x41cdb0
jmp 0x41d0c8
mov edx, dword [ebp + 8]
push edx
call fcn.005156e3
add esp, 4
mov dword [ebp - 0x10a4], eax
cmp dword [ebp - 0x10a4], 0x104
jl 0x41cdd3
jmp 0x41d0c8
push 0x410
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.00511800
add esp, 0xc
push 0x549f90
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.0041e570
mov ecx, eax
call fcn.0041dde0
mov dword [ebp - 0x1098], eax
mov eax, dword [ebp - 0x1098]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1098]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x10b8], eax
mov ecx, dword [ebp - 0x108c]
add ecx, 0xa8
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x108c]
call fcn.0041be80
mov dword [ebp - 0x10a8], eax
cmp dword [ebp - 0x10a8], 0
jne 0x41ce65
mov eax, dword [ebp - 0x108c]
mov dword [eax + 0xa8], 0xc8
lea ecx, [ebp - 0x884]
call fcn.00419e40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x884]
call fcn.0041bc80
mov dword [ebp - 0x1094], eax
cmp dword [ebp - 0x1094], 0
je 0x41cfe3
lea ecx, [ebp - 0x884]
call fcn.0041c780
test eax, eax
je 0x41cebe
lea ecx, [ebp - 0x884]
call fcn.0041bde0
mov dword [ebp - 0x1094], eax
jmp 0x41ce8f
lea edx, [ebp - 0x1090]
push edx
lea ecx, [ebp - 0x884]
call fcn.0041c200
mov byte [ebp - 4], 1
lea eax, [ebp - 0x109c]
push eax
lea ecx, [ebp - 0x884]
call fcn.0041c160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x109c]
call fcn.0041c950
lea ecx, [ebp - 0x884]
call fcn.0041c760
test eax, eax
je 0x41cf6e
mov ecx, dword [ebp - 0x108c]
mov dword [ebp - 0x10ac], ecx
mov dword [ebp - 0x10b0], fcn.0041bb50
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x10bc], esp
sub esp, 8
mov edx, esp
mov dword [ebp - 0x10c0], esp
lea eax, [ebp - 0x10ac]
push eax
lea ecx, [ebp - 0x10b0]
push ecx
push edx
call fcn.00418d30
add esp, 0xc
mov ecx, esi
call fcn.00417930
mov edx, dword [ebp - 0x108c]
add edx, 0xc
push edx
lea ecx, [ebp - 0x1090]
call fcn.00406cd0
push eax
call fcn.00428e10
add esp, 0x30
jmp 0x41cfaf
mov eax, dword [ebp - 0x108c]
add eax, 0xc
push eax
lea ecx, [ebp - 0x1090]
call fcn.00406cd0
push eax
call fcn.00428ce0
add esp, 8
test eax, eax
je 0x41cfaf
mov ecx, dword [ebp - 0x1090]
push ecx
push str.Delete_File:__s
call fcn.00422820
add esp, 8
mov ecx, dword [ebp - 0x108c]
call fcn.0041bb50
lea ecx, [ebp - 0x884]
call fcn.0041bde0
mov dword [ebp - 0x1094], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x109c]
call fcn.004067d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1090]
call fcn.004067d0
jmp 0x41ce8f
lea ecx, [ebp - 0x884]
call fcn.0041ba10
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x10b4], eax
cmp dword [ebp - 0x10b4], 0
je 0x41d013
mov dword [ebp - 0x10a0], str.suceess
jmp 0x41d01d
mov dword [ebp - 0x10a0], str.failed.
mov eax, dword [ebp - 0x10a0]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.remove_directory__s__s
call fcn.00422820
add esp, 0xc
push 1
lea ecx, [ebp - 0x1084]
call fcn.00419b80
push 1
push 0x1a
lea ecx, [ebp - 0x1084]
call fcn.0040cd00
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov byte [ebp - 0x1085], dl
lea ecx, [ebp - 0x1085]
call fcn.0041a570
push eax
lea ecx, [ebp - 0x1084]
call fcn.0040cd00
push eax
lea ecx, [ebp - 0x1084]
call fcn.0040cd00
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x1084]
call fcn.0040cd00
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d0b6
lea ecx, [ebp - 0x1084]
call fcn.0040cd00
push eax
call fcn.00427400
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x884]
call fcn.0041a190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret 4