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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
mov eax, edi
mov dword [ebp - 0x208], edi
lea esi, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5f204e
sub eax, esi
lea esi, [eax + 1]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x210], eax
jne 0x5f2075
mov eax, 0x8007000e
jmp 0x5f22c8
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push edi
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x204], eax
jne 0x5f20ba
mov esi, 0x8876038f
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, esi
jmp 0x5f22c7
lea eax, [ebp - 0x200]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x5f22a4
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x424fd0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5f22a4
push ebx
push 0xc000100
push 2
push ebx
push ebx
mov edi, 0xc0000000
push edi
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x20c], eax
jne 0x5f213c
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x88760395
jmp 0x5f20a8
test byte [ebp + 0x10], 2
je 0x5f222e
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x424fd0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5f2190
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_DeleteFileA]
mov esi, 0x80004005
jmp 0x5f20a8
push ebx
push 0xc000100
push 2
push ebx
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x5f21c6
push dword [ebp - 0x20c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x204]
call esi
jmp 0x5f2126
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5f21f9
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 0x204]
push dword [ebp - 0x20c]
push edi
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.005f1eb9
mov esi, eax
jmp 0x5f21fb
xor esi, esi
cmp esi, ebx
jne 0x5f226e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x204]
call esi
push dword [ebp - 0x20c]
call esi
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x8007000e
jmp 0x5f20a8
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5f2260
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.005f1dd5
mov esi, eax
jmp 0x5f2262
xor esi, esi
cmp esi, ebx
jne 0x5f226e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5f2208
mov ecx, esi
call fcn.005f03e8
mov edi, eax
cmp edi, ebx
jge 0x5f2298
cmp esi, ebx
je 0x5f2288
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
jmp 0x5f22c8
mov eax, dword [ebp - 0x218]
mov dword [eax], esi
xor eax, eax
jmp 0x5f22c8
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
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.00666f65
leave
ret 0x10