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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5385e3
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x270], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4df0b1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00404170
push 0x55c214
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404750
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4deea4
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x24c], 7
cmp dword [ebp - 0x21c], 8
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x250], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4deee5
test al, 0x10
jne 0x4def0a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4df08a
push 1
push 0x55c284
lea ecx, [ebp - 0x230]
call fcn.004043f0
cmp word [esi], 0
jne 0x4def26
xor ecx, ecx
jmp 0x4def3f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4def30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.004043f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4def70
test al, 0x10
jne 0x4def95
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4df08a
push 0x55c2dc
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.00404640
add esp, 4
mov byte [ebp - 4], 3
cmp word [ebx], 0
jne 0x4defbc
xor ecx, ecx
jmp 0x4defd0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4defc1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x248]
call fcn.004043f0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4df017
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x264]
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
push dword [ebp - 0x268]
cmovae edx, dword [ebp - 0x248]
push dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x270]
call fcn.004df350
mov ecx, dword [ebp - 0x234]
add esp, 0xc
mov esi, eax
cmp ecx, 8
jb 0x4df06b
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jmp 0x4df08f
mov esi, 1
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4df0ad
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403010
mov eax, esi
jmp 0x4df0b6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret