Function at 0x1002a530
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push ebx
mov dword [ebp - 0x294], ecx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x298], esi
call fcn.1002bfc0
mov edi, eax
add esp, 4
test edi, edi
je 0x1002a7b1
push edi
call fcn.1000b020
mov esi, eax
add esp, 4
mov dword [ebp - 0x290], esi
test esi, esi
je 0x1002a786
push edi
push esi
push ebx
mov ebx, dword [ebp - 0x294]
mov ecx, ebx
call fcn.1002a2f0
test eax, eax
je 0x1002a77d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x29c]
push eax
push 6
push ecx
mov ecx, ebx
call fcn.1002a120
test eax, eax
je 0x1002a77d
call fcn.1001d8f0
push edi
push esi
test eax, eax
je 0x1002a60a
lea edx, [ebp - 0x29c]
push edx
mov ecx, ebx
call fcn.1002dca0
test eax, eax
je 0x1002a77d
push esi
mov dword [ebp - 0x298], 1
call fcn.1000b015
mov eax, dword [ebp - 0x298]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 8
call fcn.1002cd50
push 0
mov dword [ebp - 0x2a4], eax
call fcn.1000b581
mov ebx, eax
add ebx, dword [ebp - 0x2a0]
push edi
push esi
push ebx
call fcn.1002cb50
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x28a]
push ecx
mov word [ebp - 0x28c], ax
call fcn.1000ae30
mov ecx, dword [ebp - 0x294]
add esp, 0x24
call fcn.1002d1b0
test eax, eax
je 0x1002a77d
push 0x104
push eax
lea edx, [ebp - 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov word [ebp - 0x84], cx
call fcn.1000ae30
mov eax, dword [ebp + 8]
push esi
push eax
push 6
push str.AT_dFT_d_d.dat
lea ecx, [ebp - 0x84]
push 0x3f
push ecx
call fcn.1000c37d
add esp, 0x24
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x28c]
push eax
inc esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002a672
mov edx, dword [ebp - 0x290]
mov ecx, dword [ebp - 0x294]
push edi
push edx
lea eax, [ebp - 0x28c]
push eax
call fcn.1002a360
test eax, eax
je 0x1002a777
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 0xa]
push edi
call fcn.1000b020
mov esi, eax
add esp, 4
test esi, esi
je 0x1002a777
mov edx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x28c]
push eax
mov dword [esi], ebx
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
lea ecx, [ebp - 0x28c]
push ecx
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x294]
push edi
push esi
lea eax, [ebp - 0x29c]
push eax
call fcn.1002dca0
push esi
mov edi, eax
call fcn.1000b015
add esp, 4
test edi, edi
jne 0x1002a79f
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x290]
push esi
call fcn.1000b015
add esp, 4
mov eax, dword [ebp - 0x298]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x290]
mov dword [ebp - 0x298], 1
jmp 0x1002a77d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 8