Function at 0x14004fd58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x90], r9
mov r13, r8
mov qword [rsp + 0x68], r8
mov r12, rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], r9
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x70], rax
xor edi, edi
mov r15d, edi
mov dword [rsp + 0x58], edi
mov r14d, edi
lea esi, [rdi + 1]
mov dword [rsp + 0x78], esi
lea rbx, str.___t_
mov rcx, qword [str.___t_]
cmp rcx, rbx
je 0x14004fe0c
test byte [rcx + 0x1c], 4
je 0x14004fe0c
cmp byte [rcx + 0x19], 5
jb 0x14004fe0c
lea edx, [rdi + 0x21]
lea r8, [0x140003c80]
mov rcx, qword [rcx + 0x10]
call fcn.14000e618
mov r9, qword [rsp + 0x90]
mov rax, qword [rsp + 0x70]
mov qword [r9], rdi
mov dword [rax], edi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004fe26
xor eax, eax
jmp 0x1400502a6
lea rcx, [0x14009a208]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14009a230]
test rbx, rbx
je 0x14005026f
mov eax, dword [0x14009a1ec]
cmp eax, 0x2aaaaaa
jbe 0x14004fe57
mov esi, edi
jmp 0x14005026f
lea rcx, [rax + rax*2]
shl rcx, 5
call fcn.140072274
mov r14, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x14004fe50
lea r8, [0x140003df0]
mov rdx, r12
mov ecx, dword [r13 + 4]
call fcn.14004e1a0
cmp eax, esi
jge 0x14004fe95
jmp 0x14004fe50
mov rbx, qword [rsp + 0x80]
lea rax, [0x14009a230]
cmp rbx, rax
je 0x14005026f
lea r12, [rbx - 0x10]
mov qword [rsp + 0x60], r12
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x80], rax
mov qword [r13 + 0x60], rdi
mov dword [r13 + 0x68], edi
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx + 0x6f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [rbx + 0x6e0]
mov qword [rsp + 0x98], rax
mov rbx, qword [rax]
test rbx, rbx
je 0x14004ffa5
cmp rbx, rax
je 0x14004ffa5
lea r13, [rbx]
mov rbx, qword [rbx]
cmp qword [r13 + 0x20], r12
jne 0x14004ff43
mov ecx, dword [r13 + 0x18]
call fcn.140072274
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x60], rax
test rax, rax
je 0x14004ff4a
mov r8d, dword [r13 + 0x18]
mov rdx, qword [r13 + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [r13 + 0x18]
mov r13, qword [rsp + 0x68]
mov dword [r13 + 0x68], eax
mov rax, qword [rsp + 0x98]
jmp 0x14004fef0
mov r13, qword [rsp + 0x68]
jmp 0x14004fef0
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x14004ff8e
test byte [rax + 0x1c], 4
je 0x14004ff8e
cmp byte [rax + 0x19], 2
jb 0x14004ff8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x22
lea r8, [0x140003c80]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
mov rcx, qword [rsp + 0x50]
add rcx, 0x6f0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14004fe50
mov rcx, qword [rsp + 0x50]
add rcx, 0x6f0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r15d
lea rcx, [rax + rax*2]
shl rcx, 5
lea rax, [r14 + 0x50]
add rax, rcx
mov qword [rsp + 0xa0], rax
mov qword [rax], rdi
lea rax, [r14 + 0x58]
add rax, rcx
mov qword [rsp + 0x98], rax
mov dword [rax], edi
mov rbx, qword [r12 + 0x50]
mov rcx, rbx
mov rax, qword [fcn.14002c9e0]
call rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
mov rcx, r13
call rbx
mov dword [rsp + 0x88], eax
lea rbx, str.___t_
mov rcx, qword [rsp + 0x50]
jmp 0x140050070
test eax, eax
jne 0x14004fe8d
mov r9, qword [rcx + 0x10]
lea r8, [0x140002f08]
lea edx, [rax + 0x14]
lea rcx, [rsp + 0xc8]
call fcn.14001000c
test eax, eax
jns 0x1400500cf
mov rcx, qword [str.___t_]
cmp rcx, rbx
je 0x1400500c7
test byte [rcx + 0x1c], 4
je 0x1400500c7
cmp byte [rcx + 0x19], 2
jb 0x1400500c7
mov edx, 0x23
mov r9d, eax
lea r8, [0x140003c80]
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
mov word [rsp + 0xc8], di
mov r8, qword [rsp + 0x50]
mov rdx, qword [r8 + 0x718]
mov rcx, qword [r12 + 0x58]
add rcx, 0x34
mov rax, qword [r12 + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [r8 + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rdx + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov edx, 1
lea ecx, [rdx + 2]
mov r9d, 0xc0007d59
lea r8d, [rdx + 5]
call fcn.1400728a0
mov eax, r15d
lea rbx, [rax + rax*2]
shl rbx, 5
add rbx, r14
lea rcx, [r12 + 0x20]
mov r8d, 0x27
mov rdx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
cmp dword [rbx + 0x58], edi
je 0x14005025b
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x60], rax
mov ecx, dword [rbx + 0x58]
call fcn.140072274
mov qword [rbx + 0x50], rax
test rax, rax
je 0x14005020b
mov r8d, dword [rbx + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [r12 + 0x58]
lea r9, [rcx + 0x34]
mov dword [rsp + 0x20], 2
mov r8, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x650]
call fcn.14005cb70
test eax, eax
jne 0x140050250
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x14004fe50
test byte [rax + 0x1c], 4
je 0x14004fe50
cmp byte [rax + 0x19], 2
jb 0x14004fe50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x25
lea r8, [0x140003c80]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.14000e63c
jmp 0x14004fe50
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14004fe50
test byte [rcx + 0x1c], 4
je 0x14004fe50
cmp byte [rcx + 0x19], 2
jb 0x14004fe50
mov edx, 0x24
lea r8, [0x140003c80]
mov rcx, qword [rcx + 0x10]
call fcn.14000e618
jmp 0x14004fe50
cmp dword [rbx + 0x58], edi
je 0x14005025b
cmp qword [rbx + 0x50], rdi
jne 0x140050262
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x58], edi
inc r15d
mov dword [rsp + 0x58], r15d
jmp 0x14004fe8d
lea rcx, [0x14009a208]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r14, r14
je 0x140050291
test r15d, r15d
jne 0x140050291
mov rcx, r14
call fcn.140072328
mov r14, rdi
mov rax, qword [rsp + 0x90]
mov qword [rax], r14
mov rax, qword [rsp + 0x70]
mov dword [rax], r15d
mov eax, esi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140088640
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret