Function at 0x1800156b8
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xda0
mov qword [rsp + 0x308], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180059640]
xor rax, rsp
mov qword [rsp + 0xd90], rax
mov r12d, r8d
mov ebp, edx
mov rsi, rcx
lea rbx, [0x180059508]
mov r14d, 0x104
or r13, 0xffffffffffffffff
movabs rdi, 0x6666666666666667
xor r15d, r15d
test dl, 1
je 0x180015932
mov eax, r8d
shr eax, 4
and eax, 1
jne 0x1800157a1
mov rcx, qword [rcx + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x180015932
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001577e
call fcn.180028d94
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001578f
mov rcx, qword [rax + 8]
jmp 0x180015793
lea rcx, [rax + 8]
call fcn.1800115e8
cmp eax, r15d
je 0x180015932
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
mov edx, 0x1f41
lea rcx, [0x18005b300]
call fcn.18001bc10
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x1800157f3
call fcn.180028d94
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsi + 0x78]
lea rcx, [rsp + 0x310]
call fcn.18000e284
cmp qword [rax + 0x20], 8
jb 0x18001581a
mov rdx, qword [rax + 8]
jmp 0x18001581e
lea rdx, [rax + 8]
mov r8d, r14d
lea rcx, [rsp + 0x550]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp qword [rsp + 0x330], 8
jb 0x180015847
mov rcx, qword [rsp + 0x318]
call fcn.180025e24
mov edx, r14d
lea rcx, [rsp + 0x550]
call fcn.1800111f8
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x550]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x550]
lea rcx, [rsp + 0x40]
call fcn.180008948
mov qword [rsp + 0x258], 7
mov qword [rsp + 0x250], r15
mov word [rsp + 0x240], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x40]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x238]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x238]
call fcn.180018b24
nop
cmp qword [rsp + 0x258], 8
jb 0x1800158ef
mov rcx, qword [rsp + 0x240]
call fcn.180025e24
mov qword [rsp + 0xf0], 1
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xf0]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180015932
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14d, r12d
and r14d, 2
je 0x180015ee7
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xa0], rax
test bpl, 2
je 0x180015a40
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov edx, 0x1f46
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x1e0], 7
mov qword [rsp + 0x1d8], r15
mov word [rsp + 0x1c8], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x70]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x1c0]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1c0]
call fcn.180018b24
nop
cmp qword [rsp + 0x1e0], 8
jb 0x1800159fd
mov rcx, qword [rsp + 0x1c8]
call fcn.180025e24
mov qword [rsp + 0xd0], 2
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xd0]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180015a40
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bpl, 4
je 0x180015b28
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
mov edx, 0x1f47
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x140], 7
mov qword [rsp + 0x138], r15
mov word [rsp + 0x128], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x60]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x120]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x120]
call fcn.180018b24
nop
cmp qword [rsp + 0x140], 8
jb 0x180015ae5
mov rcx, qword [rsp + 0x128]
call fcn.180025e24
mov qword [rsp + 0x110], 4
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x110]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180015b28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bpl, 8
je 0x180015d77
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
movabs rdi, 0x6666666666666667
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x180015d81
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x180015b8b
call fcn.180028d94
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180015b9c
mov rcx, qword [rax + 8]
jmp 0x180015ba0
lea rcx, [rax + 8]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov word [rax], r15w
lea rcx, [rsp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rdi, rax
lea rdx, str..tar
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r15d
jne 0x180015bf3
mov word [rdi], r15w
xor edx, edx
lea rcx, [rsp + 0x340]
call fcn.180016d28
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x90]
mov edx, 0x1f48
lea rcx, [0x18005b300]
call fcn.18001bc10
mov edx, 0x104
lea rcx, [rsp + 0x340]
call fcn.1800111f8
lea r9, [rsp + 0x340]
mov r8, qword [rsp + 0x90]
lea rdx, [0x180046ed0]
lea rcx, [rsp + 0x970]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x970]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x300], rax
cmp rax, r15
jne 0x180015c94
mov ecx, 0x8007000e
call fcn.18000333c
nop
mov qword [rsp + 0x280], 7
mov qword [rsp + 0x278], r15
mov word [rsp + 0x268], r15w
xor eax, eax
mov rcx, r13
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x260]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x260]
call fcn.180018b24
nop
cmp qword [rsp + 0x280], 8
jb 0x180015d01
mov rcx, qword [rsp + 0x268]
call fcn.180025e24
mov qword [rsp + 0xe0], 8
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xe0]
call fcn.1800183e4
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180015d64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rbx, [0x180059508]
movabs rdi, 0x6666666666666667
jmp 0x180015d81
lea rbx, [0x180059508]
movabs rdi, 0x6666666666666667
jmp 0x180015d81
movabs rdi, 0x6666666666666667
test bpl, 0x10
je 0x180015ec2
lea r8, str.SmartExtr
lea rdx, [0x180046efc]
lea rcx, [rsp + 0xa0]
call fcn.180008ca4
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x180015df9
lea r8, [rsp + 0x48]
mov edx, 0x1f49
lea rcx, [0x18005b300]
call fcn.18001bc10
jmp 0x180015e0f
lea r8, [rsp + 0x48]
mov edx, 0x1f4a
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x230], 7
mov qword [rsp + 0x228], r15
mov word [rsp + 0x218], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x210]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x210]
call fcn.180018b24
nop
cmp qword [rsp + 0x230], 8
jb 0x180015e7e
mov rcx, qword [rsp + 0x218]
call fcn.180025e24
mov qword [rsp + 0x100], 0x10
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x100]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180015ec2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180015ee7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r12b, 1
je 0x1800164f3
test bpl, 0x20
je 0x180015fd9
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov edx, 0x1f45
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x190], 7
mov qword [rsp + 0x188], r15
mov word [rsp + 0x178], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x50]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x170]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x170]
call fcn.180018b24
nop
cmp qword [rsp + 0x190], 8
jb 0x180015f96
mov rcx, qword [rsp + 0x178]
call fcn.180025e24
mov qword [rsp + 0xc0], 0x20
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xc0]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180015fd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edx, ebp
shr edx, 0xb
and edx, 1
mov rcx, rsi
call fcn.180015638
bt ebp, 8
jae 0x1800160dd
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
mov edx, 0x1f52
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x1b8], 7
mov qword [rsp + 0x1b0], r15
mov word [rsp + 0x1a0], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x88]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x198]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x198]
call fcn.180018b24
nop
cmp qword [rsp + 0x1b8], 8
jb 0x180016097
mov rcx, qword [rsp + 0x1a0]
call fcn.180025e24
mov qword [rsp + 0xc8], pe_nt_image_headers64
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xc8]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x1800160dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test bpl, bpl
jns 0x180016350
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f53
lea rcx, [0x18005b300]
call fcn.18001bc10
xor eax, eax
mov rcx, r13
lea rdx, [0x180046dfc]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180008948
xor eax, eax
mov rcx, r13
lea rdx, [0x180046e84]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180008948
xor r9d, r9d
mov edi, 0x104
mov r8d, edi
lea rdx, [rsp + 0xb80]
mov rcx, rsi
call fcn.180011388
lea rcx, [rsp + 0xb80]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, [rsp + 0x760]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, edi
lea rcx, [rsp + 0x760]
call fcn.1800111f8
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x760]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x760]
lea rcx, [rsp + 0x20]
call fcn.180008948
xor eax, eax
mov rcx, r13
lea rdx, [0x180046f04]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180008948
xor eax, eax
mov rcx, r13
lea rdx, [0x180046f08]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180008948
mov rcx, rbx
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea r8, [rsp + 0x80]
mov edx, 0x1f54
lea rcx, [0x18005b300]
call fcn.18001bc10
mov rdx, qword [rsp + 0x80]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180008948
mov rdx, qword [rsp + 0x20]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
or eax, ecx
jge 0x18001627d
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180008720
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x208], 7
mov qword [rsp + 0x200], r15
mov word [rsp + 0x1f0], r15w
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x1e8]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1e8]
call fcn.180018b24
nop
cmp qword [rsp + 0x208], 8
jb 0x1800162e7
mov rcx, qword [rsp + 0x1f0]
call fcn.180025e24
mov qword [rsp + 0xd8], 0x80
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xd8]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001632e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180016350
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [0x180046f10]
lea rcx, [rsp + 0xb8]
call fcn.180008cc8
nop
mov r8d, 1
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0xa8]
call fcn.180018e04
nop
lea rcx, [rsp + 0xa8]
call fcn.180018d74
mov r13d, eax
mov ebx, r15d
cmp eax, r15d
jle 0x1800164bc
lea rcx, [0x180059508]
mov rdx, qword [0x180059508]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0xb0], rax
mov r9d, ebx
lea r8, [0x180046f28]
lea rdx, [0x180046f40]
lea rcx, [rsp + 0xb0]
call fcn.180008ca4
mov r8d, 1
mov rdi, qword [rsp + 0xb0]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180018e04
nop
mov dword [rsp + 0x38], r15d
lea r8, [rsp + 0x38]
lea rdx, [0x180046f50]
lea rcx, [rsp + 0x30]
call fcn.180018d34
cmp dword [rsp + 0x38], r15d
je 0x18001643f
lea rcx, [rsp + 0x30]
call fcn.180018de4
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x1800164b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1800164b1
mov dword [rsp + 0x28], r15d
lea r8, [rsp + 0x28]
lea rdx, str.AppendMenu
lea rcx, [rsp + 0x30]
call fcn.180018d34
cmp dword [rsp + 0x28], r15d
jne 0x18001648a
lea rcx, [rsp + 0x30]
call fcn.180018de4
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x1800164b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1800164b1
lea rcx, [rsp + 0x30]
call fcn.180018de4
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x1800164b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc ebx
cmp ebx, r13d
jl 0x18001639d
lea rcx, [rsp + 0xa8]
call fcn.180018de4
nop
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x1800164f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp r14d, r15d
je 0x1800165fe
bt ebp, 9
jae 0x1800165f7
mov qword [rsp + 0xe8], 0x200
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xe8]
call fcn.1800183e4
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea r8, [rsp + 0x98]
mov edx, 0x1f55
lea rcx, [0x18005b300]
call fcn.18001bc10
mov ebx, 7
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x160], r15
mov word [rsp + 0x150], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x98]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x148]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x148]
call fcn.180018b24
nop
cmp qword [rsp + 0x168], 8
jb 0x1800165d0
mov rcx, qword [rsp + 0x150]
call fcn.180025e24
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180016603
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x180016603
mov ebx, 7
jmp 0x180016603
mov ebx, 7
cmp dword [rsi], r15d
je 0x180016772
bt ebp, 0x17
jae 0x18001677e
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
movabs r14, 0x6666666666666667
mov rax, r14
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x180016788
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, r14
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001666f
call fcn.180028d94
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180016680
mov rcx, qword [rax + 8]
jmp 0x180016684
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x180016788
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
mov edx, 0x1f59
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x2a8], rbx
mov qword [rsp + 0x2a0], r15
mov word [rsp + 0x290], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x58]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x288]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x288]
call fcn.180018b24
nop
cmp qword [rsp + 0x2a8], 8
jb 0x18001672d
mov rcx, qword [rsp + 0x290]
call fcn.180025e24
mov qword [rsp + 0xf8], 0x800000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xf8]
call fcn.1800183e4
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x180016788
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x180016788
movabs r14, 0x6666666666666667
jmp 0x180016788
movabs r14, 0x6666666666666667
test r12b, 4
je 0x18001687f
bt ebp, 0x10
jae 0x18001687f
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, 0x1f42
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x2f8], rbx
mov qword [rsp + 0x2f0], r15
mov word [rsp + 0x2e0], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x68]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2d8]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x2d8]
call fcn.180018b24
nop
cmp qword [rsp + 0x2f8], 8
jb 0x180016837
mov rcx, qword [rsp + 0x2e0]
call fcn.180025e24
mov qword [rsp + 0x108], 0x10000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x108]
call fcn.1800183e4
inc dword [rsi + 0x120]
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001687f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r12b, 8
je 0x18001699f
bt ebp, 0x12
jae 0x18001699f
mov rdx, qword [rsi + 0x80]
sub rdx, qword [rsi + 0x78]
mov rax, r14
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001699f
lea rcx, [0x180059508]
mov rax, qword [0x180059508]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
mov edx, 0x1f44
lea rcx, [0x18005b300]
call fcn.18001bc10
mov qword [rsp + 0x2d0], rbx
mov qword [rsp + 0x2c8], r15
mov word [rsp + 0x2b8], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x78]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2b0]
call fcn.180001990
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x2b0]
call fcn.180018b24
nop
cmp qword [rsp + 0x2d0], 8
jb 0x180016957
mov rcx, qword [rsp + 0x2b8]
call fcn.180025e24
mov qword [rsp + 0x118], 0x40000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x118]
call fcn.1800183e4
inc dword [rsi + 0x120]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001699f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0xd90]
xor rcx, rsp
call fcn.180026540
lea r11, [rsp + 0xda0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret