Function at 0x10047e310
Capabilities:
Get file attributes

Disassembly:
push r15
mov eax, 0x4128
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1004d2960
sub rsp, rax
mov r12, rcx
mov rbp, rdx
call sub.msys_2.0.dll_stat
mov r15d, eax
test eax, eax
jne 0x10047e3ff
mov ebx, dword [rbp + 0x10]
mov eax, ebx
and eax, 0xf000
cmp eax, 0x4000
jne 0x10047e3ff
mov rcx, r12
call sub.msys_2.0.dll_strlen
cmp rax, 0x1ffb
ja 0x10047e800
mov eax, dword [rbp]
lea rsi, [rsp + 0x120]
mov r8, r12
lea rdx, str._s_cur
mov rcx, rsi
lea rdi, [rsp + 0xa0]
mov r13, qword [rbp + 0x70]
mov r14, qword [rbp + 0x78]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x34], eax
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x50], rax
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x78], eax
call sub.msys_2.0.dll_sprintf
mov rdx, rdi
mov rcx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10047e3ff
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x4000
je 0x10047e420
mov eax, r15d
add rsp, 0x4128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str._s_tmp
mov rcx, rsi
mov r8, r12
call sub.msys_2.0.dll_sprintf
mov rdx, rdi
mov rcx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10047e3ff
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10047e3ff
lea rdx, str._s_new
mov rcx, rsi
mov r8, r12
call sub.msys_2.0.dll_sprintf
mov rdx, rdi
mov rcx, rsi
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10047e3ff
mov eax, dword [rsp + 0xb0]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10047e3ff
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x80], rax
mov eax, dword [0x100602740]
cmp dword [rsp + 0xa0], eax
je 0x10047e816
movdqa xmm0, xmmword [rsp + 0xa0]
mov dword [rsp + 0x98], ebx
xor ecx, ecx
lea rax, [rsp + 0x2120]
movdqa xmm1, xmmword [rsp + 0xb0]
lea r9, [0x1004f8660]
movdqa xmm2, xmmword [rsp + 0xc0]
mov dword [rsp + 0x7c], 2
movdqa xmm3, xmmword [rsp + 0xd0]
movaps xmmword [0x100602740], xmm0
movdqa xmm4, xmmword [rsp + 0xe0]
movdqa xmm5, xmmword [rsp + 0xf0]
movaps xmmword [0x100602750], xmm1
movdqa xmm0, xmmword [rsp + 0x100]
movdqa xmm1, xmmword [rsp + 0x110]
movaps xmmword [0x100602760], xmm2
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x9c], r15d
mov qword [rsp + 0x4170], r12
mov qword [rsp + 0x90], r14
mov r14, rax
mov qword [rsp + 0x4178], rbp
mov rbp, rcx
movaps xmmword [0x100602770], xmm3
movaps xmmword [0x100602780], xmm4
movaps xmmword [0x100602790], xmm5
movaps xmmword [0x1006027a0], xmm0
movaps xmmword [0x1006027b0], xmm1
mov r8, qword [rsp + 0x4170]
lea rdx, str._s__s
mov rcx, rsi
call sub.msys_2.0.dll_sprintf
mov r8, rsi
lea rdx, [0x1004f867f]
mov rcx, r14
call sub.msys_2.0.dll_sprintf
mov rcx, r14
call sub.msys_2.0.dll_strlen
mov rcx, rsi
mov rbx, rax
call sub.msys_2.0.dll_opendir
mov r12, rax
test rax, rax
je 0x10047e86e
lea r15, [r14 + rbx]
nop dword [rax]
mov rcx, r12
call sub.msys_2.0.dll_readdir
test rax, rax
je 0x10047e68c
cmp byte [rax + 0x18], 0x2e
je 0x10047e5e8
lea r13, [rax + 0x18]
mov rcx, r13
call sub.msys_2.0.dll_strlen
lea rdx, [rbx + rax]
cmp rdx, 0x1fff
ja 0x10047e5e8
mov rdx, r13
mov rcx, r15
lea r8, [rax + 1]
call fcn.1004d2fe0
mov rdx, rdi
mov rcx, r14
call sub.msys_2.0.dll_stat
test eax, eax
jne 0x10047e5e8
mov rdx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xc8]
add qword [rsp + 0x70], 1
add qword [rsp + 0x68], rcx
cmp rbp, rdx
mov rcx, rdx
cmovge rcx, rbp
cmp rdx, rax
cmovne rbp, rcx
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
cmovge rax, rcx
mov rcx, r12
mov qword [rsp + 0x60], rax
call sub.msys_2.0.dll_readdir
test rax, rax
jne 0x10047e5f9
mov rcx, r12
call sub.msys_2.0.dll_closedir
cmp dword [rsp + 0x7c], 1
lea r9, [0x1004f8683]
jne 0x10047e7f3
mov rax, qword [rsp + 0x60]
mov edi, dword [rsp + 0x30]
mov rsi, rbp
mov edx, 1
mov ebx, dword [rsp + 0x98]
mov r13, qword [rsp + 0x88]
mov word [0x1006026d4], dx
test rax, rax
mov dword [0x1006026c0], edi
cmove rax, qword [rsp + 0x80]
xor r15d, r15d
mov rdi, qword [rsp + 0x28]
and bh, 0xbf
mov rbp, qword [rsp + 0x4178]
mov qword [0x1006026f0], rsi
mov qword [0x100602700], rax
mov rax, qword [rsp + 0x40]
or bh, 0x80
mov qword [0x1006026c8], rdi
mov rdi, qword [rsp + 0x58]
mov qword [0x100602708], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1006026d8], rdi
mov edi, dword [rsp + 0x34]
mov qword [0x100602710], rax
mov rax, qword [rsp + 0x50]
mov dword [0x1006026e0], edi
mov rdi, qword [rsp + 0x68]
mov qword [0x100602718], rax
mov eax, dword [rsp + 0x78]
mov qword [0x1006026e8], rdi
mov rdi, qword [rsp + 0x38]
mov dword [0x100602720], eax
mov rax, qword [rsp + 0x70]
mov r14, qword [rsp + 0x90]
mov dword [0x1006026d0], ebx
mov qword [0x1006026f8], rdi
mov qword [0x100602728], rax
mov qword [0x100602730], r13
movdqa xmm2, xmmword [0x1006026c0]
movdqa xmm3, xmmword [0x1006026d0]
movdqa xmm4, xmmword [0x1006026e0]
mov qword [0x100602738], r14
movdqa xmm5, xmmword [0x1006026f0]
movups xmmword [rbp], xmm2
movdqa xmm2, xmmword [0x100602700]
movups xmmword [rbp + 0x10], xmm3
movdqa xmm3, xmmword [0x100602710]
movups xmmword [rbp + 0x20], xmm4
movdqa xmm4, xmmword [0x100602720]
movups xmmword [rbp + 0x30], xmm5
movdqa xmm5, xmmword [0x100602730]
movups xmmword [rbp + 0x40], xmm2
movups xmmword [rbp + 0x50], xmm3
movups xmmword [rbp + 0x60], xmm4
movups xmmword [rbp + 0x70], xmm5
jmp 0x10047e3ff
mov dword [rsp + 0x7c], 1
jmp 0x10047e598
call sub.msys_2.0.dll___errno
mov r15d, 0xffffffff
mov dword [rax], 0x5b
jmp 0x10047e3ff
mov rax, qword [0x100602748]
cmp qword [rsp + 0xa8], rax
jne 0x10047e4af
mov rax, qword [0x100602770]
cmp qword [rsp + 0xd0], rax
jne 0x10047e4af
mov rax, qword [rsp + 0x80]
cmp rax, qword [0x100602780]
jne 0x10047e4af
lea rsi, [0x1006026c0]
mov ecx, 0x20
mov rdi, rbp
xor r15d, r15d
rep movsd dword [rdi], dword [rsi]
jmp 0x10047e3ff
mov r15d, dword [rsp + 0x9c]
jmp 0x10047e3ff