Function at 0x5f22de
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
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 0x5f2318
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 0x5f2354
mov eax, 0x8007000e
jmp 0x5f25ae
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 0x5f239a
mov esi, 0x8876038f
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, esi
jmp 0x5f25ad
lea eax, [ebp - 0x200]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x5f258a
lea eax, [ebp - 0x108]
push eax
push esi
push 0x424fd0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5f258a
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 0x5f2422
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 0x5f2388
test byte [ebp + 0x10], 2
je 0x5f2514
lea eax, [ebp - 0x108]
push eax
push esi
push 0x424fd0
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5f2476
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 0x5f2388
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 0x5f24ac
push dword [ebp - 0x20c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x204]
call esi
jmp 0x5f240c
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5f24df
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.005f1f2c
mov edi, eax
jmp 0x5f24e1
xor edi, edi
cmp edi, esi
jne 0x5f2554
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 0x5f2388
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5f2546
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.005f1e46
mov edi, eax
jmp 0x5f2548
xor edi, edi
cmp edi, esi
jne 0x5f2554
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5f24ee
mov ecx, edi
call fcn.005f03e8
mov ebx, eax
cmp ebx, esi
jge 0x5f257e
cmp edi, esi
je 0x5f256e
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 0x5f25ae
mov eax, dword [ebp - 0x218]
mov dword [eax], edi
xor eax, eax
jmp 0x5f25ae
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.00666f65
leave
ret 0x10