Function at 0x140155c80
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1403aa6c8]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor ebx, ebx
mov r14d, ecx
cmp dword [0x1403dbd68], ebx
mov esi, ebx
mov r12d, ebx
mov r13d, ebx
je 0x140155ccb
mov dword [0x1403dbde0], ebx
test ecx, ecx
je 0x140155cd5
mov dword [0x1403dbde0], 1
mov qword [0x1404cc23c], rbx
lea rdi, [0x1404cbfdc]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], bl
jne 0x140155ce7
mov dword [0x1404cc244], eax
test ecx, ecx
je 0x140155da6
movzx ecx, byte [0x1404cbfdc]
mov rax, rdi
test cl, cl
je 0x140155d2c
nop dword [rax + rax]
cmp byte [rax], 0x5c
jne 0x140155d18
mov byte [rax], 0x2f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsinc]
cmp byte [rax], bl
jne 0x140155d10
movzx ecx, byte [0x1404cbfdc]
mov rsi, rdi
cmp cl, 0x2f
jne 0x140155d4e
mov dword [0x1404cc240], 1
lea rsi, [0x1404cbfdd]
mov word [rsp + 0x30], 0x2f
jmp 0x140155da6
movzx ecx, cl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x140155da6
cmp byte [0x1404cbfdd], 0x3a
jne 0x140155da6
cmp byte [0x1404cbfde], 0x2f
lea rsi, [0x1404cbfde]
movzx eax, byte [0x1404cbfdc]
mov byte [rsp + 0x30], al
lea rax, [rsp + 0x32]
mov dword [0x1404cc240], 1
mov byte [rsp + 0x31], 0x3a
jne 0x140155da4
mov byte [rsp + 0x32], 0x2f
lea rax, [rsp + 0x33]
lea rsi, [0x1404cbfdf]
mov byte [rax], bl
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140154620
mov edi, eax
test eax, eax
jne 0x14015617b
mov qword [rsp + 0x180], r15
lea r15, [rsp + 0x30]
mov byte [rsp + 0x30], bl
test r14d, r14d
jne 0x140155e07
cmp dword [0x1403dbd70], ebx
je 0x140155df0
lea edx, [rax + 0x2f]
lea rcx, [0x1404cbfdc]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
mov rsi, rax
test rsi, rsi
lea rcx, [rsi + 1]
lea rdx, [0x1404cbfdc]
cmove rcx, rdx
mov rsi, rcx
jmp 0x140155e0e
lea rdx, [0x1404cbfdc]
movzx r14d, byte [rsi]
lea r8, [0x140000000]
test r14d, r14d
je 0x140155fe4
lea eax, [r14 - 0x20]
cmp eax, 0x5c
ja case.0x140155e43.36
movzx eax, byte [r8 + rax + 0x15634c]
mov ecx, dword [r8 + rax*4 + 0x156338]
add rcx, r8
jmp rcx
lea rcx, [rsp + 0x30]
mov byte [r15], bl
call fcn.1401563b0
movzx ecx, byte [rsp + 0x30]
cmp cl, byte [0x14032a254]
movzx eax, byte [rsp + 0x31]
jne 0x140155e7d
cmp al, byte [0x14032a255]
jne 0x140155e7d
mov byte [rsp + 0x30], bl
lea r15, [rsp + 0x30]
mov r12, rbx
jmp 0x140155f50
cmp dword [0x1403dbdb4], ebx
jne 0x140155eb9
cmp cl, byte [0x14032a250]
jne 0x140155eb9
cmp al, byte [0x14032a251]
jne 0x140155eb9
movzx eax, byte [rsp + 0x32]
cmp al, byte [0x14032a252]
jne 0x140155eb9
mov byte [rsp + 0x30], bl
lea r15, [rsp + 0x30]
mov r13d, 1
mov r12, rbx
jmp 0x140155f50
test cl, cl
je 0x140155ede
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140154620
mov edi, eax
and eax, 0x7f00
cmp eax, 0x100
jg 0x140156171
lea r15, [rsp + 0x30]
mov r12, rbx
jmp 0x140155f50
mov byte [r15], 0x5f
inc r15
jmp 0x140155f50
mov r12, r15
mov byte [r15], 0x3b
inc r15
jmp 0x140155f50
cmp dword [0x1403dbd88], ebx
jne case.0x140155e43.33
mov rcx, rdx
call fcn.140153e80
test eax, eax
jne case.0x140155e43.33
mov byte [r15], 0x20
inc r15
jmp 0x140155f50
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
test eax, eax
jne 0x140155f2d
cmp r14d, 0x7f
jb 0x140155f50
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbclen]
mov rdx, rsi
mov rcx, r15
mov r8, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsinc]
mov r15, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsinc]
mov rsi, rax
movzx r14d, byte [rax]
test r14d, r14d
je 0x140155f78
lea rdx, [0x1404cbfdc]
lea r8, [0x140000000]
jmp 0x140155e22
test r13d, r13d
je 0x140155fe4
cmp dword [0x1403dbd84], ebx
lea rsi, [0x1404cbfdc]
jne 0x140155feb
mov r8d, 0x4000
lea rdx, [0x1404c3e38]
mov rcx, rsi
call fcn.14019d4e0
mov r8, rax
lea rdx, str.warning:__skipped__..___path_component_s__in__s_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
xor r9d, r9d
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
test edi, 0xffff80ff
jne 0x140155feb
and edi, 0x7f00
or edi, 1
jmp 0x140155feb
lea rsi, [0x1404cbfdc]
movsxd rdx, dword [0x1404cc244]
mov rcx, rsi
call fcn.140153970
cmp byte [rax], 0x2f
jne 0x1401561a3
mov edx, 4
mov rcx, rsi
call fcn.140154620
cmp dword [0x1404cc23c], ebx
je 0x1401560eb
cmp dword [0x1403dbd84], ebx
jne 0x140156069
mov r8d, 0x4000
lea rdx, [0x1404c3e38]
mov rcx, rsi
call fcn.14019d4e0
mov r8, rax
lea rdx, str.___creating:___22s_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
xor r9d, r9d
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov rax, qword [0x1404bbe30]
mov edx, dword [rax + 0x24]
test dl, 0x6f
je 0x1401560dc
and edx, 0x7f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1401560dc
mov r8d, 0x4000
lea rdx, [0x1404c3e38]
mov rcx, rsi
call fcn.14019d4e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea rdx, str._nwarning___d_:_could_not_set_file_attributes_for__s_n
mov r8d, eax
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, 1
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
and edi, 0xffff90ff
bts edi, 0xc
jmp 0x140156171
cmp dword [0x1403dbddc], 1
jne 0x140156167
mov rax, qword [0x1404bbe30]
mov edx, dword [rax + 0x24]
test dl, 0x6f
je 0x140156167
and edx, 0x7f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x140156167
mov r8d, 0x4000
lea rdx, [0x1404c3e38]
mov rcx, rsi
call fcn.14019d4e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea rdx, str._nwarning___d_:_could_not_set_file_attributes_for__s_n
mov r8d, eax
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, 1
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
and edi, 0xffff82ff
bts edi, 9
mov r15, qword [rsp + 0x180]
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140229810
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov byte [r15], bl
cmp dword [0x1403dbda4], ebx
jne 0x1401561f0
test r12, r12
je 0x1401561f0
movzx ecx, byte [r12 + 1]
lea rsi, [r12 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
je 0x1401561e1
nop dword [rax + rax]
movzx ecx, byte [rsi + 1]
inc rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
test eax, eax
jne 0x1401561d0
cmp byte [rsi], bl
lea rsi, [0x1404cbfdc]
jne 0x1401561f0
mov byte [r12], bl
lea rcx, [rsp + 0x30]
call fcn.1401563b0
cmp byte [rsp + 0x30], bl
jne 0x140156259
mov r8d, 0x4000
lea rdx, [0x1404c3e38]
mov rcx, rsi
call fcn.14019d4e0
mov r8, rax
lea rdx, str.mapname:__conversion_of__s_failed_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
mov r9d, 1
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
and edi, 0xffff83ff
or edi, 0x300
jmp 0x140156171
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.140154620
mov edx, 4
mov rcx, rsi
call fcn.140154620
mov rax, qword [0x1404bbe30]
test byte [rax + 0x28], 0x20
je 0x140156171
movzx eax, byte [0x1404cc248]
lea rcx, [0x140000000]
add al, 0x60
mov byte [rsp + 0x20], al
nop word [rax + rax]
movzx eax, byte [rbx + rcx + 0x2904a4]
mov byte [rsp + rbx + 0x21], al
lea rbx, [rbx + 1]
test al, al
jne 0x1401562a0
cmp dword [0x1403dbd84], 0
jne 0x140156307
mov r8d, 0x4000
lea rdx, [0x1404c3e38]
mov rcx, rsi
call fcn.14019d4e0
mov r9, rax
lea r8, [rsp + 0x20]
lea rdx, str.labelling__s___22s_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
mov r8d, eax
lea rdx, [0x1404bbe38]
xor r9d, r9d
lea rcx, [0x1403dbd40]
call qword [0x1404cc1f8]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
jne 0x140156167
lea rdx, str.mapname:__error_setting_volume_label_n
lea rcx, [0x1404bbe38]
call fcn.1401066c0
jmp 0x14015622b