Function at 0x4053bc
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x103c]
mov eax, 0x103c
call fcn.0043f800
push 0xffffffffffffffff
push 0x447b62
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp + 0x1038], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1044]
mov ebx, ecx
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x10], eax
je 0x40568b
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
je 0x40568b
mov eax, ebx
lea ecx, [ebp]
call fcn.00401c6e
push str..shortcut
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call fcn.00401cb3
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x405446
lea eax, [ebp + 4]
push eax
call edi
test eax, eax
je 0x405460
push esi
push 1
lea esi, [ebp]
call fcn.004022b6
xor eax, eax
inc eax
jmp 0x40568d
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40546c
lea eax, [ebp + 4]
push 0x44d884
push eax
call fcn.0042d580
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x405498
push str.created.
push 0x44d89c
push edi
call fcn.0042eefe
push edi
call fcn.0042d82b
add esp, 0x10
push 1
push 0x10
lea eax, [ebp + 0x38]
push eax
push esi
xor edi, edi
mov word [ebp + 0x38], si
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x405536
lea eax, [ebp + 0x38]
lea ecx, [ebp + 0x1c]
call fcn.00401c6e
lea esi, [ebp - 0x1c]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x5c
je 0x4054fe
lea esi, [ebp - 0x1c]
lea ecx, [ebp + 0x1c]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x2f
je 0x4054fe
push 0x44d8a0
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
push 0x44d964
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x405518
lea eax, [ebp + 0x20]
mov edi, dword [ebp - 0x10]
push eax
call fcn.00401918
pop ecx
push 0
push 1
lea esi, [ebp + 0x1c]
mov edi, eax
mov byte [ebp - 4], 0
call fcn.004022b6
xor esi, esi
push 1
push 2
lea eax, [ebp + 0x38]
push eax
push esi
mov word [ebp + 0x38], si
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40567c
lea eax, [ebp + 0x38]
lea ecx, [ebp + 0x1c]
call fcn.00401c6e
lea esi, [ebp - 0x1c]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x5c
je 0x40559d
lea esi, [ebp - 0x1c]
lea ecx, [ebp + 0x1c]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x2f
mov edi, 0x44d8a0
je 0x4055a2
push edi
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
jmp 0x4055a2
mov edi, 0x44d8a0
push str.NaverGame
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
push edi
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
push 0x44dffc
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x4055d4
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x38]
lea esi, [ebp + 0x1c]
call fcn.0040210f
lea esi, [ebp - 0x1c]
lea ecx, [ebp + 0x1c]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x5c
je 0x40561c
lea esi, [ebp - 0x1c]
lea ecx, [ebp + 0x1c]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x2f
je 0x40561c
push edi
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
push str.NaverGame_
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
push edi
lea eax, [ebp + 0x1c]
push eax
call fcn.00401cb3
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x405640
lea eax, [ebp + 0x20]
push eax
call fcn.0040141d
lea eax, [ebp + 0x1c]
mov dword [esp], 0x44d964
push eax
call fcn.00401cb3
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x405662
lea eax, [ebp + 0x20]
mov edi, dword [ebp - 0x10]
push eax
call fcn.00401918
pop ecx
push 0
push 1
lea esi, [ebp + 0x1c]
mov edi, eax
call fcn.004022b6
xor esi, esi
push esi
push 1
lea esi, [ebp]
call fcn.004022b6
mov eax, edi
jmp 0x40568d
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 + 0x1038]
xor ecx, ebp
call fcn.0042d4ab
add ebp, 0x103c
leave
ret