Function at 0x14003fc04
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, rcx
xor r12d, r12d
mov rcx, qword [str.___t_]
lea r14, str.___t_
mov r13b, 4
cmp rcx, r14
je 0x14003fc78
test byte [rcx + 0x1c], r13b
je 0x14003fc78
cmp byte [rcx + 0x19], 5
jb 0x14003fc78
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xb9
call fcn.14000e618
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], r12w
call sub.msvcrt.dll_memset
lea rcx, [0x14009a148]
mov r15d, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14009a1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rsi + 0x450]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14003fce8
test byte [rcx + 0x1c], r13b
je 0x14003fce8
cmp byte [rcx + 0x19], 5
jb 0x14003fce8
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xba
call fcn.14000e63c
mov r8, qword [rdi + 0x48]
test r8, r8
je 0x14003fd49
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.14001008c
mov rcx, qword [rdi + 0x48]
mov ebx, eax
call fcn.140072328
mov qword [rdi + 0x48], r12
test ebx, ebx
jns 0x14003fd49
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14003fd43
test byte [rcx + 0x1c], r13b
je 0x14003fd43
cmp byte [rcx + 0x19], 2
jb 0x14003fd43
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xbb
mov r9d, ebx
call fcn.14000e63c
mov word [rsp + 0x40], r12w
lea rcx, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsi + 0x30]
sub rax, qword [rsi + 0x28]
mov qword [rsi + 0x38], rax
mov eax, dword [rsi + 0x468]
cmp eax, 8
jne 0x14003fdc6
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14003fda2
test byte [rcx + 0x1c], r13b
je 0x14003fda2
cmp byte [rcx + 0x19], 5
jb 0x14003fda2
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xbc
call fcn.14000e63c
mov rcx, qword [str.___t_]
lea rbx, str.___t_
cmp dword [rsi + 0x44], r12d
jne 0x14003fdbb
mov dword [rsi + 0x40], r15d
mov r14d, r12d
jmp 0x14004013a
mov r14d, r15d
mov r15d, r12d
jmp 0x140040141
cmp eax, 0xb
jne 0x140040124
mov eax, dword [rsi + 0x46c]
cmp eax, 0xb
ja 0x14003ff67
je 0x140040018
cmp eax, r15d
je 0x140040018
cmp eax, 7
je 0x14003fe96
jbe 0x14003ff88
cmp eax, 9
jbe 0x140040018
cmp eax, 0xa
jne 0x14003ff88
mov rax, qword [0x14009a3c8]
mov r14d, r12d
test rax, rax
je 0x140040133
lock inc dword [rax + 0x24]
mov rcx, qword [0x14009a3c8]
lea rax, [rcx + 0x1c]
lea r10, [rcx + 0x20]
lea r9, [rcx + 0x18]
lea r8, [rcx + 0x14]
lea rdx, [rcx + 0x28]
mov qword [rsp + 0x28], rax
add rcx, 0x24
mov qword [rsp + 0x20], r10
call fcn.1400876b0
test eax, eax
je 0x140040133
mov rcx, qword [str.___t_]
lea rbx, str.___t_
cmp rcx, rbx
je 0x140040141
test byte [rcx + 0x1c], r13b
je 0x140040141
cmp byte [rcx + 0x19], 2
jb 0x140040141
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc0
jmp 0x14003ff48
lea rcx, [0x14009a408]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x10]
test byte [rax + 0x4c], r13b
jne 0x14003feb5
cmp dword [rax + 0x20], r12d
cmove r15d, r12d
lea rcx, [0x14009a408]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x14009a3c8]
mov r14d, 1
test rax, rax
je 0x140040133
lock inc dword [rax + 0x24]
mov rcx, qword [0x14009a3c8]
lea rax, [rcx + 0x1c]
lea r10, [rcx + 0x20]
lea r9, [rcx + 0x18]
lea r8, [rcx + 0x14]
lea rdx, [rcx + 0x28]
mov qword [rsp + 0x28], rax
add rcx, 0x24
mov qword [rsp + 0x20], r10
call fcn.1400876b0
test eax, eax
je 0x140040133
mov rcx, qword [str.___t_]
lea rbx, str.___t_
cmp rcx, rbx
je 0x140040141
test byte [rcx + 0x1c], r13b
je 0x140040141
cmp byte [rcx + 0x19], 2
jb 0x140040141
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xbd
mov rcx, qword [str.___t_]
lea r8, [0x140003110]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
jmp 0x14004013a
sub eax, 0xc
je 0x1400400a8
dec eax
je 0x140040018
dec eax
je 0x14003fe0e
dec eax
je 0x140040018
mov rcx, rdi
call fcn.1400416cc
mov r14d, eax
mov rax, qword [0x14009a3c8]
test rax, rax
je 0x140040133
lock inc dword [rax + 0x28]
mov rcx, qword [0x14009a3c8]
lea rax, [rcx + 0x1c]
lea r10, [rcx + 0x20]
lea r9, [rcx + 0x18]
lea r8, [rcx + 0x14]
lea rdx, [rcx + 0x28]
mov qword [rsp + 0x28], rax
add rcx, 0x24
mov qword [rsp + 0x20], r10
call fcn.1400876b0
test eax, eax
je 0x140040133
mov rcx, qword [str.___t_]
lea rbx, str.___t_
cmp rcx, rbx
je 0x140040141
test byte [rcx + 0x1c], r13b
je 0x140040141
cmp byte [rcx + 0x19], 2
jb 0x140040141
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xc1
jmp 0x14003ff48
mov rcx, rdi
call fcn.1400416cc
mov r14d, eax
mov rax, qword [0x14009a3c8]
test rax, rax
je 0x140040133
lock inc dword [rax + 0x24]
mov rcx, qword [0x14009a3c8]
lea rax, [rcx + 0x1c]
lea r10, [rcx + 0x20]
lea r9, [rcx + 0x18]
lea r8, [rcx + 0x14]
lea rdx, [rcx + 0x28]
mov qword [rsp + 0x28], rax
add rcx, 0x24
mov qword [rsp + 0x20], r10
call fcn.1400876b0
test eax, eax
je 0x140040133
mov rcx, qword [str.___t_]
lea rbx, str.___t_
cmp rcx, rbx
je 0x140040141
test byte [rcx + 0x1c], r13b
je 0x140040141
cmp byte [rcx + 0x19], 2
jb 0x140040141
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xbe
jmp 0x14003ff48
mov rcx, rdi
call fcn.1400416cc
mov r14d, eax
mov rax, qword [0x14009a3c8]
test rax, rax
je 0x140040133
lock inc dword [rax + 0x28]
mov rcx, qword [0x14009a3c8]
lea rax, [rcx + 0x1c]
lea r10, [rcx + 0x20]
lea r9, [rcx + 0x18]
lea r8, [rcx + 0x14]
lea rdx, [rcx + 0x28]
mov qword [rsp + 0x28], rax
add rcx, 0x24
mov qword [rsp + 0x20], r10
call fcn.1400876b0
test eax, eax
je 0x140040133
mov rcx, qword [str.___t_]
lea rbx, str.___t_
cmp rcx, rbx
je 0x140040141
test byte [rcx + 0x1c], r13b
je 0x140040141
cmp byte [rcx + 0x19], 2
jb 0x140040141
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0xbf
jmp 0x14003ff48
mov r14d, r12d
cmp eax, 0xc
je 0x140040133
cmp eax, 0xd
cmove r14d, r12d
lea rbx, str.___t_
mov rcx, qword [str.___t_]
cmp dword [rsi + 0x40], r12d
je 0x1400401d2
cmp rcx, rbx
je 0x140040175
test byte [rcx + 0x1c], r13b
je 0x140040175
cmp byte [rcx + 0x19], 5
jb 0x140040175
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xc2
call fcn.14000e63c
mov edx, 0x200
mov rcx, rdi
call fcn.14004a1e8
mov rcx, rdi
call fcn.140049d90
test eax, eax
jne 0x1400401c2
mov rcx, qword [str.___t_]
cmp rcx, rbx
je 0x1400401c2
test byte [rcx + 0x1c], r13b
je 0x1400401c2
cmp byte [rcx + 0x19], 2
jb 0x1400401c2
mov r9d, dword [rdi + 0x734]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xc3
call fcn.14000e63c
mov rax, qword [rdi + 0x248]
mov r14d, r12d
inc dword [rax + 0x17c]
mov r8, qword [rdi + 0x28]
mov eax, dword [rsi + 0x46c]
lea rbx, [rdi + 0x498]
add r8, 0x4c0
mov edx, 0x100
mov rcx, rbx
mov dword [rdi + 0x698], eax
call fcn.14001008c
test r14d, r14d
jne 0x140040305
cmp dword [rsi + 0x40], r12d
jne 0x140040278
cmp dword [rdi + 0x698], r12d
jne 0x140040223
mov dword [rdi + 0x698], 0xc
mov word [rbx], r12w
mov rcx, rdi
call fcn.14003ef20
test eax, eax
jne 0x140040278
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x140040278
test byte [rax + 0x1c], r13b
je 0x140040278
cmp byte [rax + 0x19], 2
jb 0x140040278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, SetErrorInfo
mov dword [rsp + 0x20], eax
call fcn.14000e820
mov ebx, 1
mov rcx, rdi
mov edx, ebx
call fcn.14004a088
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx + 0x28]
mov qword [rdi + 0x488], rax
mov rax, qword [rcx + 0x30]
mov qword [rdi + 0x490], rax
lea r15, str.___t_
mov edx, r14d
mov rcx, rdi
call fcn.14005b714
test r14d, r14d
jne 0x14004041a
lea rcx, [0x14009a0e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x14009a0e0], 0xffffffffffffffff
jne 0x1400403d4
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004040d
test byte [rcx + 0x1c], r13b
je 0x14004040d
cmp byte [rcx + 0x19], 2
jb 0x14004040d
mov edx, SetErrorInfo
jmp 0x1400403fd
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140040347
test byte [rcx + 0x1c], r13b
je 0x140040347
cmp byte [rcx + 0x19], 5
jb 0x140040347
mov eax, dword [rdi + 0x250]
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, SetErrorInfo
mov dword [rsp + 0x20], eax
call fcn.14000e820
mov edx, 0x40
mov rcx, rdi
call fcn.14004a1e8
mov ebx, 1
mov rcx, rdi
cmp r15d, ebx
jne 0x14004036b
call fcn.1400459a8
jmp 0x1400402a1
mov edx, ebx
call fcn.140045298
test eax, eax
jne 0x1400402a1
mov rax, qword [str.___t_]
lea r15, str.___t_
cmp rax, r15
je 0x1400402a8
test byte [rax + 0x1c], r13b
je 0x1400402a8
cmp byte [rax + 0x19], 2
jb 0x1400402a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov r9, qword [rdi + 0x48]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, SetErrorInfo
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
jmp 0x1400402a8
mov rcx, rdi
call fcn.140033f70
test eax, eax
jne 0x14004040d
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004040d
test byte [rcx + 0x1c], r13b
je 0x14004040d
cmp byte [rcx + 0x19], 2
jb 0x14004040d
mov edx, reloc.OLEAUT32.dll_SetErrorInfo
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
call fcn.14000e618
lea rcx, [0x14009a0e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, rdi
mov ecx, 2
call fcn.140062504
test eax, eax
je 0x140040461
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x140040461
test byte [rcx + 0x1c], r13b
je 0x140040461
cmp byte [rcx + 0x19], 2
jb 0x140040461
mov r9d, dword [rdi + 0x10]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xc9
mov word [rsp + 0x20], ax
call fcn.14001bcf4
mov rax, qword [rsi + 0x10]
or r8d, 0xffffffff
mov edx, ebx
mov dword [rax + 0x48], 0x20100000
mov rcx, qword [rsi + 0x10]
call fcn.140041b7c
mov edx, ebx
mov rcx, rsi
call fcn.14003cc3c
test eax, eax
jne 0x1400404c6
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400404c6
test byte [rax + 0x1c], r13b
je 0x1400404c6
cmp byte [rax + 0x19], 2
jb 0x1400404c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140003110]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xca
call fcn.14000e63c
cmp dword [rdi + 0x734], 0x200
mov qword [rdi + 0x28], r12
jne 0x1400405bd
cmp dword [rdi + 0x24], 2
mov esi, dword [rdi + 0x20]
mov qword [rsp + 0x30], r12
jne 0x1400404f1
mov rcx, qword [rdi + 0x248]
jmp 0x1400404f4
mov rcx, rdi
mov rcx, qword [rcx + 0x198]
lea rdx, [rsp + 0x30]
call fcn.140075590
mov ebx, eax
test eax, eax
je 0x14004053b
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004053b
test byte [rcx + 0x1c], r13b
je 0x14004053b
cmp byte [rcx + 0x19], 2
jb 0x14004053b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xcb
mov r9d, eax
call fcn.14000e63c
xor r9d, r9d
mov rcx, rdi
lea eax, [r9 + 1]
mov r8d, eax
mov edx, eax
call fcn.140049ea8
test ebx, ebx
jne 0x1400405b8
mov r9, qword [rsp + 0x30]
mov ebx, 0x17
mov r8d, esi
mov edx, ebx
xor ecx, ecx
call fcn.140062fc4
test eax, eax
jne 0x1400405ae
mov rax, qword [str.___t_]
cmp rax, r15
je 0x1400405ae
test byte [rax + 0x1c], r13b
je 0x1400405ae
cmp byte [rax + 0x19], 2
jb 0x1400405ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0xcc
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x20]
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.140039458
mov rcx, qword [rsp + 0x30]
call fcn.140072328
mov ebx, 1
mov rcx, qword [0x14009a198]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140040611
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14004060b
test byte [rax + 0x1c], r13b
je 0x14004060b
cmp byte [rax + 0x19], 2
jb 0x14004060b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140003110]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0xcd
call fcn.14000e63c
mov dword [0x14009a190], ebx
lea rsi, [0x14009a1b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14009a148]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14d, r14d
jne 0x1400406aa
lea r8, [rsp + 0x40]
mov rdx, rdi
xor ecx, ecx
call fcn.1400419fc
test eax, eax
jne 0x140040688
mov rax, qword [str.___t_]
cmp rax, r15
je 0x140040688
test byte [rax + 0x1c], r13b
je 0x140040688
cmp byte [rax + 0x19], 2
jb 0x140040688
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov r9d, dword [rdi + 0x20]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xce
mov dword [rsp + 0x20], eax
call fcn.14000e820
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r9d, ebx
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.140049ea8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp word [rsp + 0x40], r12w
je 0x14004073a
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400406e8
test byte [rcx + 0x1c], r13b
je 0x1400406e8
cmp byte [rcx + 0x19], 5
jb 0x1400406e8
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x40]
lea r8, [0x140003110]
mov edx, 0xcf
call fcn.14000e868
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004073a
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14004073a
test byte [rcx + 0x1c], r13b
je 0x14004073a
cmp byte [rcx + 0x19], 5
jb 0x14004073a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140003110]
mov edx, 0xd0
mov dword [rsp + 0x20], eax
call fcn.14000e8e4
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140088640
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret