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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520d1a
mov eax, dword fs:[0]
push eax
mov eax, 0x2828
call fcn.004ac5b0
mov eax, dword [0x56f790]
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 dword [ebp - 0x2824], ecx
mov eax, dword [ebp + 8]
push 0x800
mov dword [ebp - 0x2818], eax
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x2828], 0
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x810]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2814]
push eax
call fcn.0040ed70
mov ecx, eax
call fcn.0040af70
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [eax]
lea eax, [ebp - 0x810]
push eax
push eax
call esi
mov edx, dword [ebp - 0x2814]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x477679
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x810]
push eax
call edi
test eax, eax
jne 0x4776ae
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x810]
push eax
push str.Create_directory_:__s
call fcn.00441ac0
add esp, 8
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
call fcn.00410b40
mov ecx, eax
test ecx, ecx
je 0x477abd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x281c], eax
lea eax, [ebp - 0x2814]
mov dword [ebp - 4], 0
push eax
call fcn.0040ed70
mov ecx, eax
call fcn.0040af70
push dword [eax]
lea eax, [ebp - 0x281c]
mov byte [ebp - 4], 1
push 0x53aae0
push eax
call fcn.0040ecb0
mov edx, dword [ebp - 0x2814]
add esp, 0xc
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x477736
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x281c]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
push 0x800
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.004b17e0
mov eax, dword [ebp - 0x2818]
add esp, 0xc
push str.LDSGameCenter.exe
push dword [eax]
lea eax, [ebp - 0x2010]
push eax
call esi
lea eax, [ebp - 0x1010]
push eax
call edi
test eax, eax
je 0x4777a6
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1010]
push eax
push str.Delete__s
call fcn.00441ac0
add esp, 8
lea eax, [ebp - 0x2814]
push eax
call fcn.0040ed70
mov ecx, eax
call fcn.0040af70
push 0
push 0
lea ecx, [ebp - 0x2010]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x1010]
push ecx
push 0
lea ecx, [ebp - 0x2010]
push ecx
push dword [eax]
mov ecx, dword [ebp - 0x2824]
call fcn.004787f0
mov edx, dword [ebp - 0x2814]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x477806
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x800
lea eax, [ebp - 0x2810]
push 0
push eax
call fcn.004b17e0
mov eax, dword [ebp - 0x2818]
add esp, 0xc
push 0x52cc24
push dword [eax]
lea eax, [ebp - 0x2810]
push eax
call esi
push 0x800
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
call fcn.00410b40
mov ecx, eax
test ecx, ecx
je 0x477ac7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2820], eax
lea eax, [ebp - 0x2814]
mov byte [ebp - 4], 3
push eax
call fcn.0040ed70
mov ecx, eax
call fcn.0040af70
push dword [eax]
lea eax, [ebp - 0x2820]
mov byte [ebp - 4], 4
push 0x53ac6c
push eax
call fcn.0040ecb0
mov edx, dword [ebp - 0x2814]
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4778b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2820]
lea eax, [ebp - 0x810]
push edi
push eax
lea eax, [ebp - 0x1810]
push eax
call esi
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477900
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1810]
push eax
push str.Delete__s
call fcn.00441ac0
add esp, 8
lea eax, [ebp - 0x2834]
push eax
call fcn.0040ed70
mov ecx, eax
call fcn.0040af70
mov dword [ebp - 0x282c], eax
mov byte [ebp - 4], 5
call fcn.00410b40
mov ecx, eax
test ecx, ecx
je 0x477ad1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2818], eax
push 0x53ac80
lea ecx, [ebp - 0x2818]
mov byte [ebp - 4], 6
call fcn.00408690
test al, al
jne 0x477964
push 2
push 0x53ac80
lea ecx, [ebp - 0x2818]
call fcn.00407f80
mov esi, dword [ebp - 0x2818]
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 8
mov dword [ebp - 0x2830], eax
test ecx, ecx
je 0x477989
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x47799f
call fcn.00410b40
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x477adb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2828], 1
mov dword [ebp - 0x2814], eax
mov eax, dword [ebp - 0x282c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x2814]
push esi
push eax
call fcn.00450230
mov esi, dword [ebp - 0x2814]
lea eax, [ebp - 0x2810]
mov ecx, dword [ebp - 0x2824]
add esp, 0x14
push 0
push 0
push eax
lea eax, [ebp - 0x1810]
push eax
push 0
lea eax, [ebp - 0x2810]
push eax
push esi
call fcn.004787f0
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x477a1e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2830]
mov eax, ebx
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x477a3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2834]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x477a5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x477a78
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x281c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x477a9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.004ac4b8
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404400
push 0x80004005
call fcn.00404400
push 0x80004005
call fcn.00404400
push 0x80004005
call fcn.00404400
int3