Function at 0x140041144
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 [0x140094940]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x80], r9
mov r13, r8
mov qword [rsp + 0x68], r8
mov r12, rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb0], r9
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x88], rax
xor ebx, ebx
mov r15d, ebx
mov dword [rsp + 0x58], ebx
mov esi, ebx
lea edi, [rbx + 1]
mov dword [rsp + 0x70], edi
lea r14, str.___t_
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x1400411fd
test byte [rcx + 0x1c], 4
je 0x1400411fd
cmp byte [rcx + 0x19], 5
jb 0x1400411fd
lea edx, [rbx + 0x21]
lea r8, [0x1400827b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001010
mov r9, qword [rsp + 0x80]
mov rax, qword [rsp + 0x88]
mov qword [r9], rbx
mov dword [rax], ebx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140041217
xor eax, eax
jmp 0x14004166f
lea rcx, [0x1400981f8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14, qword [0x140098220]
test r14, r14
je 0x140041635
mov eax, dword [0x1400981dc]
cmp eax, 0x2aaaaaa
jbe 0x140041248
mov edi, ebx
jmp 0x140041635
lea rcx, [rax + rax*2]
shl rcx, 5
call fcn.1400625b8
mov rsi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140041241
lea r8, [0x140082920]
mov rdx, r12
mov ecx, dword [r13 + 4]
call fcn.14003f610
cmp eax, edi
jge 0x140041283
jmp 0x140041241
mov r14, qword [rsp + 0x78]
lea rax, [0x140098220]
cmp r14, rax
je 0x140041635
lea r12, [r14 - 0x10]
mov qword [rsp + 0x60], r12
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x78], rax
mov qword [r13 + 0x60], rbx
mov dword [r13 + 0x68], ebx
mov r14, qword [rsp + 0x50]
lea rcx, [r14 + 0x6f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [r14 + 0x6e0]
mov qword [rsp + 0x90], rax
mov r14, qword [rax]
test r14, r14
je 0x140041390
cmp r14, rax
je 0x140041390
lea r13, [r14]
mov r14, qword [r14]
cmp qword [r13 + 0x20], r12
jne 0x14004132e
mov ecx, dword [r13 + 0x18]
call fcn.1400625b8
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x60], rax
test rax, rax
je 0x140041335
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 + 0x90]
jmp 0x1400412db
mov r13, qword [rsp + 0x68]
jmp 0x1400412db
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x140041379
test byte [rax + 0x1c], 4
je 0x140041379
cmp byte [rax + 0x19], 2
jb 0x140041379
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x22
lea r8, [0x1400827b0]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov rcx, qword [rsp + 0x50]
add rcx, 0x6f0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140041241
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 rdx, [rsi + 0x50]
add rdx, rcx
mov qword [rdx], rbx
lea r8, [rsi + 0x58]
add r8, rcx
mov dword [r8], ebx
mov rcx, r13
mov rax, qword [r12 + 0x50]
mov r9, qword [0x140080850]
call r9
mov dword [rsp + 0x74], eax
lea r14, str.___t_
mov rcx, qword [rsp + 0x50]
jmp 0x140041432
test eax, eax
jne 0x14004127e
mov r9, qword [rcx + 0x10]
lea r8, str.0x_016I64x
lea edx, [rax + 0x14]
lea rcx, [rsp + 0xb8]
call fcn.1400028c0
test eax, eax
jns 0x140041491
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140041489
test byte [rcx + 0x1c], 4
je 0x140041489
cmp byte [rcx + 0x19], 2
jb 0x140041489
mov edx, 0x23
mov r9d, eax
lea r8, [0x1400827b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
mov word [rsp + 0xb8], bx
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 + 0xb8]
mov qword [rsp + 0x20], rax
mov edx, 1
lea ecx, [rdx + 2]
mov r9d, 0xc0007d59
lea r8d, [rdx + 5]
call fcn.140062ba4
mov eax, r15d
lea r14, [rax + rax*2]
shl r14, 5
add r14, rsi
lea rcx, [r12 + 0x20]
mov r8d, 0x27
mov rdx, r14
call qword [sym.imp.ole32.dll_StringFromGUID2]
cmp dword [r14 + 0x58], ebx
je 0x140041620
mov rax, qword [r14 + 0x50]
mov qword [rsp + 0x60], rax
mov ecx, dword [r14 + 0x58]
call fcn.1400625b8
mov qword [r14 + 0x50], rax
test rax, rax
je 0x1400415cf
mov r8d, dword [r14 + 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.14004dba8
test eax, eax
jne 0x140041614
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x140041241
test byte [rax + 0x1c], 4
je 0x140041241
cmp byte [rax + 0x19], 2
jb 0x140041241
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x25
lea r8, [0x1400827b0]
mov rcx, qword [str.___t_]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x140041241
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140041241
test byte [rcx + 0x1c], 4
je 0x140041241
cmp byte [rcx + 0x19], 2
jb 0x140041241
mov edx, 0x24
lea r8, [0x1400827b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001010
jmp 0x140041241
cmp dword [r14 + 0x58], ebx
je 0x140041620
cmp qword [r14 + 0x50], rbx
jne 0x140041628
mov qword [r14 + 0x50], rbx
mov dword [r14 + 0x58], ebx
inc r15d
mov dword [rsp + 0x58], r15d
jmp 0x14004127e
lea rcx, [0x1400981f8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x140041657
test r15d, r15d
jne 0x140041657
mov rcx, rsi
call fcn.140062654
mov rsi, rbx
mov rax, qword [rsp + 0x80]
mov qword [rax], rsi
mov rax, qword [rsp + 0x88]
mov dword [rax], r15d
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140077900
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret