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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x60e890]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], eax
call sub.msvcrt.dll_wcslen
inc eax
lea esi, [eax + eax]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x20c], eax
jne 0x5b2230
mov eax, 0x8007000e
jmp 0x5b2340
mov ecx, esi
mov esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push 0x8000080
push 2
push ebx
push ebx
mov ecx, eax
push 0x40000000
push dword [ebp - 0x210]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x208], eax
jne 0x5b2274
mov esi, 0x8876038f
jmp 0x5b2332
lea eax, [ebp - 0x200]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x5b2315
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x422da4
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5b2315
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov ebx, 0xc000100
push ebx
push 2
push 0
push 0
mov edi, 0xc0000000
push edi
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x204], eax
jne 0x5b22e0
mov esi, 0x88760395
jmp 0x5b231a
test byte [ebp + 0x10], 2
je 0x5b23d5
lea eax, [ebp - 0x108]
push eax
push 0
push 0x422da4
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5b234f
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x80004005
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x20c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005f059d
leave
ret 0x10
xor eax, eax
push eax
push ebx
push 2
push eax
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b2379
push dword [ebp - 0x204]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5b22d9
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x5b23ac
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 0x208]
push dword [ebp - 0x204]
push edi
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
call fcn.005b1ee9
mov esi, eax
jmp 0x5b23ae
xor esi, esi
test esi, esi
jne 0x5b2415
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x208]
call esi
push dword [ebp - 0x204]
call esi
mov esi, 0x8007000e
jmp 0x5b2326
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x5b2407
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp - 0x204]
push dword [ebp - 0x208]
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
call fcn.005b1e03
mov esi, eax
jmp 0x5b2409
xor esi, esi
test esi, esi
jne 0x5b2415
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5b23bb
mov ecx, esi
call fcn.005b05c9
mov edi, eax
test edi, edi
jge 0x5b2442
test esi, esi
je 0x5b242f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x5b2340
mov eax, dword [ebp - 0x218]
mov dword [eax], esi
xor eax, eax
jmp 0x5b2340