Function at 0x140012f70
Capabilities:
Check if file exists
Create directory
Delete file
Enumerate files on windows
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6d8]
sub rsp, 0x7d8
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x140024018]
xor rax, rsp
mov qword [rbp + 0x6c0], rax
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
mov r13, 0xffffffffffffffff
mov r8, r13
nop
inc r8
cmp word [rdx + r8*2], bx
jne 0x140012fc0
add rcx, 0x68
call fcn.1400039f0
mov r8, r13
inc r8
cmp word [rdi + r8*2], bx
jne 0x140012fd6
lea rcx, [r15 + 0x88]
mov rdx, rdi
call fcn.1400039f0
mov r8, r13
inc r8
cmp word [r14 + r8*2], bx
jne 0x140012ff2
lea rcx, [r15 + 0xa8]
mov rdx, r14
call fcn.1400039f0
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001314c
mov r14, r13
nop
lea r14, [r14 + 1]
cmp word [rsi + r14*2], bx
jne 0x140013020
lea rdi, [r14 + 1]
mov eax, 2
mul rdi
cmovo rax, r13
mov rcx, rax
call fcn.14001670c
mov r12, rax
lea r15, [r14 + 0xa]
mov eax, 2
mul r15
cmovo rax, r13
mov rcx, rax
call fcn.14001670c
mov r14, rax
mov r8, rdi
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov r8, r15
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov qword [rsp + 0x40], rbx
mov rcx, r12
lea r8, [rsp + 0x40]
lea rdx, [0x14001a504]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x14001311a
mov r8, rax
mov rdx, r15
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x14001311f
lea r8, [0x14001a504]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x14001311f
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1400130fc
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400130fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140013100
xor ecx, ecx
jmp 0x140013092
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, r14
lea rcx, str._Error_:_CreateMutilFolder_CreateDirectory__s__fail_errorcode___ld__n
call fcn.1400072f0
jmp 0x14001311f
mov ebx, 1
test r12, r12
je 0x140013131
mov edx, 2
mov rcx, r12
call fcn.140016704
test r14, r14
je 0x140013980
mov edx, 2
mov rcx, r14
call fcn.140016704
jmp 0x140013980
xor eax, eax
mov qword [rbp + 0x280], rax
mov qword [rbp + 0x288], rax
mov dword [rbp + 0x290], eax
mov word [rbp + 0x294], ax
mov r15, r13
nop dword [rax]
inc r15
cmp word [rdi + r15*2], ax
jne 0x140013170
mov rax, r13
nop dword [rax]
lea rax, [rax + 1]
cmp word [r14 + rax*2], bx
jne 0x140013180
lea r13, [rax + 0xb]
add r13, r15
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2a0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub qword [rsp + 0x40], 0x7e900
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rbp]
lea r8, str._Y__m__d
mov edx, 0xb
lea rcx, [rbp + 0x280]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_wcsftime]
mov qword [rsp + 0x20], r14
mov r9, rdi
mov r8, rsi
lea rdx, str._s_s__s
lea rcx, [rbp + 0x2a0]
call fcn.140007fe0
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov ecx, 0x10
call fcn.140016414
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
mov qword [rax], rcx
cmp r12, 0xffffffffffffffff
je 0x140013765
nop dword [rax]
test byte [rbp + 0x30], 0x10
jne 0x140013747
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x4b0]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x5c]
mov r8, rsi
lea rdx, str._s_s
lea rcx, [rbp + 0x4b0]
call fcn.140007fe0
mov edx, 0x104
lea rcx, [rbp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
cmp rax, r13
jne 0x140013747
lea rcx, [rbp + 0x5e]
lea rcx, [rcx + r15*2]
mov r8d, 0xa
lea rdx, [rbp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov r8, 0xffffffffffffffff
test eax, eax
lea rax, [rbp + 0x5c]
jns 0x1400134e2
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140013300
lea rdx, [rbp + 0x5c]
lea rcx, [rbp - 0x40]
call fcn.1400039f0
nop
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], 0
jne 0x140013330
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.1400039f0
nop
mov r8d, 1
lea rdx, [0x14001a504]
lea rcx, [rbp - 0x60]
call fcn.140007f60
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x20]
call fcn.140008040
cmp qword [rax + 0x18], 8
jb 0x14001339f
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400133e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400133e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137bd
call fcn.140016704
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], 7
mov word [rbp - 0x20], bx
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140013438
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013433
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137c4
call fcn.140016704
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140013488
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013483
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137cb
call fcn.140016704
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140013747
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013742
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013742
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
inc r8
cmp word [rax + r8*2], 0
jne 0x1400134e2
lea rdx, [rbp + 0x5c]
lea rcx, [rbp - 0x40]
call fcn.1400039f0
nop
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], 0
jne 0x140013512
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400039f0
nop
mov r8d, 1
lea rdx, [0x14001a504]
lea rcx, [rbp - 0x80]
call fcn.140007f60
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140008040
mov rdi, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rdx + 1]
mov rax, qword [rsp + 0x58]
cmp rax, rcx
ja 0x1400135a6
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140015660
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x58]
lea rcx, [rax - 1]
mov rax, qword [rsp + 0x60]
and rax, rcx
mov qword [rsp + 0x60], rax
add rax, rdx
and rcx, rax
lea r14, [rcx*8]
mov rax, qword [rsp + 0x50]
cmp qword [r14 + rax], 0
jne 0x1400135e9
mov ecx, 0x20
call fcn.140016414
mov rcx, qword [rsp + 0x50]
mov qword [r14 + rcx], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [r14 + rax]
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
inc qword [rsp + 0x68]
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140013657
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013652
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137d2
call fcn.140016704
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], 7
mov word [rbp - 0x20], bx
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400136a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400136a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137d9
call fcn.140016704
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400136f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400136f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137e0
call fcn.140016704
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140013747
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013742
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400137e7
call fcn.140016704
lea rdx, [rbp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013270
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, rbx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140013976
movabs r12, 0x7ffffffffffffffe
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rax, rbx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400137a0
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400137a0
mov rax, qword [rcx]
dec rdx
test rax, rax
je 0x1400137ee
mov rcx, qword [rax]
test rcx, rcx
je 0x1400137ee
mov rax, qword [rcx]
test rax, rax
je 0x1400137ee
mov rax, qword [rax]
jmp 0x1400137f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, rbx
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, rdx
mov rax, qword [rax + 8]
mov rsi, qword [rax + rcx*8]
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
mov r14, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x140013819
mov rsi, qword [rsi]
lea rcx, [rbp - 0x80]
cmp r14, 8
jae 0x140013834
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x68], 7
jmp 0x140013873
mov rdi, r14
or rdi, 7
cmp rdi, r12
cmova rdi, r12
lea rdx, [rdi + 1]
call fcn.140003ba0
mov qword [rbp - 0x80], rax
lea r8, [r14*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x68], rdi
lea rcx, [rbp - 0x80]
cmp rdi, 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rbp - 0x70], r14
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400138e7
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400138ba
add r15, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r15, qword [rsp + 0x70]
je 0x1400138e7
cmp r15, 0x6400000
jl 0x1400138e7
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
dec rax
add rdx, rax
mov rcx, qword [rsp + 0x58]
dec rcx
and rcx, rdx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + rcx*8]
call fcn.140001e80
mov rcx, qword [rsp + 0x68]
sub rcx, 1
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x60]
cmove rax, rbx
mov qword [rsp + 0x60], rax
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14001396d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013963
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400139a5
call fcn.140016704
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140013780
lea rcx, [rsp + 0x48]
call fcn.140012bf0
mov eax, ebx
mov rcx, qword [rbp + 0x6c0]
xor rcx, rsp
call fcn.1400163f0
add rsp, 0x7d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3