Function at 0x140043560
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
mov rdi, rcx
lea rcx, [rsp + 0x50]
mov esi, r9d
mov r15, rdx
call fcn.14005818c
xor eax, eax
lea rcx, [rsp + 0x70]
mov rdx, r15
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.140062680
mov rbx, qword [rsp + 0x70]
mov eax, esi
lea rdx, [0x1400f4240]
lea rcx, [rsp + 0x48]
and eax, 0xfffffff7
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x68], eax
mov eax, esi
and eax, 0x200
neg eax
sbb r12d, r12d
and esi, 8
mov dword [rsp + 0x208], esi
and r12d, 9
call fcn.140062680
call fcn.1400187a0
lea rcx, [rsp + 0x90]
mov rdx, rdi
movzx r14d, ax
mov ebp, eax
mov r13d, r14d
shl r13d, 0x10
call fcn.140015884
lea rcx, [rsp + 0x90]
mov rdx, rdi
call fcn.1400160b4
lea rcx, [rsp + 0x90]
xor esi, esi
mov qword [rsp + 0xd0], rsi
call fcn.1400160b4
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.140062680
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov rcx, r15
mov qword [rsp + 0x78], rsi
call fcn.1400c1bc0
mov r11, qword [rsp + 0x78]
cmp r11, rsi
je 0x140043665
mov word [r11 - 2], si
mov r8, qword [rsp + 0x40]
lea rdx, [0x1400f4100]
lea rcx, [rsp + 0x90]
call fcn.140057738
lea rcx, [rsp + 0x90]
mov edx, r14d
call fcn.140056450
mov rax, qword [rsp + 0x50]
mov word [rsp + 0xd8], bp
xor word [rax], bp
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call fcn.140031ab4
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400436d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400438f2
lea rcx, [rsp + 0x48]
xor edx, edx
call fcn.140062700
mov rbx, qword [rsp + 0x50]
movzx edx, bp
mov rcx, rbx
call fcn.140018788
xor ebp, ebp
cmp eax, ebp
jg 0x140043702
mov rbx, rbp
jmp 0x1400438f2
add eax, 2
xor edx, edx
mov rcx, rbx
movsxd r8, eax
call fcn.14001883c
and esi, 2
movzx eax, r13w
or esi, eax
mov qword [rsp + 0x108], rbp
or esi, r13d
cmp dword [rsp + 0x208], ebp
je 0x140043738
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp rbx, rbp
jne 0x140043747
mov ebx, 1
jmp 0x1400438f2
movzx eax, byte [0x14010b218]
mov r9, qword [rsp + 0x200]
mov r8, qword [rsp + 0x210]
mov ecx, eax
test al, al
mov ebp, 1
cmovs ecx, ebp
lea rdx, [rsp + 0x50]
mov byte [0x14010b218], cl
mov ecx, r14d
call fcn.14003206c
mov r15d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x218]
sub rax, qword [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov r9d, r15d
sar rax, 1
mov ecx, r14d
mov dword [rsp + 0x20], eax
call fcn.1400243cc
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movzx r14d, word [rdi + 0x48]
cmp r12d, 9
jne 0x14004382f
mov ecx, dword [rdi + 0x88]
mov edx, dword [rsp + 0x118]
lea r8d, [rbp + 0x2d]
mov dword [rdi + 0x88], edx
mov dword [rsp + 0x118], ecx
lea rcx, [rsp + 0x180]
lea rdx, [rdi + 0x90]
call fcn.1400d4dd0
lea ebx, [rbp + 0x2d]
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0x120]
mov r8, rbx
call fcn.1400d4dd0
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x180]
mov r8, rbx
call fcn.1400d4dd0
movzx r11d, word [rsp + 0xd8]
mov word [rdi + 0x48], r11w
mov rdx, qword [rsp + 0x50]
and qword [rsp + 0x50], 0
mov r9, qword [rsp + 0x80]
mov eax, r12d
mov ecx, r12d
neg eax
lea rax, [rsp + 0x90]
sbb r8, r8
and r8, rax
and cl, bpl
mov rcx, rdi
cmovne r8, rdi
or esi, r15d
mov qword [rsp + 0x30], r8
mov r8, qword [rsp + 0x200]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
call fcn.1400a9a60
cmp r12d, 9
jne 0x1400438f0
mov ecx, dword [rsp + 0x118]
mov eax, dword [rdi + 0x88]
lea esi, [r12 + 0x25]
mov dword [rdi + 0x88], ecx
lea rdx, [rdi + 0x90]
lea rcx, [rsp + 0x180]
mov r8, rsi
mov dword [rsp + 0x118], eax
call fcn.1400d4dd0
lea rcx, [rdi + 0x90]
lea rdx, [rsp + 0x120]
mov r8, rsi
call fcn.1400d4dd0
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x180]
mov r8, rsi
call fcn.1400d4dd0
mov word [rdi + 0x48], r14w
xor ebx, ebx
lea rcx, [rsp + 0x40]
call fcn.14005041c
lea rcx, [rsp + 0x90]
xor edx, edx
call fcn.140043384
lea rcx, [rsp + 0x100]
call fcn.14005041c
lea rcx, [rsp + 0x48]
call fcn.14005041c
lea rcx, [rsp + 0x70]
call fcn.14005041c
lea rcx, [rsp + 0x50]
call fcn.14005041c
mov rax, rbx
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret