Function at 0x6da3f0
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x218], eax
mov eax, ebx
push edi
mov dword [ebp - 0x208], ebx
lea edx, [eax + 2]
xor esi, esi
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x6da42a
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x210], eax
jne 0x6da466
mov eax, 0x8007000e
jmp 0x6da6c0
lea ecx, [edi + edi]
push ecx
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x204], eax
jne 0x6da4ac
mov esi, 0x8876038f
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, esi
jmp 0x6da6bf
lea eax, [ebp - 0x200]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x6da69c
lea eax, [ebp - 0x108]
push eax
push esi
push 0x420d58
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x6da69c
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push 0xc000100
push 2
push esi
push esi
mov ebx, 0xc0000000
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x20c], eax
jne 0x6da534
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x88760395
jmp 0x6da49a
test byte [ebp + 0x10], 2
je 0x6da626
lea eax, [ebp - 0x108]
push eax
push esi
push 0x420d58
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x6da588
push dword [ebp - 0x20c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x204]
call esi
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x80004005
jmp 0x6da49a
push esi
push 0xc000100
push 2
push esi
push esi
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6da5be
push dword [ebp - 0x20c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x204]
call esi
jmp 0x6da51e
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x6da5f1
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 0x204]
push dword [ebp - 0x20c]
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.006da03e
mov edi, eax
jmp 0x6da5f3
xor edi, edi
cmp edi, esi
jne 0x6da666
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x204]
call esi
push dword [ebp - 0x20c]
call esi
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x8007000e
jmp 0x6da49a
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x6da658
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 0x20c]
push dword [ebp - 0x204]
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.006d9f58
mov edi, eax
jmp 0x6da65a
xor edi, edi
cmp edi, esi
jne 0x6da666
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6da600
mov ecx, edi
call fcn.006d84ac
mov ebx, eax
cmp ebx, esi
jge 0x6da690
cmp edi, esi
je 0x6da680
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x18]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
jmp 0x6da6c0
mov eax, dword [ebp - 0x218]
mov dword [eax], edi
xor eax, eax
jmp 0x6da6c0
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, 0x80004005
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0074f205
leave
ret 0x10