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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522ae1
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x565300]
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 ebx, ecx
mov dword [ebp - 0x220], ebx
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0x228], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, eax
mov dword [ebp - 0x22c], ecx
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov dword [eax], ecx
mov ecx, ebx
call fcn.004f7360
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.qyscreenocr_cache_screen.jpg
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00404590
mov ecx, eax
test ecx, ecx
je 0x4fc014
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x21c]
call fcn.004037a0
test al, al
jne 0x4fbe72
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbe50
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403c10
mov esi, dword [ebp - 0x21c]
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4fbe90
push esi
call ebx
lea eax, [esi - 0x10]
push eax
call fcn.00403fb0
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
cmp dword [edi - 4], 1
mov byte [ebp - 4], 3
jle 0x4fbec3
push dword [edi - 0xc]
lea ecx, [ebp - 0x224]
call fcn.004038f0
mov edi, dword [ebp - 0x224]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [edi - 8]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x4fc00a
cmp eax, dword [edi - 8]
jg 0x4fc00a
xor ecx, ecx
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4fbf0a
push edi
call ebx
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x220]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [esi - 4], 1
mov ebx, eax
jle 0x4fbf35
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
call fcn.004038f0
mov esi, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
push ebx
call fcn.004f6c40
push eax
push esi
call fcn.004f1bb0
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 0x14
test eax, eax
js 0x4fc00a
cmp eax, dword [esi - 8]
jg 0x4fc00a
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x220]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ReleaseDC]
push dword [eax + 4]
call ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
je 0x4fbf92
push 1
jmp 0x4fbf94
push 0
push 0x2421
call fcn.004f8020
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fbfc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4fbfdc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
call ebx
xor eax, eax
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.0050ea5d
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00404110
push 0x80004005
call fcn.00404110
int3