Function at 0x14000e940
Capabilities:
Check for time delay via gettickcount
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push rdi
push r12
push r13
push r15
push rbp
sub rsp, 0xb30
mov r13, rdx
mov rax, qword [0x140024c20]
xor rax, rsp
mov qword [rsp + 0xb28], rax
cmp dword [0x140024c40], 0
jne 0x14000e979
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140024c40], eax
mov ecx, 0x104
lea rdx, [rsp + 0x694]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x140024c40]
test eax, eax
jbe 0x14000e9ca
lea r15, str.ssproiut
lea rcx, [rsp + 0x798]
mov qword [rsp + 0x20], r15
lea r8, str._s_s__d.log
mov dword [rsp + 0x28], edx
mov edx, 0x104
lea r9, [rsp + 0x694]
call qword [sym.imp.MSVCR100.dll__snprintf]
jmp 0x14000ea0c
lea r15, str.ssproiut
lea rcx, [rsp + 0x798]
mov dword [rsp + 0x20], edx
mov edx, 0x104
lea r8, str.c:_temp_s__d.log
mov r9, r15
call qword [sym.imp.MSVCR100.dll__snprintf]
mov edx, 0x104
lea rcx, [rsp + 0x694]
lea r8, str.c:_temp
call qword [sym.imp.MSVCR100.dll__snprintf]
movabs r12, 0
mov eax, 0x140
mov qword [rsp + rax + 0x998], r12
mov qword [rsp + rax + 0x990], r12
mov qword [rsp + rax + 0x988], r12
mov qword [rsp + rax + 0x980], r12
sub rax, 0x20
jne 0x14000ea1b
mov edx, 0x103
lea rcx, [rsp + 0x89c]
lea r8, [0x1400202fc]
lea r9, [rsp + 0x694]
mov qword [rsp + 0x20], r15
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x89c]
lea rdx, [rsp + 0x9a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x14000eca1
mov rcx, rdi
lea rdx, [rsp + 0x9a0]
mov ebp, 1
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14000eabc
mov rcx, rdi
lea rdx, [rsp + 0x9a0]
inc ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000eaa5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebp, 0x3c
jbe 0x14000ebca
mov eax, 0x140
mov qword [rsp + rax + 0x998], r12
mov qword [rsp + rax + 0x990], r12
mov qword [rsp + rax + 0x988], r12
mov qword [rsp + rax + 0x980], r12
sub rax, 0x20
jne 0x14000ead3
lea rcx, [rsp + 0x89c]
lea rdx, [rsp + 0x9a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x14000eca1
mov edx, 0x103
lea rcx, [rsp + 0x590]
lea r8, str._s_s
lea r9, [rsp + 0x694]
lea r12, [rsp + 0x9cc]
mov qword [rsp + 0x20], r12
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rdi
lea rdx, [rsp + 0x9a0]
dec ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14000ebc1
cmp ebp, 0x3c
jbe 0x14000ebc1
mov edx, 0x103
lea rcx, [rsp + 0x590]
lea r8, str._s_s
lea r9, [rsp + 0x694]
mov qword [rsp + 0x20], r12
call qword [sym.imp.MSVCR100.dll__snprintf]
lea rcx, [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rdi
lea rdx, [rsp + 0x9a0]
dec ebp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000eb70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor ebp, ebp
lea rdx, [0x14001e89c]
lea rcx, [rsp + 0x798]
call qword [sym.imp.MSVCR100.dll_fopen]
mov r12, rax
test ebp, ebp
je 0x14000ec0b
test r12, r12
je 0x14000ec0b
mov rcx, r12
lea rdx, str.Purging_of_old_files__s_s_failed__Error__d
mov r9, r15
lea r8, [rsp + 0x694]
mov dword [rsp + 0x20], ebp
call fcn.140010c10
mov rcx, r12
lea rdx, str.Before_calling_SendMessage_to_update_env
call fcn.140010c10
mov ecx, 0xffff
mov edx, 0x1a
xor r8d, r8d
lea r9, str.Environment
mov dword [rsp + 0x20], 2
lea rax, [rsp + 0xb20]
mov dword [rsp + 0x28], 0x1388
mov qword [rsp + 0x30], rax
call qword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov rbp, rax
mov rcx, r12
lea rdx, str.After_calling_SendMessage_to_update_env
call fcn.140010c10
test rbp, rbp
je 0x14000ecae
mov dword [r13 + 0x100], 0
test r12, r12
je 0x14000ec81
mov rcx, r12
call qword [sym.imp.MSVCR100.dll_fclose]
mov rcx, qword [rsp + 0xb28]
xor rcx, rsp
call fcn.14001c150
add rsp, 0xb30
pop rbp
pop r15
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.orauts.dll_GetLastError]
mov ebp, eax
jmp 0x14000ebcc
mov rcx, r12
lea rdx, str.Not_successful_in_updating_env
call fcn.140010c10
call qword [sym.imp.orauts.dll_GetLastError]
xor edi, edi
mov ecx, 0x1100
xor edx, edx
mov r8d, eax
mov r9d, 0x400
lea rbp, [rsp + 0xb18]
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x28], 0
mov qword [rsp + 0xb18], rdi
mov dword [r13 + 0x104], eax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rbp, qword [rsp + 0xb18]
test rbp, rbp
jne 0x14000ed21
mov dword [r13 + 0x100], 1
jmp 0x14000ec73
cmp dword [0x140024c40], 0
jne 0x14000ed36
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 0x14000ed7a
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x144]
mov dword [rsp + 0x28], edx
lea r8, str._s_s__d.log
mov edx, 0x104
lea r9, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__snprintf]
jmp 0x14000edb2
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x144]
lea r8, str.c:_temp_s__d.log
mov edx, 0x104
mov r9, r15
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
mov edx, 0x103
lea rcx, [rsp + 0x34c]
lea r8, [0x1400202fc]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
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 0x14000f100
mov dword [rsp + 0xb10], 1
mov rcx, rdi
lea rdx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14000ee89
mov qword [rsp + 0xae0], rbx
mov qword [rsp + 0xae8], rsi
lea rsi, [rsp + 0x450]
mov qword [rsp + 0xaf0], r14
mov ebx, dword [rsp + 0xb10]
mov rcx, rdi
mov rdx, rsi
inc ebx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000ee58
mov dword [rsp + 0xb10], ebx
mov rbx, qword [rsp + 0xae0]
mov rsi, qword [rsp + 0xae8]
mov r14, qword [rsp + 0xaf0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [rsp + 0xb10], 0x3c
jbe 0x14000f011
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 + 0xb08], rax
cmp qword [rsp + 0xb08], 0xffffffffffffffff
je 0x14000f100
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 + 0xb10]
lea rdx, [rsp + 0x450]
mov rcx, qword [rsp + 0xb08]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14000f003
mov qword [rsp + 0xb00], r12
lea r15, [rsp + 0x47c]
mov qword [rsp + 0xae8], rsi
mov qword [rsp + 0xaf8], r13
lea r13, [rsp + 0x248]
mov qword [rsp + 0xae0], rbx
lea rbx, [rsp + 0x40]
mov qword [rsp + 0xaf0], r14
lea r14, [rsp + 0x450]
mov esi, dword [rsp + 0xb10]
mov r12, qword [rsp + 0xb08]
cmp esi, 0x3c
jbe 0x14000efd4
mov rcx, r13
mov edx, 0x103
mov r8, rdi
mov r9, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.MSVCR100.dll__snprintf]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, r12
mov rdx, r14
dec esi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000ef9b
mov r12, qword [rsp + 0xb00]
lea r15, str.ssproiut
mov r13, qword [rsp + 0xaf8]
mov rbx, qword [rsp + 0xae0]
mov rsi, qword [rsp + 0xae8]
mov r14, qword [rsp + 0xaf0]
mov rcx, qword [rsp + 0xb08]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0xb00], 0
lea rdx, [0x14001e89c]
lea rcx, [rsp + 0x144]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rsp + 0xaf8], rax
cmp dword [rsp + 0xb00], 0
je 0x14000f077
mov rax, qword [rsp + 0xaf8]
test rax, rax
je 0x14000f077
mov eax, dword [rsp + 0xb00]
lea rdx, str.Purging_of_old_files__s_s_failed__Error__d
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x40]
mov r9, r15
mov rcx, qword [rsp + 0xaf8]
call fcn.140010c10
mov rcx, rbp
xor eax, eax
movzx edx, byte [rcx + rax]
test edx, edx
je 0x14000f094
movzx edx, byte [rcx + rax + 1]
add rax, 2
test edx, edx
jne 0x14000f07c
dec rax
mov rdi, rax
mov ecx, 1
lea r15, [rdi + 1]
mov rdx, r15
call qword [sym.imp.MSVCR100.dll_calloc]
mov qword [r13 + 0x158], rax
test rax, rax
je 0x14000f122
mov rcx, rax
mov rdx, rbp
mov r8, r15
call qword [sym.imp.MSVCR100.dll_strncpy]
movsxd rax, dword [r13 + 4]
mov qword [r13 + 0x20], r15
lea rdx, [rdi + rax + 1]
mov dword [r13 + 4], edx
mov rax, qword [rsp + 0xaf8]
test rax, rax
je 0x14000f112
mov rcx, qword [rsp + 0xb18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [r13 + 0x100], 1
jmp 0x14000ec73
call qword [sym.imp.orauts.dll_GetLastError]
mov dword [rsp + 0xb00], eax
jmp 0x14000f01c
mov rcx, qword [rsp + 0xaf8]
call qword [sym.imp.MSVCR100.dll_fclose]
jmp 0x14000f0e2
mov qword [rsp + 0x20], r15
lea rdx, str._s:_d_allocation_of__d_bytes_for_response_failed
lea r8, str.ssproiut.c
mov r9d, 0x42a
mov rcx, qword [rsp + 0xaf8]
call fcn.140010c10
mov dword [r13 + 0x100], 1
jmp 0x14000f0d5