Function at 0x140058110
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 [0x14015a138]
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.140029130
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.140029100
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 0x14005827e
mov rbx, qword [rbp - 0x18]
mov rdx, qword [rbx + 8]
lea rcx, [rbp - 0x18]
call fcn.140029130
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.1400595c0
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 0x140058273
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x14005823f
nop dword [rax]
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140058230
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 0x14005826d
nop dword [rax]
nop dword [rax + rax]
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140058260
mov qword [rdx + 0x10], rcx
jmp 0x14005827e
mov qword [r8], r8
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x10], rax
test r14b, r14b
je 0x14005828c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rdi, qword [rbp - 0x18]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140058353
movzx esi, byte [rbp - 0x40]
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x1400582af
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400582ed
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x1400582c9
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400582ed
test al, 0x10
je 0x1400582ed
mov byte [rsp + 0x20], sil
lea r9, [rbx + 0x20]
lea rdx, [rbp - 0x38]
mov rcx, r15
call fcn.140059240
cmp byte [rbx + 0x19], 0
jne 0x140058346
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140058321
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140058346
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140058310
jmp 0x140058346
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140058343
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x140058343
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140058330
mov rbx, rax
cmp rbx, rdi
jne 0x1400582a0
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.140058a40
mov edx, 0x40
mov rcx, qword [rbp - 0x18]
call fcn.1400ccd64
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret