Function at 0x14003d100
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5d8
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
xor r15d, r15d
movzx r13d, cx
mov rdi, r8
mov rsi, rdx
lea rcx, [rsp + 0x38]
mov r8d, 0xe8
xor edx, edx
mov r12, r9
mov r14, r15
lea ebp, [r15 + 1]
mov dword [rsp + 0x30], r15d
call sub.msvcrt.dll_memset
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14003d186
test byte [rcx + 0x1c], 4
je 0x14003d186
cmp byte [rcx + 0x19], 5
jb 0x14003d186
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x21]
lea r8, [0x140009808]
call fcn.14000ffa8
mov r8d, dword [rsi + 0x10]
mov rcx, qword [rsi + 8]
lea rbx, [0x140009df8]
cmp rdi, r15
lea r9, [rsp + 0x3b0]
mov word [rsp + 0x1a0], r15w
cmovne rbx, rdi
xor edx, edx
mov dword [rsp + 0x20], 0x104
call fcn.1400790d0
cmp eax, r15d
jne 0x14003d200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
cmp rcx, r12
je 0x14003d338
test byte [rcx + 0x1c], 4
je 0x14003d338
mov ebx, 2
cmp byte [rcx + 0x19], bl
jb 0x14003d338
lea edx, [rbx + 0x21]
jmp 0x14003d325
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14003ce5c
call fcn.14003cd84
mov r14, rax
cmp rax, r15
jne 0x14003d259
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
cmp rcx, r12
je 0x14003d338
test byte [rcx + 0x1c], 4
je 0x14003d338
mov ebx, 2
cmp byte [rcx + 0x19], bl
jb 0x14003d338
lea edx, [rbx + 0x22]
jmp 0x14003d325
lea r9, [rsp + 0x120]
lea r8, [rsp + 0x3b0]
xor edx, edx
xor ecx, ecx
call fcn.140084810
mov edi, eax
cmp eax, r15d
je 0x14003d2c5
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
cmp rcx, r12
je 0x14003d338
test byte [rcx + 0x1c], 4
je 0x14003d338
mov ebx, 2
cmp byte [rcx + 0x19], bl
jb 0x14003d338
mov r9, qword [rsi + 8]
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x23]
lea r8, [0x140009808]
mov dword [rsp + 0x20], eax
call fcn.140011a18
jmp 0x14003d338
mov rax, qword [0x1400a40c8]
lea rcx, [rsp + 0x1a0]
mov dword [rsp + 0x28], 0x104
mov rdx, qword [rax + 0x60]
mov qword [rsp + 0x20], rcx
mov r9, rbx
xor r8d, r8d
xor ecx, ecx
call fcn.140078d40
cmp rax, r15
jne 0x14003d340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
cmp rcx, r12
je 0x14003d338
test byte [rcx + 0x1c], 4
je 0x14003d338
mov ebx, 2
cmp byte [rcx + 0x19], bl
jb 0x14003d338
lea edx, [rbx + 0x24]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009808]
mov r9d, eax
call fcn.1400100e0
mov esi, r15d
jmp 0x14003d4d0
mov ebx, 2
cmp word [rsp + 0x134], bx
jne 0x14003d351
mov ebp, ebx
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x3b0]
mov qword [rsp + 0x28], rax
movzx r9d, bp
mov r8, r14
mov word [rsp + 0x20], r13w
call fcn.1400858b0
mov edi, eax
cmp eax, r15d
je 0x14003d410
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
cmp rcx, r12
je 0x14003d3c3
test byte [rcx + 0x1c], 4
je 0x14003d3c3
cmp byte [rcx + 0x19], bl
jb 0x14003d3c3
mov r9, qword [rsi + 8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009808]
mov edx, 0x27
mov dword [rsp + 0x20], eax
call fcn.140011a18
lea rcx, [rsp + 0x1a0]
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r15d
jne 0x14003d4d0
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x14003d4d0
test byte [rax + 0x1c], 4
je 0x14003d4d0
cmp byte [rax + 0x19], bl
jb 0x14003d4d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x28
jmp 0x14003d4a6
lea r8, [rsp + 0x1a0]
mov edx, 0x104
mov rcx, r12
call fcn.14001191c
cmp eax, r15d
mov ebp, eax
jge 0x14003d4cb
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
cmp rcx, r12
je 0x14003d46b
test byte [rcx + 0x1c], 4
je 0x14003d46b
cmp byte [rcx + 0x19], bl
jb 0x14003d46b
mov r9, qword [rsi + 8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140009808]
mov edx, 0x29
mov dword [rsp + 0x20], eax
call fcn.140011a18
lea rcx, [rsp + 0x1a0]
mov esi, r15d
movzx edi, bp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r15d
jne 0x14003d4d0
mov rax, qword [str.P5_n_]
cmp rax, r12
je 0x14003d4d0
test byte [rax + 0x1c], 4
je 0x14003d4d0
cmp byte [rax + 0x19], bl
jb 0x14003d4d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x2a
mov rcx, qword [str.P5_n_]
lea r9, [rsp + 0x1a0]
lea r8, [0x140009808]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.140011a18
jmp 0x14003d4d0
mov esi, 1
mov rcx, r14
call fcn.140076afc
lea rbx, [rsp + 0x38]
mov ebp, 0x1d
mov rcx, qword [rbx]
call fcn.140076afc
add rbx, 8
sub rbp, 1
jne 0x14003d4e2
cmp esi, r15d
jne 0x14003d508
lea ecx, [rbp + 0x1f]
cmp edi, r15d
cmovne ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x5d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret