Function at 0x14004494c
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, 0xf0
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x78], r9
mov r13, r8
mov qword [rsp + 0x68], r8
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb0], r9
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x80], rax
xor ebx, ebx
mov r15d, ebx
mov dword [rsp + 0x60], ebx
mov edi, ebx
lea esi, [rbx + 1]
mov dword [rsp + 0x70], esi
lea r14, [0x14009b028]
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140044a04
test byte [rcx + 0x1c], 4
je 0x140044a04
cmp byte [rcx + 0x19], 5
jb 0x140044a04
lea edx, [rbx + 0x21]
lea r8, [0x1400897e0]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
mov r9, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
mov qword [r9], rbx
mov dword [rax], ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140044a21
xor eax, eax
jmp 0x140044a8c
lea rcx, [0x14009f1d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov r12, qword [0x14009f200]
test r12, r12
je 0x140044a4f
mov eax, dword [0x14009f1bc]
cmp eax, 0x2aaaaaa
jbe 0x140044ab0
mov esi, ebx
lea rcx, [0x14009f1d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rdi, rdi
je 0x140044a77
test r15d, r15d
jne 0x140044a77
mov rcx, rdi
call fcn.140066f24
mov rdi, rbx
mov rax, qword [rsp + 0x78]
mov qword [rax], rdi
mov rax, qword [rsp + 0x80]
mov dword [rax], r15d
mov eax, esi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14007e3c0
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rcx, [rax + rax*2]
shl rcx, 5
call fcn.140066e68
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x140044a4d
lea r8, [0x140089950]
mov rdx, qword [rsp + 0x50]
mov ecx, dword [r13 + 4]
call fcn.140042b30
cmp eax, esi
jl 0x140044a4d
lea rax, [0x14009f200]
cmp r12, rax
je 0x140044a4f
lea rax, [r12 - 0x10]
mov qword [rsp + 0x50], rax
mov r12, qword [r12]
mov qword [rsp + 0x98], r12
mov qword [r13 + 0x60], rbx
mov dword [r13 + 0x68], ebx
mov r14, qword [rsp + 0x58]
lea rcx, [r14 + 0x6f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
lea rax, [r14 + 0x6e0]
mov qword [rsp + 0x88], rax
mov r14, qword [rax]
test r14, r14
je 0x140044c1b
cmp r14, rax
je 0x140044c1b
mov rcx, qword [rsp + 0x50]
lea r13, [r14]
mov r14, qword [r14]
cmp qword [r13 + 0x20], rcx
jne 0x140044ba8
mov ecx, dword [r13 + 0x18]
call fcn.140066e68
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x60], rax
test rax, rax
je 0x140044bb4
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 + 0x88]
mov rcx, qword [rsp + 0x50]
jmp 0x140044bad
mov r13, qword [rsp + 0x68]
cmp r14, rax
je 0x140044c1b
jmp 0x140044b59
mov rax, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rax, rdx
je 0x140044bfe
test byte [rax + 0x1c], 4
je 0x140044bfe
cmp byte [rax + 0x19], 2
jb 0x140044bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov edx, 0x22
lea r8, [0x1400897e0]
mov rcx, qword [0x14009b028]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov rcx, qword [rsp + 0x58]
add rcx, 0x6f0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
jmp 0x140044a4d
mov rcx, qword [rsp + 0x58]
add rcx, 0x6f0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, r15d
mov qword [rsp + 0xb8], rax
lea rax, [rax + rax*2]
shl rax, 5
add rax, rdi
mov qword [rsp + 0x88], rax
lea rdx, [rax + 0x50]
mov qword [rdx], rbx
lea r8, [rax + 0x58]
mov dword [r8], ebx
mov rcx, r13
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x50]
call qword [0x140087880]
mov dword [rsp + 0x74], eax
lea r14, [0x14009b028]
mov rcx, qword [rsp + 0x58]
jmp 0x140044cd0
test eax, eax
jne 0x140044aea
mov r9, qword [rcx + 0x10]
lea r8, str.0x_016I64x
lea edx, [rax + 0x14]
lea rcx, [rsp + 0xc0]
call fcn.140002ac0
test eax, eax
jns 0x140044d2f
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140044d27
test byte [rcx + 0x1c], 4
je 0x140044d27
cmp byte [rcx + 0x19], 2
jb 0x140044d27
mov edx, 0x23
mov r9d, eax
lea r8, [0x1400897e0]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
mov word [rsp + 0xc0], bx
mov rdx, qword [rsp + 0x58]
mov r8, qword [rdx + 0x718]
mov r14, qword [rsp + 0x50]
mov rcx, qword [r14 + 0x58]
add rcx, 0x34
mov rax, qword [r14 + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rdx + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [r8 + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [r8 + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov edx, 1
lea ecx, [rdx + 2]
mov r9d, 0xc0007d59
lea r8d, [rdx + 5]
call fcn.1400672f0
lea rcx, [r14 + 0x20]
mov r8d, 0x27
mov rdx, qword [rsp + 0x88]
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
mov rax, qword [rsp + 0xb8]
lea r14, [rax + rax*2]
shl r14, 5
cmp dword [r14 + rdi + 0x58], ebx
je 0x140044ede
mov rax, qword [r14 + rdi + 0x50]
mov qword [rsp + 0x60], rax
mov ecx, dword [r14 + rdi + 0x58]
call fcn.140066e68
mov qword [r14 + rdi + 0x50], rax
test rax, rax
je 0x140044e8b
mov r8d, dword [r14 + rdi + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x58]
lea r9, [rcx + 0x34]
mov dword [rsp + 0x20], 2
mov r8, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x650]
call fcn.140051d58
test eax, eax
jne 0x140044ed0
mov rax, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rax, rdx
je 0x140044a4d
test byte [rax + 0x1c], 4
je 0x140044a4d
cmp byte [rax + 0x19], 2
jb 0x140044a4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov edx, 0x25
lea r8, [0x1400897e0]
mov rcx, qword [0x14009b028]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140044a4d
mov rcx, qword [0x14009b028]
lea rdx, [0x14009b028]
cmp rcx, rdx
je 0x140044a4d
test byte [rcx + 0x1c], 4
je 0x140044a4d
cmp byte [rcx + 0x19], 2
jb 0x140044a4d
mov edx, 0x24
lea r8, [0x1400897e0]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
jmp 0x140044a4d
cmp dword [r14 + rdi + 0x58], ebx
je 0x140044ede
cmp qword [r14 + rdi + 0x50], rbx
jne 0x140044ee8
mov qword [r14 + rdi + 0x50], rbx
mov dword [r14 + rdi + 0x58], ebx
inc r15d
mov dword [rsp + 0x60], r15d
jmp 0x140044aea