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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, rdx
mov r13, rcx
mov qword [rbp - 0x51], rcx
lea rbx, [rcx + 8]
mov qword [rbp - 9], rbx
xor r14d, r14d
test rbx, rbx
je 0x180064807
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [r13 + 0x60], r14
je 0x180064da1
cmp qword [r13 + 0x40], r14
je 0x180064da1
test r12, r12
je 0x180064da1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov rax, r14
mov qword [rbp - 0x11], rax
mov esi, r14d
mov dword [rbp - 0x79], r14d
mov r15d, 1
mov rdi, qword [rbp - 0x19]
cmp rax, rdi
je 0x180064855
mov dword [rdi], esi
add rdi, 4
mov qword [rbp - 0x19], rdi
jmp 0x18006486d
lea r8, [rbp - 0x79]
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.180035e24
mov rax, qword [rbp - 0x11]
mov rdi, qword [rbp - 0x19]
add esi, r15d
mov dword [rbp - 0x79], esi
cmp esi, r15d
jl 0x180064844
mov qword [rbp - 1], rax
mov rsi, qword [rbp - 0x21]
sub rdi, rsi
sar rdi, 2
test rdi, rdi
je 0x180064d21
mov qword [rbp - 0x29], rdi
mov eax, 0x80
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov qword [rbp - 0x59], rax
lea rcx, [0x180064040]
test rax, rax
je 0x1800648ec
mov qword [rax], rdi
lea r14, [rax + 8]
mov qword [rsp + 0x20], rcx
lea r9, [0x18006401c]
mov r8, rdi
mov edx, 0x80
mov rcx, r14
call fcn.18006fab0
nop
xor r8d, r8d
test r14, r14
jne 0x1800648fc
mov r15d, r8d
jmp 0x180064d21
movsxd rax, edi
mov qword [rbp - 0x29], rax
test edi, edi
jle 0x1800649bc
mov rdx, r8
mov qword [rbp - 0x59], rdx
lea r13, [r14 + 8]
mov rbx, rax
mov dword [r13 - 8], 0x80
movsxd rax, dword [rsi + rdx*4]
imul rcx, rax, 0x43c
lea rax, [r12 + 4]
add rax, rcx
mov qword [rbp - 0x49], rax
mov rcx, qword [r13]
test rcx, rcx
je 0x180064956
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor r8d, r8d
mov qword [r13], r8
mov rdx, qword [rbp - 0x59]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x18006496f
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r13], rax
mov rdx, qword [rbp - 0x59]
xor r8d, r8d
movsxd rax, dword [rsi + rdx*4]
imul rcx, rax, 0x43c
mov eax, dword [rcx + r12 + 0x424]
mov dword [r13 + 0x70], eax
movsxd rax, dword [rsi + rdx*4]
imul rcx, rax, 0x43c
movups xmm0, xmmword [rcx + r12 + 0x42c]
movdqu xmmword [r13 + 0x24], xmm0
add rdx, r15
mov qword [rbp - 0x59], rdx
sub r13, 0xffffffffffffff80
cmp rdx, rbx
jl 0x180064919
mov rbx, qword [rbp - 9]
mov r13, qword [rbp - 0x51]
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
lea r9, str.360util
mov r8d, edi
mov rdx, r14
mov rcx, qword [r13 + 0x58]
call qword [r13 + 0x40]
xor r10d, r10d
test eax, eax
je 0x180064d26
mov dword [rbp - 0x79], r10d
cmp qword [rbp - 0x29], r10
jle 0x180064cef
mov edi, r10d
lea rax, [r14 + 0x2c]
mov qword [rbp - 0x71], rax
lea rax, [r14 + 0x44]
mov qword [rbp - 0x51], rax
lea rdx, [r14 + 0x10]
mov qword [rbp - 0x61], rdx
lea rax, [r14 + 0x58]
mov qword [rbp - 0x31], rax
lea rax, [r14 + 0x54]
mov qword [rbp - 0x39], rax
lea rbx, [r14 + 0x3c]
mov qword [rbp - 0x69], rbx
lea r8, [r14 + 0x28]
mov qword [rbp - 0x59], r8
lea r9, [r14 + 0x3e]
mov qword [rbp - 0x49], r9
lea rbx, [r14 + 0x78]
lea rax, [r14 + 0x3c]
movsx edx, byte [rax]
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov dword [rcx + r12 + 0x41c], edx
movsx edx, word [r9]
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov dword [rcx + r12 + 0x420], edx
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
test byte [rbx], 0x20
je 0x180064aa3
mov dword [rbp - 0x41], r10d
add rcx, 4
add rcx, r12
lea rdx, [rbp - 0x41]
call fcn.1800640ec
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov eax, dword [rbp - 0x41]
xor r10d, r10d
jmp 0x180064aa6
mov eax, dword [r8]
mov dword [rcx + r12 + 0x20c], eax
mov rax, qword [rbp - 0x69]
mov cl, byte [rax]
cmp cl, 0x1e
jl 0x180064ace
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov dword [rcx + r12 + 0x210], r10d
jmp 0x180064aea
cmp cl, 0xff
jne 0x180064ad7
mov dword [r13 + 0x68], r15d
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov dword [rcx + r12 + 0x210], r15d
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov rax, qword [rbp - 0x39]
mov eax, dword [rax]
mov dword [rcx + r12 + 0x218], eax
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov rax, qword [rbp - 0x31]
mov eax, dword [rax]
mov dword [rcx + r12 + 0x214], eax
lea r8, [0x18008ad98]
mov rax, qword [rbp - 0x61]
cmp qword [rax], r10
cmovne r8, qword [rax]
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
add rcx, 0x21c
add rcx, r12
mov edx, 0x100
lea r9d, [rdx - 1]
call fcn.180070500
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
xor r10d, r10d
mov word [rcx + r12 + 0x41a], r10w
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov rax, qword [rbp - 0x51]
mov eax, dword [rax]
mov dword [rcx + r12 + 0x428], eax
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
mov rax, qword [rbp - 0x71]
movups xmm0, xmmword [rax]
movdqu xmmword [rcx + r12 + 0x42c], xmm0
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
cmp dword [rcx + r12 + 0x210], r10d
jne 0x180064c8c
add rcx, 4
add rcx, r12
je 0x180064c8c
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180064c89
test al, 0x10
jne 0x180064c89
movsxd rax, dword [rsi + rdi*4]
imul rcx, rax, 0x43c
add rcx, 4
add rcx, r12
lea rdx, [rbp + 0xf]
call fcn.180064338
movsxd rdx, dword [rbp - 0x79]
shl rdx, 7
add rdx, r14
mov rax, qword [rbp + 0xf]
cmp rax, qword [rdx + 0x2c]
jne 0x180064c14
mov rax, qword [rbp + 0x17]
cmp rax, qword [rdx + 0x34]
je 0x180064c89
mov eax, dword [rbx]
test al, 0x20
jne 0x180064c89
or eax, 0x20
mov dword [rbx], eax
movups xmm0, xmmword [rbp + 0xf]
mov rax, qword [rbp - 0x71]
movdqu xmmword [rax], xmm0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, str.360util
mov r8d, r15d
mov rcx, qword [r13 + 0x58]
call qword [r13 + 0x40]
xor r10d, r10d
mov r11d, 0x80
mov rdx, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x71]
test eax, eax
mov rax, qword [rbp - 0x69]
je 0x180064c9e
sub dword [rbp - 0x79], r15d
sub rdi, r15
sub qword [rbp - 0x49], r11
sub qword [rbp - 0x59], r11
sub rax, r11
sub qword [rbp - 0x39], r11
sub qword [rbp - 0x31], r11
sub rdx, r11
sub qword [rbp - 0x51], r11
sub rbx, r11
sub rcx, r11
jmp 0x180064c9e
xor r10d, r10d
mov rcx, qword [rbp - 0x71]
mov rdx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x69]
mov r11d, 0x80
add dword [rbp - 0x79], r15d
add rdi, r15
mov r9, qword [rbp - 0x49]
add r9, r11
mov qword [rbp - 0x49], r9
mov r8, qword [rbp - 0x59]
add r8, r11
mov qword [rbp - 0x59], r8
add rax, r11
mov qword [rbp - 0x69], rax
add qword [rbp - 0x39], r11
add qword [rbp - 0x31], r11
add rdx, r11
mov qword [rbp - 0x61], rdx
add qword [rbp - 0x51], r11
add rbx, r11
add rcx, r11
mov qword [rbp - 0x71], rcx
cmp rdi, qword [rbp - 0x29]
jl 0x180064a3f
mov rbx, qword [rbp - 9]
jmp 0x180064cf5
mov r11d, 0x80
lea rdi, [r14 - 8]
lea r9, [0x180064040]
mov r8, qword [rdi]
mov rdx, r11
mov rcx, r14
call fcn.18006f9e0
mov rdx, qword [rdi]
shl rdx, 7
add rdx, 8
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor r14d, r14d
jmp 0x180064d5a
lea rdi, [r14 - 8]
lea r9, [0x180064040]
mov r8, qword [rdi]
mov edx, 0x80
mov rcx, r14
call fcn.18006f9e0
mov rdx, qword [rdi]
shl rdx, 7
add rdx, 8
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor r14d, r14d
mov r15d, r14d
test rsi, rsi
je 0x180064da4
mov rdx, qword [rbp - 1]
sub rdx, rsi
and rdx, 0xfffffffffffffffc
mov rax, rsi
cmp rdx, 0x1000
jb 0x180064d8b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180064ddc
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r14
jmp 0x180064da4
mov r15d, r14d
test rbx, rbx
je 0x180064db2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r15d
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800782d0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180070720
nop
int3