Function at 0x140037ac0
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
and qword [rax + 0x10], 0
mov rbp, rcx
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
lea r13, [0x140089898]
cmp rcx, r12
je 0x140037b17
test byte [rcx + 0x1c], 4
je 0x140037b17
cmp byte [rcx + 0x19], 5
jb 0x140037b17
mov rcx, qword [rcx + 0x10]
mov edx, 0x42
mov r8, r13
call fcn.140001024
lea rdx, [rsp + 0x58]
mov rcx, rbp
call fcn.140036b74
mov rdi, qword [rsp + 0x58]
test eax, eax
jne 0x140037b92
mov rax, qword [0x14009b028]
cmp rax, r12
je 0x140037b6c
test byte [rax + 0x1c], 4
je 0x140037b6c
cmp byte [rax + 0x19], 2
jb 0x140037b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x43
mov rcx, qword [0x14009b028]
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rcx, rdi
call fcn.1400370e4
test eax, eax
je 0x140037b6c
mov rax, qword [0x14009f170]
lea r10, [0x14009f170]
cmp rax, r10
je 0x140037bc9
mov rcx, qword [rdi + 0x220]
mov rdx, rax
mov rax, qword [rax]
cmp qword [rdx + 0x10], rcx
je 0x140037bcb
cmp rax, r10
jne 0x140037bb8
xor edx, edx
test rdx, rdx
jne 0x140037c70
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140037c05
test byte [rcx + 0x1c], 4
je 0x140037c05
cmp byte [rcx + 0x19], 2
jb 0x140037c05
mov rax, qword [rdi + 8]
mov r9, qword [rdi + 0x220]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140035fe8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140037b6c
mov rax, qword [0x14009b028]
cmp rax, r12
je 0x140037b6c
test byte [rax + 0x1c], 4
je 0x140037b6c
cmp byte [rax + 0x19], 2
jb 0x140037b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x45
mov rcx, qword [0x14009b028]
mov r9, rbp
mov r8, r13
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
mov eax, dword [rdi + 0x28]
mov esi, 1
cmp eax, 2
jne 0x140037c8c
cmp dword [rdi + 0x228], 0
lea ecx, [rsi + 0x3f]
mov eax, esi
cmovne eax, ecx
lea r8, [rdi + 0x198]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rcx, r10
call fcn.14003b514
mov rbx, rax
test rax, rax
jne 0x140037ce2
mov rax, qword [0x14009b028]
cmp rax, r12
je 0x140037b6c
test byte [rax + 0x1c], 4
je 0x140037b6c
cmp byte [rax + 0x19], 2
jb 0x140037b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea edx, [rbx + 0x46]
jmp 0x140037c51
mov eax, dword [rdi + 0x670]
lea r8, [rdi + 0x470]
lea rcx, [rbx + 0x498]
mov dword [rbx + 0x698], eax
mov edx, 0x100
call fcn.140002b44
test eax, eax
jns 0x140037d47
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140037b6c
test byte [rcx + 0x1c], 4
je 0x140037b6c
cmp byte [rcx + 0x19], 2
jb 0x140037b6c
mov edx, 0x47
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001050
jmp 0x140037b6c
lea r8, [rdi + 0x22c]
mov edx, 0x100
lea rcx, [rbx + 0x288]
call fcn.140002b44
test eax, eax
jns 0x140037d8e
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140037b6c
test byte [rcx + 0x1c], 4
je 0x140037b6c
cmp byte [rcx + 0x19], 2
jb 0x140037b6c
mov edx, 0x48
jmp 0x140037d33
mov rcx, rbp
call fcn.140067e3c
mov qword [rbx + 0x38], rax
test rbp, rbp
je 0x140037dde
test rax, rax
jne 0x140037dde
mov rax, qword [0x14009b028]
cmp rax, r12
je 0x140037b6c
test byte [rax + 0x1c], 4
je 0x140037b6c
cmp byte [rax + 0x19], 2
jb 0x140037b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x49
jmp 0x140037b56
mov rax, qword [rdi + 8]
mov rcx, qword [rbx + 0x48]
mov qword [rbx + 0x10], rax
call fcn.1400671c4
mov rcx, qword [rdi + 0x30]
call fcn.140067e3c
mov qword [rbx + 0x48], rax
cmp qword [rdi + 0x30], 0
je 0x140037e42
test rax, rax
jne 0x140037e42
mov rax, qword [0x14009b028]
cmp rax, r12
je 0x140037b6c
test byte [rax + 0x1c], 4
je 0x140037b6c
cmp byte [rax + 0x19], 2
jb 0x140037b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x4a
jmp 0x140037b56
mov eax, dword [rdi + 0x228]
mov dword [rbx + 0x250], eax
mov eax, dword [rbx + 0x734]
bt eax, 9
jae 0x140037e69
mov rax, qword [rbx + 0x248]
add dword [rax + 0x17c], esi
jmp 0x140037e8f
bt eax, 8
jae 0x140037e7e
mov rax, qword [rbx + 0x248]
add dword [rax + 0x178], esi
jmp 0x140037e8f
test al, al
jns 0x140037e8f
mov rax, qword [rbx + 0x248]
add dword [rax + 0x180], esi
mov rax, qword [rdi + 0x460]
mov qword [rbx + 0x488], rax
mov rax, qword [rdi + 0x468]
mov qword [rbx + 0x490], rax
mov eax, dword [rdi + 0x3c]
mov dword [rbx + 0x54], eax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x18], rax
jmp 0x140037b6e