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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, esp
mov edi, dword [ebp + 8]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esi + 0xc8], eax
mov ecx, edi
push 0
call fcn.004aef38
test al, al
jne 0x5004b0
push edi
call fcn.004fef10
add esp, 4
test al, al
je 0x5004b0
mov ebx, esp
push eax
sub esp, 0x10
mov ecx, esp
push edi
call fcn.004aeac0
call fcn.005004d0
add esp, 0x14
mov esp, ebx
mov ecx, 0x7bd588
push 0
call fcn.004aef38
test al, al
jne 0x5003ef
mov ecx, 0x7bd588
call fcn.004af144
mov ecx, edi
push eax
call fcn.004af30a
test al, al
je 0x5003ef
mov ecx, edi
call fcn.004af144
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x5003e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x5003e4
movups xmm0, xmmword [0x7a9568]
movaps xmmword [esi + 0x50], xmm0
movaps xmmword [esi + 0x40], xmm0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov ecx, edi
push 0
mov edi, eax
call fcn.004af666
mov byte [esi + 0x10], 2
mov dword [esi + 0x18], eax
mov eax, edi
sar eax, 0x1f
mov byte [esi], 0
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
sub esp, 0x78
movaps xmm0, xmmword [esi + 0x50]
movups xmmword [esp + 0x68], xmm0
movaps xmm0, xmmword [esi + 0x40]
movups xmmword [esp + 0x58], xmm0
movaps xmm0, xmmword [esi + 0x30]
movups xmmword [esp + 0x48], xmm0
movaps xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x38], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [esp + 0x28], xmm0
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.deleteFile_fail_lastError__d__path:__s
mov dword [esp + 0x10], str.FileUtils
mov dword [esp + 0xc], str.deleteFile
mov dword [esp + 8], 0x1d3
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_base_FileUtils.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
cmp ebx, 1
sete bl
jmp 0x5004b2
mov ebx, dword [ebp + 0xc]
movups xmm0, xmmword [0x7a9568]
movaps xmmword [esi + 0xb0], xmm0
movaps xmmword [esi + 0xa0], xmm0
movaps xmmword [esi + 0x90], xmm0
movaps xmmword [esi + 0x80], xmm0
mov ecx, edi
push 0
call fcn.004af666
mov byte [esi + 0x70], 2
mov dword [esi + 0x78], eax
mov eax, ebx
sar eax, 0x1f
mov byte [esi + 0x60], 0
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
sub esp, 0x78
movaps xmm0, xmmword [esi + 0xb0]
movups xmmword [esp + 0x68], xmm0
movaps xmm0, xmmword [esi + 0xa0]
movups xmmword [esp + 0x58], xmm0
movaps xmm0, xmmword [esi + 0x90]
movups xmmword [esp + 0x48], xmm0
movaps xmm0, xmmword [esi + 0x80]
movups xmmword [esp + 0x38], xmm0
movups xmm0, xmmword [esi + 0x70]
movups xmmword [esp + 0x28], xmm0
movups xmm0, xmmword [esi + 0x60]
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.deleteFile_fail_path_or_fileType_wrong__fileType:_d__path:__s
mov dword [esp + 0x10], str.FileUtils
mov dword [esp + 0xc], str.deleteFile
mov dword [esp + 8], 0x1ca
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_base_FileUtils.cpp
mov dword [esp], 4
call fcn.004ee380
add esp, 0x78
xor ebx, ebx
mov ecx, dword [esi + 0xc8]
xor ecx, ebp
call fcn.006c9121
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret