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

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x5e0
mov r15, rcx
mov r8d, edx
xor r11d, r11d
mov rax, qword [0x140024c20]
mov ecx, 0x1100
xor rax, rsp
xor edx, edx
mov qword [rsp + 0x5d8], rax
mov r9d, 0x400
lea r10, [rsp + 0x5d0]
mov dword [r15 + 0x104], r8d
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x5d0], r11
mov qword [rsp + 0x30], r11
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r14, qword [rsp + 0x5d0]
test r14, r14
jne 0x14001572d
mov rcx, qword [rsp + 0x5d8]
xor rcx, rsp
call fcn.14001c150
add rsp, 0x5e0
pop r15
pop r14
pop rdi
ret
cmp dword [0x140024c40], 0
jne 0x140015742
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140024c40], eax
mov ecx, 0x104
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x140024c40]
test eax, eax
jbe 0x14001578d
lea rax, str.ssproiut
lea rcx, [rsp + 0x144]
mov qword [rsp + 0x20], rax
lea r8, str._s_s__d.log
mov dword [rsp + 0x28], edx
mov edx, 0x104
lea r9, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__snprintf]
jmp 0x1400157c9
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x144]
lea r8, str.c:_temp_s__d.log
lea r9, str.ssproiut
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll__snprintf]
lea r8, str.c:_temp
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll__snprintf]
movabs rax, 0
lea rdi, [rsp + 0x450]
push 0x28
pop rcx
rep stosq qword [rdi], rax
lea r8, [0x1400202fc]
lea rcx, [rsp + 0x34c]
mov edx, 0x103
lea r9, [rsp + 0x40]
lea rax, str.ssproiut
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x34c]
lea rdx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x140015b38
mov dword [rsp + 0x5c8], 1
mov rcx, rdi
lea rdx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1400158c7
mov qword [rsp + 0x590], rbx
mov qword [rsp + 0x598], rsi
mov qword [rsp + 0x5a0], r12
mov qword [rsp + 0x5a8], r13
mov qword [rsp + 0x5b0], rbp
lea rbp, [rsp + 0x450]
mov ebx, dword [rsp + 0x5c8]
mov rcx, rdi
mov rdx, rbp
inc ebx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140015886
mov dword [rsp + 0x5c8], ebx
mov rbx, qword [rsp + 0x590]
mov rsi, qword [rsp + 0x598]
mov r12, qword [rsp + 0x5a0]
mov r13, qword [rsp + 0x5a8]
mov rbp, qword [rsp + 0x5b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [rsp + 0x5c8], 0x3c
jbe 0x140015a58
movabs rax, 0
lea rdi, [rsp + 0x450]
push 0x28
pop rcx
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x34c]
lea rdx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x5c0], rax
cmp qword [rsp + 0x5c0], 0xffffffffffffffff
je 0x140015b38
lea rdi, str._s_s
lea rcx, [rsp + 0x248]
mov edx, 0x103
mov r8, rdi
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x47c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x248]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
dec dword [rsp + 0x5c8]
lea rdx, [rsp + 0x450]
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140015a4a
mov qword [rsp + 0x5a0], r12
mov qword [rsp + 0x5b0], rbp
mov qword [rsp + 0x5b8], r15
lea r15, [rsp + 0x248]
mov qword [rsp + 0x590], rbx
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x598], rsi
lea rsi, [rsp + 0x450]
mov qword [rsp + 0x5a8], r13
lea r13, [rsp + 0x47c]
mov ebp, dword [rsp + 0x5c8]
mov r12, qword [rsp + 0x5c0]
cmp ebp, 0x3c
jbe 0x140015a1a
mov rcx, r15
mov edx, 0x103
mov r8, rdi
mov r9, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.MSVCR100.dll__snprintf]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r12
mov rdx, rsi
dec ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400159e1
mov r15, qword [rsp + 0x5b8]
mov rbx, qword [rsp + 0x590]
mov rsi, qword [rsp + 0x598]
mov r12, qword [rsp + 0x5a0]
mov r13, qword [rsp + 0x5a8]
mov rbp, qword [rsp + 0x5b0]
mov rcx, qword [rsp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
lea rdx, [0x14001e89c]
lea rcx, [rsp + 0x144]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rsp + 0x5b8], rax
test edi, edi
je 0x140015aac
mov rax, qword [rsp + 0x5b8]
test rax, rax
je 0x140015aac
mov dword [rsp + 0x20], edi
lea rdx, str.Purging_of_old_files__s_s_failed__Error__d
lea r9, str.ssproiut
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x5b8]
call fcn.140010c10
mov rcx, r14
xor eax, eax
movzx edx, byte [rcx + rax]
test edx, edx
je 0x140015ac9
movzx edx, byte [rcx + rax + 1]
add rax, 2
test edx, edx
jne 0x140015ab1
dec rax
mov qword [rsp + 0x5c0], rax
lea rdi, [rax + 1]
mov ecx, 1
mov rdx, rdi
call qword [sym.imp.MSVCR100.dll_calloc]
mov qword [r15 + 0x158], rax
test rax, rax
je 0x140015b55
mov rcx, rax
mov rdx, r14
mov r8, rdi
call qword [sym.imp.MSVCR100.dll_strncpy]
movsxd rdx, dword [r15 + 4]
mov rax, qword [rsp + 0x5c0]
mov qword [r15 + 0x20], rdi
lea rcx, [rax + rdx + 1]
mov dword [r15 + 4], ecx
mov rax, qword [rsp + 0x5b8]
test rax, rax
je 0x140015b45
mov rcx, qword [rsp + 0x5d0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x140015710
call qword [sym.imp.orauts.dll_GetLastError]
mov edi, eax
jmp 0x140015a5a
mov rcx, qword [rsp + 0x5b8]
call qword [sym.imp.MSVCR100.dll_fclose]
jmp 0x140015b24
mov qword [rsp + 0x20], rdi
lea rdx, str._s:_d_allocation_of__d_bytes_for_response_failed
lea r8, str.ssproiut.c
mov r9d, 0x42a
mov rcx, qword [rsp + 0x5b8]
call fcn.140010c10
mov dword [r15 + 0x100], 1
jmp 0x140015b17