Function at 0x10048d5b0
Capabilities:
Get file attributes

Disassembly:
push r15
mov eax, 0x4138
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.100513c00
sub rsp, rax
movaps xmmword [rsp + 0x4120], xmm6
mov qword [rsp + 0x4188], rdx
mov rbx, rcx
call sub.msys_2.0.dll_stat
mov r13d, eax
test eax, eax
jne 0x10048d6c5
mov r10, qword [rsp + 0x4188]
mov esi, dword [r10 + 0x10]
mov eax, esi
and eax, 0xf000
cmp eax, 0x4000
jne 0x10048d6c5
mov rcx, rbx
call sub.msys_2.0.dll_strlen
mov r10, qword [rsp + 0x4188]
cmp rax, 0x1ffb
ja 0x10048dac4
mov eax, dword [r10]
lea rbp, [rsp + 0x110]
mov r8, rbx
lea rdx, str._s_cur
mov rcx, rbp
movq xmm6, qword [r10 + 0x18]
mov r14d, dword [r10 + 0x20]
lea r12, [rsp + 0x90]
mov dword [rsp + 0x40], eax
mov rax, qword [r10 + 8]
mov qword [rsp + 0x4188], r10
mov rdi, qword [r10 + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [r10 + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [r10 + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [r10 + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [r10 + 0x60]
mov dword [rsp + 0x44], eax
mov rax, qword [r10 + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [r10 + 0x78]
mov qword [rsp + 0x50], rax
call sub.msys_2.0.dll_sprintf
mov rdx, r12
mov rcx, rbp
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10048d6c5
mov eax, dword [rsp + 0xa0]
and eax, 0xf000
cmp eax, 0x4000
je 0x10048d6e8
movaps xmm6, xmmword [rsp + 0x4120]
mov eax, r13d
add rsp, 0x4138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str._s_tmp
mov rcx, rbp
mov r8, rbx
call sub.msys_2.0.dll_sprintf
mov rdx, r12
mov rcx, rbp
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10048d6c5
mov eax, dword [rsp + 0xa0]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10048d6c5
mov r8, rbx
lea rdx, str._s_new
mov rcx, rbp
call sub.msys_2.0.dll_sprintf
mov rdx, r12
mov rcx, rbp
call sub.msys_2.0.dll_stat
mov edx, eax
test eax, eax
jne 0x10048d6c5
mov eax, dword [rsp + 0xa0]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10048d6c5
mov eax, dword [0x100661aa0]
cmp dword [rsp + 0x90], eax
mov r15, qword [rsp + 0xd0]
mov r10, qword [rsp + 0x4188]
je 0x10048dada
movdqa xmm2, xmmword [rsp + 0x90]
mov dword [rsp + 0x70], edx
xor ecx, ecx
xor r11d, r11d
movdqa xmm3, xmmword [rsp + 0xa0]
mov dword [rsp + 0x80], esi
lea rax, [rsp + 0x2110]
lea r9, [0x10053bba0]
movdqa xmm4, xmmword [rsp + 0xb0]
movaps xmmword [0x100661aa0], xmm2
movdqa xmm5, xmmword [rsp + 0xc0]
movdqa xmm2, xmmword [rsp + 0xd0]
movaps xmmword [0x100661ab0], xmm3
movdqa xmm3, xmmword [rsp + 0xe0]
movaps xmmword [0x100661ac0], xmm4
movdqa xmm4, xmmword [rsp + 0xf0]
movaps xmmword [0x100661ad0], xmm5
movdqa xmm5, xmmword [rsp + 0x100]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x4180], rbx
mov qword [rsp + 0x4188], r10
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x84], r14d
mov r14, rax
mov qword [rsp + 0x88], rdi
mov rdi, r11
mov dword [rsp + 0x74], r13d
mov r13, rcx
movaps xmmword [0x100661ae0], xmm2
movaps xmmword [0x100661af0], xmm3
movaps xmmword [0x100661b00], xmm4
movaps xmmword [0x100661b10], xmm5
mov rbx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x4180]
lea rdx, str._s__s
mov rcx, rbx
call sub.msys_2.0.dll_sprintf
mov r8, rbx
lea rdx, [0x10053bbbf]
mov rcx, r14
call sub.msys_2.0.dll_sprintf
mov rcx, r14
call sub.msys_2.0.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.msys_2.0.dll_opendir
mov rbx, rax
test rax, rax
je 0x10048db27
lea r15, [r14 + rsi]
nop dword [rax + rax]
mov rcx, rbx
call sub.msys_2.0.dll_readdir
test rax, rax
je 0x10048d952
cmp byte [rax + 0x18], 0x2e
je 0x10048d8b8
lea rbp, [rax + 0x18]
mov rcx, rbp
call sub.msys_2.0.dll_strlen
lea rcx, [rsi + rax]
cmp rcx, 0x2000
ja 0x10048d8b8
mov rdx, rbp
mov rcx, r15
lea r8, [rax + 1]
call sub.msys_2.0.dll_memcpy
mov rdx, r12
mov rcx, r14
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10048d8b8
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb8]
add qword [rsp + 0x60], 1
add qword [rsp + 0x58], rcx
cmp rdi, rdx
mov rcx, rdx
cmovge rcx, rdi
cmp rdx, rax
cmovne rdi, rcx
cmp r13, rax
mov rcx, rbx
cmovl r13, rax
call sub.msys_2.0.dll_readdir
test rax, rax
jne 0x10048d8c9
mov rcx, rbx
call sub.msys_2.0.dll_closedir
cmp dword [rsp + 0x70], 1
lea r9, [0x10053bbc3]
je 0x10048d975
mov dword [rsp + 0x70], 1
jmp 0x10048d862
mov rax, r13
mov r15, qword [rsp + 0x78]
movq xmm0, qword [rsp + 0x28]
mov rbx, rdi
test rax, rax
mov esi, dword [rsp + 0x80]
movq xmm1, qword [rsp + 0x60]
mov qword [0x100661a50], rbx
cmovne r15, rax
mov eax, dword [rsp + 0x40]
mov r10, qword [rsp + 0x4188]
movq qword [0x100661a38], xmm6
and esi, 0xffffbfff
movhps xmm1, qword [rsp + 0x48]
mov r13d, dword [rsp + 0x74]
mov r14d, dword [rsp + 0x84]
mov dword [0x100661a20], eax
mov rax, qword [rsp + 0x20]
movq xmm5, r15
or esi, 0x8000
punpcklqdq xmm0, xmm5
mov rdi, qword [rsp + 0x88]
movups xmmword [0x100661a88], xmm1
mov qword [0x100661a28], rax
mov eax, 1
movdqa xmm2, xmmword [0x100661a20]
mov word [0x100661a34], ax
mov rax, qword [rsp + 0x58]
movups xmmword [0x100661a58], xmm0
movq xmm0, qword [rsp + 0x30]
mov qword [0x100661a48], rax
mov eax, dword [rsp + 0x44]
movhps xmm0, qword [rsp + 0x38]
movups xmmword [r10], xmm2
mov dword [0x100661a80], eax
mov rax, qword [rsp + 0x50]
mov dword [0x100661a30], esi
mov dword [0x100661a40], r14d
mov qword [0x100661a78], rdi
mov qword [0x100661a98], rax
movups xmmword [0x100661a68], xmm0
movdqa xmm3, xmmword [0x100661a30]
movdqa xmm4, xmmword [0x100661a40]
movdqa xmm5, xmmword [0x100661a50]
movdqa xmm1, xmmword [0x100661a60]
movdqa xmm2, xmmword [0x100661a70]
movups xmmword [r10 + 0x10], xmm3
movdqa xmm3, xmmword [0x100661a80]
movups xmmword [r10 + 0x20], xmm4
movdqa xmm4, xmmword [0x100661a90]
movups xmmword [r10 + 0x30], xmm5
movups xmmword [r10 + 0x40], xmm1
movups xmmword [r10 + 0x50], xmm2
movups xmmword [r10 + 0x60], xmm3
movups xmmword [r10 + 0x70], xmm4
jmp 0x10048d6c5
call sub.msys_2.0.dll___errno
mov r13d, 0xffffffff
mov dword [rax], 0x5b
jmp 0x10048d6c5
mov rax, qword [0x100661aa8]
cmp qword [rsp + 0x98], rax
jne 0x10048d779
mov rax, qword [0x100661ad0]
cmp qword [rsp + 0xc0], rax
jne 0x10048d779
cmp r15, qword [0x100661ae0]
jne 0x10048d779
lea rsi, [0x100661a20]
mov ecx, 0x20
mov rdi, r10
rep movsd dword [rdi], dword [rsi]
jmp 0x10048d6c5
mov r13d, dword [rsp + 0x74]
jmp 0x10048d6c5