Function at 0x1014469b
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 esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0x14]
mov ecx, edi
mov dword [ebp - 0x214], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101446cc
sub ecx, edx
lea esi, [ecx + 1]
push 0x100014bc
push esi
call fcn.10018970
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x101446f9
mov eax, 0x8007000e
jmp 0x1014492d
push ebx
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1014472e
mov esi, 0x8876038f
jmp 0x101448cd
lea eax, [ebp - 0x200]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1014490d
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 0x1014490d
push esi
push 0xc000100
push 2
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 0x101447a9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x88760395
jmp 0x101448cd
test byte [ebp + 0x10], 2
je 0x1014487b
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 0x101447f3
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_DeleteFileA]
mov esi, 0x80004005
jmp 0x101448cd
push esi
push 0xc000100
push 2
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 0x10144830
push dword [ebp - 0x204]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x10144798
push 0x100014bc
push 0x50
call fcn.10018970
pop ecx
pop ecx
test eax, eax
je 0x10144867
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.10144540
mov esi, eax
test esi, esi
jne 0x101448dc
push dword [ebp - 0x210]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x101448b6
push 0x100014bc
push 0x50
call fcn.10018970
pop ecx
pop ecx
test eax, eax
je 0x101448ac
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 0x204]
push ebx
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
call fcn.1014445c
mov esi, eax
test esi, esi
jne 0x101448dc
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_DeleteFileA]
mov esi, 0x8007000e
push dword [ebp - 0x208]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, esi
jmp 0x1014492b
mov ecx, esi
call fcn.10142864
mov ebx, eax
test ebx, ebx
jns 0x10144901
test esi, esi
je 0x101448f6
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
jmp 0x1014492c
mov eax, dword [ebp - 0x214]
mov dword [eax], esi
xor eax, eax
jmp 0x1014492c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x208]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, 0x80004005
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101becf5
leave
ret 0x10