Function at 0x140015b80
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x530
mov rax, qword [0x140025100]
xor rax, rsp
mov qword [rsp + 0x528], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
je 0x140015bd7
lea rdx, [0x1400049b8]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 2
test eax, eax
je 0x140015c07
lea rdx, [0x1400049f0]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x10], 0
je 0x140015c34
lea rdx, [0x140004a28]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x28], 0
je 0x140015c61
lea rdx, [0x140004a60]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 0x300
test eax, eax
je 0x140015c93
lea rdx, [0x140004a98]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x30], 0
je 0x140015cc0
lea rdx, [0x140004ad0]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 4
test eax, eax
je 0x140015cf0
lea rdx, [0x140004b08]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x38], 0
je 0x140015d1d
lea rdx, [0x140004b40]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 0x10
test eax, eax
je 0x140015d4d
lea rdx, [0x140004b80]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x48], 0
je 0x140015d7a
lea rdx, [0x140004bb8]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x50], 0
je 0x140015da7
lea rdx, [0x140004bf0]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x58], 0
je 0x140015dd4
lea rdx, [0x140004c28]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x60], 0
je 0x140015e01
lea rdx, [0x140004c60]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 0xc00
test eax, eax
je 0x140015e33
lea rdx, [0x140004c98]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x68], 0
je 0x140015e60
lea rdx, [0x140004cd0]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x20], 0
jne 0x140015e8d
lea rdx, [0x140004d10]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
cmp qword [rax + 0x40], 0
jne 0x140015eba
lea rdx, [0x140004d48]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov rax, qword [rsp + 0x540]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x150], eax
mov rax, qword [rsp + 0x540]
mov r9, qword [rax + 0x40]
lea r8, [0x140003fa8]
mov edx, 0x105
lea rcx, [rsp + 0x40]
call fcn.14001f670
mov dword [rsp + 0x154], eax
cmp dword [rsp + 0x154], 0
jne 0x140015f36
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x40]
call fcn.14001fb20
test eax, eax
je 0x140015f36
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
bts eax, 0xd
mov rcx, qword [rsp + 0x540]
mov dword [rcx + 8], eax
cmp dword [rsp + 0x150], 0xffffffff
jne 0x140015f67
mov rax, qword [rsp + 0x540]
mov r8, qword [rax + 0x40]
lea rdx, [0x140004d80]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
jmp 0x140015f9a
mov eax, dword [rsp + 0x150]
and eax, 0x10
test eax, eax
jne 0x140015f9a
mov rax, qword [rsp + 0x540]
mov r8, qword [rax + 0x40]
lea rdx, [0x140004db0]
mov ecx, 2
call fcn.1400058d0
mov dword [rsp + 0x30], 0x57
cmp dword [rsp + 0x30], 0
jne 0x14001619f
mov qword [rsp + 0x3b0], 0
lea rax, [rsp + 0x3c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x158
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x540]
mov r8, qword [rax + 0x20]
mov edx, 0x105
lea rcx, [rsp + 0x2a0]
call fcn.14000c440
mov dword [rsp + 0x3b8], eax
cmp dword [rsp + 0x3b8], 0
je 0x14001603a
mov eax, dword [rsp + 0x3b8]
and eax, 0xffff
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 8
test eax, eax
je 0x140016035
mov r8d, dword [rsp + 0x30]
lea rdx, [0x140004728]
mov ecx, 3
call fcn.1400058d0
mov ecx, dword [rsp + 0x30]
call fcn.140005800
jmp 0x14001619f
lea rcx, [rsp + 0x2a0]
call fcn.140020440
mov qword [rsp + 0x3b0], rax
cmp qword [rsp + 0x3b0], 0
je 0x140016065
mov rax, qword [rsp + 0x3b0]
mov byte [rax], 0
mov rax, qword [rsp + 0x540]
mov rcx, qword [rax + 0x20]
call fcn.140020440
mov qword [rsp + 0x3b0], rax
mov qword [rsp + 0x3c0], 0xffffffffffffffff
mov rax, qword [rsp + 0x540]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x3c8], rax
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
mov dword [rsp + 0x3d0], eax
mov qword [rsp + 0x4e0], 0
mov qword [rsp + 0x4e8], 0
lea rcx, [0x140004dd0]
call qword [sym.imp.msvcrt.dll_printf]
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 0x40
test eax, eax
jne 0x140016154
mov rax, qword [rsp + 0x540]
mov eax, dword [rax + 8]
and eax, 0x20
test eax, eax
je 0x140016106
mov dword [rsp + 0x520], 3
jmp 0x140016111
mov dword [rsp + 0x520], 2
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x28], rax
lea rax, [0x140014f10]
mov qword [rsp + 0x20], rax
lea r9, [0x140005c40]
mov r8d, dword [rsp + 0x520]
mov rdx, qword [rsp + 0x3b0]
lea rcx, [rsp + 0x2a0]
call fcn.14001fb90
mov dword [rsp + 0x30], eax
jmp 0x140016174
lea r8, [rsp + 0x3c0]
lea rdx, [0x140014f10]
mov rcx, qword [rsp + 0x540]
call fcn.140007c10
mov dword [rsp + 0x30], eax
mov eax, dword [0x1400259fc]
mov ecx, dword [0x1400259f8]
add ecx, eax
mov eax, ecx
add eax, dword [0x140025a00]
test eax, eax
jne 0x14001619f
lea rdx, [0x140004e30]
mov ecx, 2
call fcn.1400058d0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x528]
xor rcx, rsp
call fcn.140021740
add rsp, 0x530
pop rdi
ret