Function at 0x140052b08
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 [0x14009e140]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x88], r9
mov r12, r8
mov qword [rsp + 0x58], r8
mov r15, rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], r9
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov r13d, ebx
mov dword [rsp + 0x70], ebx
mov rsi, rbx
lea edi, [rbx + 1]
mov dword [rsp + 0x90], edi
lea r14, str.P5_n_
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140052bbf
test byte [rcx + 0x1c], 4
je 0x140052bbf
cmp byte [rcx + 0x19], 5
jb 0x140052bbf
lea edx, [rbx + 0x21]
lea r8, [0x140008f48]
mov rcx, qword [rcx + 0x10]
call fcn.14000ffa8
mov r9, qword [rsp + 0x88]
mov rax, qword [rsp + 0x78]
mov qword [r9], rbx
mov dword [rax], ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140052bd9
xor eax, eax
jmp 0x140053040
lea rcx, [0x1400a3e68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400a3e98]
mov qword [rsp + 0x60], rax
cmp rax, rbx
je 0x140053009
mov eax, dword [0x1400a3e90]
cmp eax, 0x2aaaaaa
jbe 0x140052c0f
mov edi, ebx
jmp 0x140053009
lea rcx, [rax + rax*2]
shl rcx, 5
call fcn.140076a54
mov rsi, rax
mov qword [rsp + 0x98], rax
cmp rax, rbx
jne 0x140052c33
mov edi, ebx
jmp 0x140053009
lea r8, [0x140008f18]
mov rdx, r15
mov ecx, dword [r12 + 4]
call fcn.140050dc4
cmp eax, edi
jge 0x140052c52
mov edi, ebx
jmp 0x140053009
mov rcx, qword [rsp + 0x60]
lea rax, [0x1400a3e98]
cmp rcx, rax
je 0x140053009
lea r15, [rcx - 0x10]
mov qword [rsp + 0x68], r15
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0xb0], rax
mov qword [r12 + 0x60], rbx
mov dword [r12 + 0x68], ebx
mov r12, qword [rsp + 0x50]
lea rcx, [r12 + 0x6f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [r12 + 0x6e0]
mov qword [rsp + 0xc0], rax
mov r12, qword [rax]
cmp r12, rbx
je 0x140052d77
cmp r12, rax
je 0x140052d77
mov r14, r12
mov r12, qword [r12]
cmp qword [r14 + 0x20], r15
jne 0x140052d0c
mov ecx, dword [r14 + 0x18]
call fcn.140076a54
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x60], rax
cmp rax, rbx
je 0x140052d13
mov r8d, dword [r14 + 0x18]
mov rdx, qword [r14 + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [r14 + 0x18]
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x68], r11d
mov rax, qword [rsp + 0xc0]
cmp r12, rax
je 0x140052d70
jmp 0x140052cc3
mov rax, qword [str.P5_n_]
lea rcx, str.P5_n_
cmp rax, rcx
je 0x140052d57
test byte [rax + 0x1c], 4
je 0x140052d57
cmp byte [rax + 0x19], 2
jb 0x140052d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x22
lea r8, [0x140008f48]
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov rcx, qword [rsp + 0x50]
add rcx, 0x6f0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, ebx
jmp 0x140053009
lea r14, str.P5_n_
mov rcx, qword [rsp + 0x50]
add rcx, 0x6f0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r11d, r13d
lea rax, [r11 + r11*2]
shl rax, 5
lea rdx, [rax + rsi + 0x50]
mov qword [rdx], rbx
lea r8, [rax + rsi + 0x58]
mov dword [r8], ebx
mov r12, qword [rsp + 0x58]
mov rcx, r12
call qword [r15 + 0x50]
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
jmp 0x140052e23
cmp eax, ebx
jne 0x140052c57
mov r9, qword [rdx + 0x10]
lea r8, [0x14000a5f0]
mov edx, 0x14
lea rcx, [rsp + 0xc8]
call fcn.1400118ac
cmp eax, ebx
jge 0x140052e84
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140052e7c
test byte [rcx + 0x1c], 4
je 0x140052e7c
cmp byte [rcx + 0x19], 2
jb 0x140052e7c
mov edx, 0x23
mov r9d, eax
lea r8, [0x140008f48]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov word [rsp + 0xc8], bx
mov r8, qword [rsp + 0x50]
mov rdx, qword [r8 + 0x718]
mov rcx, qword [r15 + 0x58]
add rcx, 0x34
mov rax, qword [r15 + 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.140077054
mov r11d, r13d
lea r12, [r11 + r11*2]
shl r12, 5
add r12, rsi
lea rcx, [r15 + 0x20]
mov r8d, 0x27
mov rdx, r12
call qword [sym.imp.ole32.dll_StringFromGUID2]
cmp dword [r12 + 0x58], ebx
je 0x140052fda
mov rax, qword [r12 + 0x50]
mov qword [rsp + 0x68], rax
mov ecx, dword [r12 + 0x58]
call fcn.140076a54
mov qword [r12 + 0x50], rax
cmp rax, rbx
je 0x140052fa9
mov r8d, dword [r12 + 0x58]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [r15 + 0x58]
lea r9, [rcx + 0x34]
mov dword [rsp + 0x20], 2
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rcx + 0x650]
call fcn.14005ff40
cmp eax, ebx
jne 0x140052fda
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x140052fa5
test byte [rax + 0x1c], 4
je 0x140052fa5
cmp byte [rax + 0x19], 2
jb 0x140052fa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x25
lea r8, [0x140008f48]
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov edi, ebx
jmp 0x140053009
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140052fd6
test byte [rcx + 0x1c], 4
je 0x140052fd6
cmp byte [rcx + 0x19], 2
jb 0x140052fd6
mov edx, 0x24
lea r8, [0x140008f48]
mov rcx, qword [rcx + 0x10]
call fcn.14000ffa8
mov edi, ebx
jmp 0x140053009
cmp dword [r12 + 0x58], ebx
je 0x140052fe8
cmp qword [r12 + 0x50], rbx
jne 0x140052ff2
mov qword [r12 + 0x50], rbx
mov dword [r12 + 0x58], ebx
inc r13d
mov dword [rsp + 0x70], r13d
mov r12, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
jmp 0x140052c57
lea rcx, [0x1400a3e68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp rsi, rbx
je 0x14005302b
cmp r13d, ebx
jne 0x14005302b
mov rcx, rsi
call fcn.140076afc
mov rsi, rbx
mov rax, qword [rsp + 0x88]
mov qword [rax], rsi
mov rax, qword [rsp + 0x78]
mov dword [rax], r13d
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret