Function at 0x4fdf1b
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x86b0f2
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
mov ebx, dword [esp + 0x43c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
mov esi, ecx
je 0x4fe268
push ebx
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x4fe268
mov eax, dword [esp + 0x450]
cmp eax, ebp
je 0x4fde70
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x454]
cmp eax, ebp
je 0x4fde7e
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x458]
cmp eax, ebp
je 0x4fde8c
mov dword [esi + 0x14], eax
push edi
push 0x9b5220
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], ebp
call fcn.00617650
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x444], ebp
call fcn.00617650
mov eax, dword [esp + 0x464]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x44c], 1
call fcn.004fd940
lea ecx, [esp + 0x20]
mov edi, eax
mov byte [esp + 0x440], 0
call fcn.00617ec0
cmp edi, ebp
je 0x4fe24d
mov eax, dword [esp + 0x1c]
push ebp
push eax
call fcn.0066ee10
add esp, 8
cmp eax, ebp
je 0x4fe24d
mov eax, dword [0x9dce80]
cmp eax, ebp
je 0x4fdf2a
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push str.CSDCompressHelper::DoCompressFileFun__start____wstrCompressFile__s__wstrDstTmp__s_
push str.SDCompress
push 4
push 0x9dc5ec
call fcn.006600d0
add esp, 0x18
mov ecx, dword [esp + 0x450]
xor eax, eax
cmp ecx, ebp
jne 0x4fdf3c
mov eax, 1
mov edx, dword [esp + 0x1c]
push eax
push esi
push 0x4fd570
push 0x4fd2e0
push edx
push ebp
push ebx
mov dword [esi + 0x10], 1
call fcn.0044f7c0
mov ecx, dword [0x9dce80]
add esp, 0x1c
cmp ecx, ebp
je 0x4fdf88
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push str.CSDCompressHelper::DoCompressFileFun__wstrCompressFile__s__wstrDstTmp__s__dwExtract__d_
push str.SDCompress
push 4
push 0x9dc5ec
call fcn.006600d0
add esp, 0x1c
cmp dword [esi + 8], ebp
jbe 0x4fe241
cmp dword [esp + 0x460], ebp
jne 0x4fe241
push 0x9b5220
lea ecx, [esp + 0x14]
call fcn.00617650
push 0x9b5220
lea ecx, [esp + 0x1c]
mov byte [esp + 0x444], 2
call fcn.00617650
mov ebp, dword [esp + 0x44c]
mov byte [esp + 0x440], 3
test ebp, ebp
je 0x4fe159
push ebp
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x4fe159
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x232]
mov word [esp + 0x230], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push ebx
stosw word es:[edi], ax
call fcn.005fc6c4
mov eax, dword [0x8ab26c]
add esp, 0x14
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push edx
push ebp
lea eax, [esp + 0x20]
push 0x958c80
push eax
mov byte [esp + 0x454], 4
call fcn.0061aed0
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4fe08a
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.00618070
jmp 0x4fe146
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x1c]
test ecx, ecx
jne 0x4fe0b1
lea ecx, [esi + 0x20]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov ecx, 0x9ce188
call fcn.005073e0
cmp eax, 1
jne 0x4fe1c8
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4fe0de
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00618070
lea ecx, [esp + 0x18]
push str..bak
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.004fdb80
jmp 0x4fe146
cmp eax, 1
jne 0x4fe13d
push 0x9b5220
lea ecx, [esp + 0x24]
call fcn.00617650
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push ebp
push 0x92ecec
push ecx
mov byte [esp + 0x450], 5
call fcn.0061aed0
add esp, 0x10
lea edx, [esp + 0x230]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004fdb80
lea ecx, [esp + 0x20]
mov byte [esp + 0x440], 4
call fcn.00617ec0
jmp 0x4fe146
cmp eax, 2
je 0x4fe1cf
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 3
call fcn.00617ec0
jmp 0x4fe160
mov dword [esi + 0x20], 3
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4fe17f
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4fe21f
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [ecx - 8]
test edx, edx
je 0x4fe18e
mov eax, ecx
mov ecx, dword [esp + 0x1c]
push 3
push 0
push 0
push 0
push 0
push ecx
push eax
call fcn.0044f830
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x4fe1e2
mov eax, dword [esi + 0x20]
mov dword [esp + 0x24], 1
test eax, eax
jne 0x4fe21f
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4fe21f
mov dword [esi + 0x24], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x440], 3
call fcn.00617ec0
jmp 0x4fe21f
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4fe1fb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [0x9dce80]
test eax, eax
je 0x4fe21f
push edi
push ebx
push str.CSDCompressHelper::DoCompressFileFun_Compress_Failed__wstrCompressFile__s__dwExtract__d_
push str.SDCompress
push 4
push 0x9dc5ec
call fcn.006600d0
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x440], 2
call fcn.00617ec0
lea ecx, [esp + 0x10]
mov byte [esp + 0x440], 0
call fcn.00617ec0
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call fcn.004fdc60
lea ecx, [esp + 0x1c]
mov dword [esp + 0x440], 0xffffffff
call fcn.00617ec0
mov eax, dword [esp + 0x24]
pop edi
jmp 0x4fe26a
xor eax, eax
mov ecx, dword [esp + 0x434]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret 0x20