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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov rdi, rcx
mov rbx, qword [rdx]
mov rdx, qword [rbx + 8]
mov rcx, r15
call fcn.1400296a0
mov rax, qword [r15]
mov qword [rax + 8], rbx
mov rax, qword [r15]
mov qword [rax], rbx
mov rax, qword [r15]
mov qword [rax + 0x10], rbx
mov qword [r15 + 8], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
call fcn.140029670
mov qword [rbp - 0x18], rax
lea rsi, [rdi + 0x60]
mov qword [rbp - 0x38], rsi
mov edx, 0xffffffff
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbp - 0x30], rax
test rax, rax
setne r14b
mov byte [rbp - 0x28], r14b
add rdi, 0x50
lea rax, [rbp - 0x18]
cmp rax, rdi
je 0x14005845e
mov rbx, qword [rbp - 0x18]
mov rdx, qword [rbx + 8]
lea rcx, [rbp - 0x18]
call fcn.1400296a0
mov rax, qword [rbp - 0x18]
mov qword [rax + 8], rbx
mov rax, qword [rbp - 0x18]
mov qword [rax], rbx
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x10], rbx
mov qword [rbp - 0x10], 0
mov rdx, qword [rdi]
mov rbx, qword [rbp - 0x18]
movzx r9d, byte [rbp - 0x40]
mov r8, rbx
mov rdx, qword [rdx + 8]
lea rcx, [rbp - 0x18]
call fcn.1400597a0
mov qword [rbx + 8], rax
mov rax, qword [rdi + 8]
mov qword [rbp - 0x10], rax
mov r8, qword [rbp - 0x18]
mov rdx, qword [r8 + 8]
cmp byte [rdx + 0x19], 0
jne 0x140058453
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x14005841f
nop dword [rax]
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140058410
mov qword [r8], rdx
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rdx + 8]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14005844d
nop dword [rax]
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140058440
mov qword [rdx + 0x10], rcx
jmp 0x14005845e
mov qword [r8], r8
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x10], rax
test r14b, r14b
je 0x14005846c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rdi, qword [rbp - 0x18]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140058533
movzx esi, byte [rbp - 0x40]
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x14005848f
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400584cd
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x1400584a9
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400584cd
test al, 0x10
je 0x1400584cd
mov byte [rsp + 0x20], sil
lea r9, [rbx + 0x20]
lea rdx, [rbp - 0x38]
mov rcx, r15
call fcn.140059420
cmp byte [rbx + 0x19], 0
jne 0x140058526
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140058501
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140058526
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400584f0
jmp 0x140058526
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140058523
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x140058523
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140058510
mov rbx, rax
cmp rbx, rdi
jne 0x140058480
mov rdi, qword [rbp - 0x18]
mov rbx, qword [r15 + 8]
mov r9, rdi
mov r8, qword [rdi]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x18]
call fcn.140058c20
mov edx, 0x40
mov rcx, qword [rbp - 0x18]
call fcn.1400cd424
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400cd400
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret