Function at 0x1004019d0
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rdi, rcx
mov r12, rdx
mov rbp, r8
call sub.msys_2.0.dll_strlen
mov rsi, rax
test rax, rax
je 0x100401ca3
lea rbx, [rax + 0x52]
test r12, r12
je 0x100401bf0
mov rcx, r12
call sub.msys_2.0.dll_strlen
mov ecx, 1
lea rdx, [rbx + rax]
call sub.msys_gcrypt_20.dll_gcry_calloc
mov rbx, rax
test rax, rax
je 0x100401c96
lea r13, [rax + 0x48]
mov rdx, rdi
mov rcx, r13
call sub.msys_2.0.dll_stpcpy
cmp byte [rdi + rsi - 1], 0x2f
mov rcx, rax
je 0x100401a48
mov byte [rcx], 0x2f
add rcx, 1
mov rdx, r12
call sub.msys_2.0.dll_strcpy
lea rdx, [rsp + 0x20]
mov rcx, r13
call sub.msys_2.0.dll_lstat
test eax, eax
jne 0x100401c38
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x8000
je 0x100401ac0
mov edx, 5
cmp ecx, 0x4000
je 0x100401ac0
mov edx, 3
cmp ecx, 0x2000
je 0x100401ac0
mov edx, 4
cmp ecx, 0x6000
je 0x100401ac0
mov edx, 6
cmp ecx, 0x1000
je 0x100401ac0
xor edx, edx
cmp ecx, 0xa000
setne dl
lea edx, [rdx + rdx*8 + 2]
nop
mov dword [rbx + 0x38], edx
test ah, 1
je 0x100401ad0
or qword [rbx + 8], 0x100
test al, 0x80
je 0x100401adc
or qword [rbx + 8], 0x80
test al, 0x40
je 0x100401ae5
or qword [rbx + 8], 0x40
test al, 0x20
je 0x100401aee
or qword [rbx + 8], 0x20
test al, 0x10
je 0x100401af7
or qword [rbx + 8], 0x10
test al, 8
je 0x100401b00
or qword [rbx + 8], 8
test al, 4
je 0x100401b09
or qword [rbx + 8], 4
test al, 2
je 0x100401b12
or qword [rbx + 8], 2
test al, 1
je 0x100401b1b
or qword [rbx + 8], 1
test ah, 2
je 0x100401b28
or qword [rbx + 8], 0x200
movzx eax, word [rsp + 0x34]
mov qword [rbx + 0x10], rax
mov eax, dword [rsp + 0x38]
mov qword [rbx + 0x18], rax
mov eax, dword [rsp + 0x3c]
mov qword [rbx + 0x20], rax
test edx, edx
je 0x100401ba8
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x30], rax
mov rsi, qword [0x100416e80]
mov eax, dword [rsi]
test eax, eax
jne 0x100401bb8
movabs rdx, 0xd1b71758e2196
mov rax, qword [rbp + 8]
mov qword [rax], rbx
mov rax, qword [rbp + 0x10]
mov qword [rbp + 8], rbx
lea r8, [rax + 1]
movabs rax, 0xd288ce703afb7e91
imul rax, r8
mov qword [rbp + 0x10], r8
ror rax, 3
cmp rdx, rax
jae 0x100401bd0
xor eax, eax
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x28], rax
jmp 0x100401b45
call sub.msys_gpg_error_0.dll_gpgrt_log_get_stream
xor edx, edx
mov rcx, rbx
mov r8, rax
call fcn.100405980
jmp 0x100401b5b
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x100401b93
xor r9d, r9d
lea rdx, str._GNUPG:__PROGRESS_gpgtar_c__zu__zu_n
call sub.msys_gpg_error_0.dll_gpgrt_fprintf
jmp 0x100401b93
mov rdx, rbx
mov ecx, 1
call sub.msys_gcrypt_20.dll_gcry_calloc
mov rbx, rax
test rax, rax
je 0x100401c96
lea r13, [rbx + 0x48]
mov rdx, rdi
mov rcx, r13
call sub.msys_2.0.dll_strcpy
cmp byte [rbx + rsi + 0x47], 0x2f
lea rax, [rsi - 1]
jne 0x100401a50
mov byte [rbx + rax + 0x48], 0
jmp 0x100401a50
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x100401c78
movzx esi, ax
mov ecx, esi
call sub.msys_gpg_error_0.dll_gpg_strerror
mov rdx, r13
lea rcx, str.error_stat_ing__s:__s_n
mov r8, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
test esi, esi
je 0x100401b4e
mov rcx, rbx
call sub.msys_gcrypt_20.dll_gcry_free
jmp 0x100401b93
xor ecx, ecx
call sub.msys_gpg_error_0.dll_gpg_strerror
mov rdx, r13
lea rcx, str.error_stat_ing__s:__s_n
mov r8, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x100401b4e
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx eax, ax
jmp 0x100401b95
lea r9, str.add_entry
mov r8d, 0x14a
lea rdx, str.gpgtar_create.c
lea rcx, str.dnamelen
call sub.msys_gpg_error_0.dll__gpgrt_log_assert
nop
nop word cs:[rax + rax]
nop