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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40
movzx edx, byte [ebp + 8]
cmp byte [eax + 3], 0x17
mov byte [ebp - 0x11], dl
mov edx, eax
je 0x47dad5
mov eax, dword [eax + 3]
mov edi, eax
shr edi, 0xa
cmp edx, 0x4fa001
je 0x47daf2
movsx eax, al
lea ecx, [eax - 0x11]
sar ecx, 1
cmp ecx, 2
je 0x47db2b
lea eax, [edi*4 + 0x1e]
and eax, 0x3fffff0
call fcn.004ea990
lea esi, [esp + 0x2b]
and esi, 0xfffffff0
test edi, edi
jne 0x47db06
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4f99d8]
mov dword [esp + 4], eax
lea esi, [eax + edi*4]
mov dword [esp + 8], esi
mov eax, dword [0x4f99d8]
mov dword [esp], eax
call dword [edx + 0x1f]
lea edx, [eax + 0x1f]
mov ecx, eax
and edx, 0xfffffff0
mov eax, edx
call fcn.004ea990
mov edx, dword [ebp - 0x18]
lea edi, [esp + 0x2b]
and edi, 0xfffffff0
mov dword [ebp - 0xc], edi
lea ecx, [edi + ecx]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [0x4f99d8]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [0x4f99d8]
mov dword [esp], eax
call dword [edx + 0x23]
cmp dword [ebp - 0x10], esi
jne 0x47dac0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
je 0x47db36
mov dword [esp], str.c:_usr_work_edrive_w32texsrc_clisp249_clisp_2.49_src_pathname.d
mov eax, 0x197f
mov dword [esp + 4], eax
call fcn.00420a64
mov edx, dword [edx + 7]
mov eax, dword [edx + 3]
cmp al, 0x17
jne 0x47d9fa
mov edx, dword [edx + 7]
mov eax, dword [edx + 3]
cmp al, 0x17
je 0x47dad5
jmp 0x47d9fa
mov dword [ebp - 0x18], 0
test edi, edi
je 0x47da3f
call fcn.0042a998
cmp ecx, 1
je 0x47db98
test ecx, ecx
jne 0x47dac0
mov dword [esp + 8], edi
lea eax, [edx + 7]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c124
jmp 0x47da3c
add edx, 7
mov dword [ebp - 0x18], edx
jmp 0x47da3f
mov byte [eax], 0
xor eax, eax
mov ecx, 0xc0000000
mov dword [0x698fa0], ebx
mov esi, 3
mov dword [esp + 0x18], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 0x14], eax
cmp byte [ebp - 0x11], 1
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], edi
sbb eax, eax
and eax, 2
add eax, 2
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
xor edx, edx
cmp eax, 0xffffffff
mov dword [0x698fa0], edx
je 0x47dbb0
mov esp, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
lea eax, [edx + 7]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c194
jmp 0x47da3c
mov eax, dword [ebx - 4]
mov dword [esp], 0x503be1
mov dword [esp + 4], eax
call fcn.004396a0
nop
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x40
mov dword [ebp - 0x14], eax
mov eax, dword [ebx - 4]
mov byte [ebp - 0x15], dl
call fcn.0047d690
test al, al
jne 0x47de20
mov esi, dword [ebx - 4]
mov eax, esi
call fcn.00476b8c
mov dword [ebx], eax
lea edx, [ebx + 4]
mov eax, dword [0x4f9da0]
lea ebx, [edx + 4]
mov dword [edx], eax
mov dword [esp], 2
call fcn.00452100
mov dword [ebx], eax
mov esi, eax
lea eax, [ebx + 4]
mov dword [eax], esi
lea ebx, [eax + 4]
mov eax, esi
call fcn.00475748
mov dword [ebx], eax
add ebx, 4
mov esi, eax
call fcn.0047d690
test al, al
jne 0x47de28
lea eax, [ebx - 4]
mov esi, dword [eax]
lea ebx, [eax - 4]
mov edx, dword [eax - 4]
mov dword [eax - 8], esi
mov eax, dword [edx + 3]
cmp al, 0x17
jne 0x47dc5a
lea esi, [esi]
lea edi, [edi]
mov edx, dword [edx + 7]
mov eax, dword [edx + 3]
cmp al, 0x17
je 0x47dc50
mov edi, eax
shr edi, 0xa
cmp edx, 0x4fa001
je 0x47dd60
movsx eax, al
lea ecx, [eax - 0x11]
sar ecx, 1
cmp ecx, 2
je 0x47dd55
lea eax, [edi*4 + 0x1e]
and eax, 0x3fffff0
call fcn.004ea990
lea esi, [esp + 0x27]
and esi, 0xfffffff0
test edi, edi
je 0x47dcbc
cmp ecx, 1
je 0x47ddd8
test ecx, ecx
jne 0x47dd40
mov dword [esp + 8], edi
lea eax, [edx + 7]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c124
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esp
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x4f99d8]
mov dword [esp + 4], eax
lea esi, [eax + edi*4]
mov dword [esp + 8], esi
mov eax, dword [0x4f99d8]
mov dword [esp], eax
call dword [edx + 0x1f]
lea edx, [eax + 0x1f]
mov ecx, eax
and edx, 0xfffffff0
mov eax, edx
call fcn.004ea990
mov eax, dword [ebp - 0x1c]
lea edi, [esp + 0x27]
and edi, 0xfffffff0
mov dword [ebp - 0xc], edi
lea ecx, [edi + ecx]
mov edx, dword [0x4f99d8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [0x4f99d8]
mov dword [esp], eax
call dword [edx + 0x23]
cmp dword [ebp - 0x10], esi
jne 0x47dd40
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x24]
je 0x47dd74
mov dword [esp], str.c:_usr_work_edrive_w32texsrc_clisp249_clisp_2.49_src_pathname.d
mov ecx, 0x19a3
mov dword [esp + 4], ecx
call fcn.00420a64
add edx, 7
mov dword [ebp - 0x1c], edx
jmp 0x47dcbf
mov dword [ebp - 0x1c], 0
test edi, edi
je 0x47dcbf
call fcn.0042a998
mov byte [eax], 0
mov dword [0x698fa0], ebx
mov dword [esp], edi
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
test eax, eax
jne 0x47ddaa
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x47ddaa
call sub.KERNEL32.dll_GetLastError
cmp eax, 3
je 0x47ddaa
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x35
jne 0x47de05
mov dword [0x698fa0], ebx
mov eax, dword [ebp - 0x14]
mov edx, edi
call fcn.00474cc0
test eax, eax
je 0x47de05
cmp byte [ebp - 0x15], 0
jne 0x47ddf0
xor eax, eax
sub ebx, 4
mov dword [0x698fa0], eax
mov esp, dword [ebp - 0x20]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
lea eax, [edx + 7]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0044c194
jmp 0x47dcbc
mov dword [0x698fa0], ebx
mov dword [esp], edi
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
test eax, eax
jne 0x47ddc4
mov eax, dword [ebx - 4]
xor edx, edx
mov dword [0x698fa0], edx
mov dword [esp], 0x503be1
mov dword [esp + 4], eax
call fcn.004396a0
mov eax, dword [ebx - 4]
call 0x47d884
mov eax, esi
call fcn.0047d6fc
nop