Function at 0x100401120
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
cmp byte [rdx], 0x2f
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov rbp, rdx
mov esi, r8d
je 0x10040131d
mov rdi, qword [section..bss]
test r8d, r8d
je 0x100401207
xor esi, esi
test rdi, rdi
setne sil
lea rdx, [0x1004261b8]
mov rcx, rbp
call sub.msys_2.0.dll_fopen
mov rbx, rax
test rax, rax
je 0x10040137a
cmp dword [0x100436008], 2
jg 0x100401324
mov rcx, rbx
call sub.msys_2.0.dll_fileno
mov esi, eax
test eax, eax
js 0x1004012c8
lea rdx, [rsp + 0x40]
mov ecx, eax
call sub.msys_2.0.dll_fstat
test eax, eax
jne 0x1004012c8
xor edx, edx
mov dword [rsp + 0x20], esi
mov rdi, qword [rsp + 0x68]
xor ecx, ecx
mov qword [rsp + 0x28], rdx
mov r9d, 1
mov r8d, 1
mov rdx, rdi
call sub.msys_2.0.dll_mmap
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1004012c8
mov r9, qword [rsp + 0x38]
mov rcx, r14
mov r8, rdi
mov rdx, rax
call fcn.1004191c0
mov rdx, rdi
mov rcx, rsi
call sub.msys_2.0.dll_munmap
jmp 0x1004012d8
test rdi, rdi
je 0x100401163
xor ebx, ebx
mov rsi, qword [0x100425020]
test rdi, rdi
je 0x10040127c
lea r13, [rsp + 0x38]
lea r12, [0x1004261ba]
lea r15, [0x1004261b8]
nop dword [rax]
mov r9, rbp
mov r8, rsi
mov rdx, r12
mov rcx, r13
call sub.msys_gpg_error_0.dll_gpgrt_asprintf
test eax, eax
js 0x100401370
mov rcx, qword [rsp + 0x38]
mov rdx, r15
call sub.msys_2.0.dll_fopen
mov rbx, rax
test rax, rax
jne 0x10040117e
cmp rdi, 1
jne 0x100401350
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx ebx, ax
mov ecx, ebx
call sub.msys_gpg_error_0.dll_gpg_strerror
mov rdi, qword [rsp + 0x38]
mov rsi, rax
call sub.msys_2.0.dll___getreent
mov r9, rsi
mov r8, rdi
lea rdx, str.Could_not_read__s:__s._n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 0x4a
mov edx, 1
lea rcx, str.Consider_using_GPGSCM_PATH_to_specify_the_location_of_the_Scheme_library._n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x1004012f8
mov r8, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, r14
call fcn.100418f90
mov rcx, rbx
xor ebx, ebx
call sub.msys_2.0.dll_fclose
mov eax, dword [r14 + 0x10]
test eax, eax
je 0x1004012f8
cmp dword [r14 + 0xee4], 0
jne 0x10040139c
mov rcx, qword [rsp + 0x38]
cmp rbp, rcx
je 0x100401307
call sub.msys_2.0.dll_free
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x100401163
mov rsi, qword [rsp + 0x38]
call sub.msys_2.0.dll___getreent
lea rdx, str.Loading__s..._n
mov rcx, qword [rax + 0x18]
mov r8, rsi
call sub.msys_2.0.dll_fprintf
jmp 0x10040118b
mov rcx, qword [rsp + 0x38]
sub rdi, 1
call sub.msys_2.0.dll_free
mov rcx, rsi
call sub.msys_2.0.dll_strlen
lea rsi, [rsi + rax + 1]
jmp 0x100401238
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx ebx, ax
jmp 0x100401307
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
mov ebx, eax
test eax, eax
je 0x1004013c3
movzx ebx, ax
test esi, esi
je 0x10040127c
mov rdi, qword [section..bss]
jmp 0x100401212
mov rbx, qword [rsp + 0x38]
call sub.msys_2.0.dll___getreent
lea rdx, str._s:_Unbalanced_parenthesis_n
mov rcx, qword [rax + 0x18]
mov r8, rbx
mov ebx, 1
call sub.msys_2.0.dll_fprintf
jmp 0x1004012f8
test esi, esi
je 0x10040127c
mov rdi, qword [section..bss]
jmp 0x100401210