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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b493d
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x63a404]
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 - 0x42c], ebx
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push 0x104
mov dword [ebp - 0x430], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x52caa2
lea eax, [ebp - 0x420]
push eax
push esi
push 0x6255d4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x52caa2
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], esi
push ecx
mov ecx, eax
call fcn.00544840
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x430], esi
push 0
push 0
push esi
mov ecx, ebx
call fcn.0052c730
push esi
lea ecx, [ebp - 0x438]
call fcn.005448d0
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 1
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x438]
cmp edi, 0xffffffff
setne bl
test eax, eax
je 0x52cb04
push 2
push eax
call fcn.0056ea89
add esp, 8
test bl, bl
je 0x52cdb0
mov ecx, dword [ebp - 0x430]
call fcn.005475d0
mov dword [ebp - 0x434], eax
test eax, eax
je 0x52cd87
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
test eax, eax
je 0x52cd87
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x434]
push 0xfffffffffffffffa
call fcn.00547390
mov dword [ebp - 0x424], eax
test eax, eax
je 0x52cd74
mov edx, dword [eax]
or esi, 0xffffffff
test edx, edx
je 0x52cd74
mov eax, dword [eax + 4]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x52cd74
xor ecx, ecx
nop dword [eax + eax]
mov edi, ecx
mov ebx, esi
cmp esi, 0xffffffff
jne 0x52cba0
movzx eax, word [edx]
inc ecx
add edx, 2
mov esi, edi
cmp eax, 0x3d
cmovne esi, ebx
cmp ecx, dword [ebp - 0x428]
jb 0x52cb80
test esi, esi
jle 0x52cd74
mov ecx, dword [ebp - 0x424]
push esi
push 0
call fcn.00545be0
mov ecx, dword [ebp - 0x424]
inc esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x428], eax
call fcn.00545be0
mov esi, dword [ebp - 0x428]
mov edi, eax
mov dword [ebp - 0x424], edi
test esi, esi
je 0x52cd47
test edi, edi
je 0x52cd1e
mov ecx, esi
call fcn.00546730
mov ecx, edi
call fcn.00546730
cmp dword [esi + 4], 0
jle 0x52cd1e
cmp dword [edi + 4], 0
jle 0x52cd1e
push str.TYPE
lea ecx, [ebp - 0x440]
call fcn.005447b0
push eax
mov ecx, esi
call fcn.00546360
lea ecx, [ebp - 0x440]
mov bl, al
call fcn.004ffe40
test bl, bl
je 0x52cc48
mov ecx, dword [ebp - 0x42c]
push edi
lea ecx, [ecx + 0x1c]
call fcn.00545420
jmp 0x52cd1e
push str.NAME
lea ecx, [ebp - 0x448]
call fcn.005447b0
push eax
mov ecx, esi
call fcn.00546360
lea ecx, [ebp - 0x448]
mov bl, al
call fcn.004ffe40
test bl, bl
je 0x52cc85
mov ecx, dword [ebp - 0x42c]
push edi
lea ecx, [ecx + 0x14]
call fcn.00545420
jmp 0x52cd1e
push 0x624640
lea ecx, [ebp - 0x450]
call fcn.005447b0
push eax
mov ecx, esi
call fcn.00546360
lea ecx, [ebp - 0x450]
mov bl, al
call fcn.004ffe40
test bl, bl
je 0x52cd1e
push 0xffffffffffffffff
push 0x3a
mov ecx, edi
call fcn.00545a60
mov ecx, edi
lea esi, [eax + 1]
push esi
push 0x3a
call fcn.00545a60
mov ecx, dword [ebp - 0x424]
push 0
lea edi, [eax + 1]
call fcn.00545db0
mov ecx, dword [ebp - 0x424]
mov ebx, eax
push esi
call fcn.00545db0
push edi
mov edi, dword [ebp - 0x424]
mov esi, eax
mov ecx, edi
call fcn.00545db0
mov ecx, ebx
shl ecx, 4
sub ecx, ebx
lea edx, [esi + ecx*4]
mov esi, dword [ebp - 0x428]
mov ecx, edx
shl ecx, 4
sub ecx, edx
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x42c]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], 0
mov eax, dword [esi]
test eax, eax
je 0x52cd35
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
test edi, edi
je 0x52cd74
mov eax, dword [edi]
test eax, eax
je 0x52cd62
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
add esp, 8
mov ecx, dword [ebp - 0x434]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x52cb40
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x52cdb0
mov ecx, eax
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x52cdb0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056ea89
add esp, 8
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.0056e5b3
mov esp, ebp
pop ebp
ret