Function at 0x140082590
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1403bf008]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rdi, rcx
xor r12d, r12d
call fcn.1400a4cc0
mov rsi, rax
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14008d620
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, [rbp]
call fcn.1400af4c4
cmp eax, 8
je 0x140082603
cmp eax, 0xffffffff
je 0x140082603
mov bl, 1
jmp 0x140082605
xor bl, bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140082645
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082640
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fd1
call fcn.1400ae0c8
test bl, bl
je 0x140082f99
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
xor r8d, r8d
lea rdx, [0x140395678]
lea rcx, [rbp - 0x28]
call fcn.140088850
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x60]
call fcn.14029e460
mov rdx, rsi
lea rcx, [rbp + 0x60]
call fcn.140084dc0
nop
cmp qword [rbp + 0xf0], 0
je 0x140082c58
mov qword [rsp + 0x30], r12
mov word [rsp + 0x38], 1
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp], xmm0
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
sete byte [rsp + 0x38]
mov byte [rsp + 0x39], 0
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rbp]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.14008de50
nop
lea rcx, [rbp + 0x60]
call fcn.140084d20
cmp qword [rbp - 0x38], 0
je 0x140082c1d
lea rdx, [rbp + 0x40]
call fcn.1400a51d0
nop
lea rax, [rsp + 0x30]
mov qword [rbp], rax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140086a30
mov rbx, rax
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x50]
call fcn.140086a30
nop
mov r9, rbx
mov r8, rax
lea rdx, [rbp + 0x20]
call fcn.1400a4f80
nop
lea r11, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r11, qword [rbp + 0x20]
mov rbx, qword [rbp + 0x30]
cmp rbx, 0xa
jb 0x1400827d2
lea r10, [rbx - 9]
lea r10, [r11 + r10*2]
mov rcx, r11
lea r13, [0x140395660]
nop dword [rax]
mov rax, r10
sub rax, rcx
sar rax, 1
je 0x1400827d2
cmp word [rcx], 0x74
je 0x14008279b
add rcx, 2
sub rax, 1
jmp 0x140082789
test rcx, rcx
je 0x1400827d2
mov r8d, 0xa
mov rdx, r13
mov r9, rcx
sub r9, r13
nop
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x1400827cc
add rdx, 2
sub r8, 1
jne 0x1400827b0
sub rcx, r11
sar rcx, 1
jmp 0x1400827d9
add rcx, 2
jmp 0x140082780
mov rcx, 0xffffffffffffffff
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
cmp ecx, 0xffffffff
je 0x140082995
add ecx, 0xa
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
movsxd r8, ecx
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140088850
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp]
call fcn.1400a53f0
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140086930
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14008288a
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082885
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fd7
call fcn.1400ae0c8
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400828dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400828d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fdd
call fcn.1400ae0c8
lea rcx, [rdi + 0x60]
lea rdx, [rsp + 0x30]
call fcn.140085470
nop
mov r9, rax
cmp qword [rax + 0x18], 0x10
jb 0x1400828f8
mov r9, qword [rax]
mov rdi, qword [rax + 0x10]
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x50]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14008293b
lea rax, [rdi + rcx]
mov qword [rbp - 0x58], rax
lea rbx, [rbp - 0x68]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x68]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.14029ddb0
mov byte [rdi + rbx], 0
jmp 0x140082950
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.1400917e0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140082abf
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082aba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fcb
jmp 0x140082aba
lea r8, [rbp + 0x20]
lea rdx, [rsp + 0x30]
call fcn.1400a53f0
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140086930
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400829ec
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400829e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fe3
call fcn.1400ae0c8
lea rcx, [rdi + 0x60]
lea rdx, [rsp + 0x30]
call fcn.140085470
mov rdi, rax
mov rax, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x50]
mov rcx, rdx
sub rcx, rax
cmp rcx, 0xa
jb 0x140082a48
lea rcx, [rax + 0xa]
mov qword [rbp - 0x58], rcx
lea rbx, [rbp - 0x68]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x68]
add rbx, rax
mov r8d, 0xa
lea rdx, str.task_ids:
mov rcx, rbx
call fcn.14029ddb0
mov byte [rbx + 0xa], 0
lea rax, [rbp - 0x68]
jmp 0x140082a68
mov qword [rsp + 0x20], 0xa
lea r9, str.task_ids:
xor r8d, r8d
lea edx, [r8 + 0xa]
lea rcx, [rbp - 0x68]
call fcn.1400917e0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140082a75
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140088dc0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140082abf
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082aba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fe9
call fcn.1400ae0c8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140086a30
mov rbx, rax
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.140086a30
nop
mov r9, rbx
mov r8, rax
lea rdx, [rbp]
call fcn.1400a4d30
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140086770
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140082b45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082b3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fef
call fcn.1400ae0c8
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140082b80
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082b7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082ff5
call fcn.1400ae0c8
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140082bd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082bcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082ffb
call fcn.1400ae0c8
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140082c1d
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082c17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083001
call fcn.1400ae0c8
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140082c58
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082c53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083007
call fcn.1400ae0c8
cmp qword [rbp - 0x18], 0
je 0x140082ef0
mov r8, rsi
lea rdx, [rbp - 0x48]
call fcn.1400a5330
cmp qword [rax + 0x18], 8
jb 0x140082c79
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140082cc4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082cbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008300d
call fcn.1400ae0c8
test bl, 2
je 0x140082d2d
mov r8, rsi
lea rdx, [rbp - 0x48]
call fcn.1400a5330
cmp qword [rax + 0x18], 8
jb 0x140082cdf
mov rax, qword [rax]
or ebx, 0xfffffffd
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140082d2d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082d28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083013
call fcn.1400ae0c8
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x170]
call fcn.14029e460
mov rdx, rsi
lea rcx, [rbp + 0x170]
call fcn.140083f80
nop
cmp qword [rbp + 0x1f8], 0
je 0x140082e18
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x48]
call fcn.1400a53f0
nop
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140082d7a
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp + 0x170]
call fcn.140093690
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140082dc6
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082dc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083019
call fcn.1400ae0c8
lea rcx, [rbp + 0x178]
call fcn.140087b80
test rax, rax
jne 0x140082e18
mov rax, qword [rbp + 0x170]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x1b8], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x180]
and eax, 0x17
mov dword [rbp + rcx + 0x180], eax
mov edx, dword [rbp + rcx + 0x184]
and edx, eax
jne 0x14008301f
mov r8, rsi
lea rdx, [rbp - 0x48]
call fcn.1400a5330
cmp qword [rax + 0x18], 8
jb 0x140082e2e
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140082e79
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082e74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083073
call fcn.1400ae0c8
test bl, 2
jne 0x140082ee3
mov r8, rsi
lea rdx, [rbp - 0x48]
call fcn.1400a5330
cmp qword [rax + 0x18], 8
jb 0x140082e94
mov rax, qword [rax]
or ebx, 2
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140082ee3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082edd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140083079
call fcn.1400ae0c8
nop
lea rcx, [rbp + 0x170]
call fcn.140083080
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x70]
call fcn.140084c70
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x110]
call fcn.1400b5da8
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140082f99
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082f94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140082fc5
call fcn.1400ae0c8
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1400adbc0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
call fcn.1402a9118
nop
call fcn.1402a9118
nop
call fcn.1402a9118
nop
call fcn.1402a9118
nop
call fcn.1402a9118
int3
call fcn.1402a9118
int3
call fcn.1402a9118
int3
call fcn.1402a9118
nop
call fcn.1402a9118
nop
call fcn.1402a9118
nop
call fcn.1402a9118
nop
call fcn.1402a9118
int3
call fcn.1402a9118
int3
call fcn.1402a9118
nop
call fcn.1402a9118
int3
test dl, 4
je 0x14008302d
lea rbx, str.ios_base::badbit_set
jmp 0x140083042
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.14007d950
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14007e800
lea rdx, [0x1403bd108]
lea rcx, [rsp + 0x70]
call fcn.14029ea24
int3
call fcn.1402a9118
int3
call fcn.1402a9118
int3