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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6584cc
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x6dc0b8]
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
mov edi, ecx
mov dword [ebp - 0x508], ecx
test edi, edi
je 0x4d8909
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x1c
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x528]
call fcn.0049f410
push str.Thorzip
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0
call fcn.0049f700
mov ebx, dword [ebp - 0x528]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d872e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.FilterList.data
lea edx, [ebp - 0x528]
lea ecx, [ebp - 0x544]
call fcn.0049f250
add esp, 4
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x544]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d8763
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2e8]
call fcn.0054a232
push str.FilterListCfg
lea eax, [ebp - 0x510]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0054a5b2
mov dword [ebp - 0x50c], 0xd
push edi
lea ecx, [ebp - 0x51c]
call fcn.004c6c20
mov byte [ebp - 4], 3
xor ebx, ebx
mov esi, dword [ebp - 0x518]
test esi, esi
je 0x4d8886
push str.FilterItem
lea eax, [ebp - 0x504]
push eax
lea ecx, [ebp - 0x510]
call fcn.0054a5b2
mov eax, dword [ebp - 0x51c]
lea edi, [ebp - 0x500]
mov ecx, 0x85
mov esi, dword [eax + ebx*4]
lea eax, [ebp - 0x500]
push eax
rep movsd dword es:[edi], dword [esi]
push str.ExtName
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x504]
call fcn.0054a531
mov ecx, eax
call fcn.0054a2a6
push dword [ebp - 0x2f8]
lea eax, [ebp - 0x530]
push str.Level
push eax
lea ecx, [ebp - 0x504]
call fcn.0054a531
mov ecx, eax
call fcn.0054a291
push dword [ebp - 0x2f4]
lea eax, [ebp - 0x534]
push str.FileType
push eax
lea ecx, [ebp - 0x504]
call fcn.0054a531
mov ecx, eax
call fcn.0054a27c
push dword [ebp - 0x2f0]
lea eax, [ebp - 0x538]
push str.ParentNode
push eax
lea ecx, [ebp - 0x504]
call fcn.0054a531
mov ecx, eax
call fcn.0054a2bb
mov esi, dword [ebp - 0x518]
inc ebx
cmp ebx, esi
jb 0x4d87b3
mov edi, dword [ebp - 0x508]
mov byte [ebp - 4], 2
test esi, esi
je 0x4d88ab
nop
mov eax, dword [ebp - 0x51c]
dec esi
push 0x214
push dword [eax + esi*4]
call fcn.00545b66
add esp, 8
test esi, esi
jne 0x4d8890
push dword [ebp - 0x51c]
call fcn.00545b61
add edi, 0xc
add esp, 4
sub dword [ebp - 0x50c], 1
mov dword [ebp - 0x508], edi
jne 0x4d8793
mov esi, dword [ebp - 0x544]
lea ecx, [ebp - 0x2e8]
push 0
push 1
push 0x6adcc8
push esi
call fcn.0054d707
lea ecx, [ebp - 0x2e8]
call fcn.0054a277
push esi
call fcn.00545b61
push dword [ebp - 0x528]
call fcn.00545b61
add esp, 8
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.00545b50
mov esp, ebp
pop ebp
ret