Function at 0x140011da0
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x590
mov r12d, edx
mov rax, qword [0x140024c20]
mov r13, rcx
xor rax, rsp
mov qword [rsp + 0x580], rax
cmp dword [0x140024c40], 0
jne 0x140011ddd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140024c40], eax
mov ecx, 0x104
lea rdx, [rsp + 0x238]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x140024c40]
test eax, eax
jbe 0x140011e24
mov qword [rsp + 0x20], r13
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x28], edx
mov edx, 0x104
lea r8, str._s_s__d.log
lea r9, [rsp + 0x238]
call qword [sym.imp.MSVCR100.dll__snprintf]
jmp 0x140011e5c
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x30]
mov edx, 0x104
lea r8, str.c:_temp_s__d.log
mov r9, r13
call qword [sym.imp.MSVCR100.dll__snprintf]
mov edx, 0x104
lea rcx, [rsp + 0x238]
lea r8, str.c:_temp
call qword [sym.imp.MSVCR100.dll__snprintf]
movabs r14, 0
mov eax, 0x140
mov qword [rsp + rax + 0x438], r14
mov qword [rsp + rax + 0x430], r14
mov qword [rsp + rax + 0x428], r14
mov qword [rsp + rax + 0x420], r14
sub rax, 0x20
jne 0x140011e6b
mov edx, 0x103
lea rcx, [rsp + 0x33c]
lea r8, [0x1400202fc]
lea r9, [rsp + 0x238]
mov qword [rsp + 0x20], r13
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x33c]
lea rdx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp r15, 0xffffffffffffffff
je 0x140012098
mov rcx, r15
lea rdx, [rsp + 0x440]
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140011f0c
mov rcx, r15
lea rdx, [rsp + 0x440]
inc ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140011ef5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebp, 0x3c
jbe 0x14001201a
mov eax, 0x140
mov qword [rsp + rax + 0x438], r14
mov qword [rsp + rax + 0x430], r14
mov qword [rsp + rax + 0x428], r14
mov qword [rsp + rax + 0x420], r14
sub rax, 0x20
jne 0x140011f23
lea rcx, [rsp + 0x33c]
lea rdx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
cmp r14, 0xffffffffffffffff
je 0x140012098
mov edx, 0x103
lea rcx, [rsp + 0x134]
lea r8, str._s_s
lea r9, [rsp + 0x238]
lea r15, [rsp + 0x46c]
mov qword [rsp + 0x20], r15
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x134]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r14
lea rdx, [rsp + 0x440]
dec ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140012011
cmp ebp, 0x3c
jbe 0x140012011
mov edx, 0x103
lea rcx, [rsp + 0x134]
lea r8, str._s_s
lea r9, [rsp + 0x238]
mov qword [rsp + 0x20], r15
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x134]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r14
lea rdx, [rsp + 0x440]
dec ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140011fc0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r14d, r14d
test r12d, r12d
je 0x140012036
lea rdx, [0x14001e89c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_fopen]
jmp 0x140012048
lea rdx, [0x14001f4a4]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_fopen]
mov rbp, rax
test r14d, r14d
je 0x140012074
test rbp, rbp
je 0x140012074
mov rcx, rbp
lea rdx, str.Purging_of_old_files__s_s_failed__Error__d
mov r9, r13
lea r8, [rsp + 0x238]
mov dword [rsp + 0x20], r14d
call fcn.140010c10
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.14001c150
mov rax, rbp
add rsp, 0x590
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
call qword [sym.imp.orauts.dll_GetLastError]
mov r14d, eax
jmp 0x14001201d