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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101d9590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0x14]
mov ecx, edi
push 2
mov dword [ebp - 0x214], eax
lea edx, [ecx + 2]
pop ebx
xor esi, esi
mov ax, word [ecx]
add ecx, ebx
cmp ax, si
jne 0x10144979
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
push 0x100014bc
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10018970
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x208], ecx
test ecx, ecx
jne 0x101449bd
mov eax, 0x8007000e
jmp 0x10144bf6
lea eax, [ebx + ebx]
push eax
push edi
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
push 0x8000080
push 2
pop eax
push eax
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101449f4
mov esi, 0x8876038f
jmp 0x10144b97
lea eax, [ebp - 0x200]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10144bd7
lea eax, [ebp - 0x108]
push eax
push esi
push 0x1001116c
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x10144bd7
push esi
push 0xc000100
push 2
pop eax
push eax
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x204], eax
cmp eax, 0xffffffff
jne 0x10144a71
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x88760395
jmp 0x10144b97
test byte [ebp + 0x10], 2
je 0x10144b45
lea eax, [ebp - 0x108]
push eax
push esi
push 0x1001116c
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10144abb
push dword [ebp - 0x204]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x80004005
jmp 0x10144b97
push esi
push 0xc000100
push 2
pop eax
push eax
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp eax, 0xffffffff
jne 0x10144afa
push dword [ebp - 0x204]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x10144a60
push 0x100014bc
push 0x50
call fcn.10018970
pop ecx
pop ecx
test eax, eax
je 0x10144b31
push dword [ebp + 0x10]
mov ecx, eax
push ebx
push dword [ebp - 0x204]
push dword [ebp - 0x210]
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
call fcn.101445b3
mov esi, eax
test esi, esi
jne 0x10144ba6
push dword [ebp - 0x210]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x10144b80
push 0x100014bc
push 0x50
call fcn.10018970
pop ecx
pop ecx
test eax, eax
je 0x10144b76
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 0x204]
push ebx
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
call fcn.101444cd
mov esi, eax
test esi, esi
jne 0x10144ba6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x204]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x8007000e
push dword [ebp - 0x208]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, esi
jmp 0x10144bf5
mov ecx, esi
call fcn.10142864
mov ebx, eax
test ebx, ebx
jns 0x10144bcb
test esi, esi
je 0x10144bc0
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
jmp 0x10144bf6
mov eax, dword [ebp - 0x214]
mov dword [eax], esi
xor eax, eax
jmp 0x10144bf6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x208]
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.101becf5
leave
ret 0x10