Function at 0x100479c70
Capabilities:
Delete directory
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov r15, qword [0x1004f7480]
mov rdi, qword [rsp + 0x130]
movsxd rbx, r8d
mov r8d, dword [r15 + 0x1f8]
mov r14, rdx
mov rsi, r9
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x60], 0
test r8d, r8d
je 0x100479cc7
mov ecx, dword [r15 + 0x240]
test ecx, ecx
je 0x10047a3a4
mov rcx, qword [rsp + 0x110]
mov r9, rdi
mov r8, rsi
xor edx, edx
pxor xmm0, xmm0
mov qword [rsp + 0x90], rsi
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call fcn.1004812f0
mov rcx, qword [rsp + 0x110]
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0xa4], eax
call fcn.1004813e0
mov rcx, rdi
mov qword [rsp + 0xa8], rax
call fcn.100432af0
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0xb0], rax
test rsi, rsi
je 0x100479d40
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.100432990
mov ecx, 1
call sub.msys_gpg_error_0.dll__gpgrt_get_std_stream
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_fflush
cmp qword [r15 + 0x1b0], 0
je 0x10047a358
test ebx, ebx
jle 0x10047a047
lea rax, [rbx + rbx*2]
lea rdi, [r14 + rax*8]
jmp 0x100479d85
add r14, 0x18
cmp r14, rdi
je 0x10047a047
cmp byte [r14], 1
jne 0x100479d78
lea rdx, [rsp + 0xa0]
lea r8, [rsp + 0x58]
mov rcx, r14
lea rsi, [rsp + 0x90]
call fcn.100479bb0
test eax, eax
je 0x100479d78
mov eax, dword [rsp + 0x58]
mov ebx, dword [r14 + 0x10]
mov r8, rsi
mov rdx, qword [r15 + 0x1b0]
mov rcx, qword [rsp + 0x110]
mov dword [rsp + 0x38], eax
sub ebx, eax
call fcn.10042dcd0
mov rbp, rax
test rax, rax
je 0x10047a419
cmp byte [rax], 0
je 0x10047a411
mov ecx, 0x15
call sub.msys_gcrypt_20.dll_gcry_xmalloc
mov r12, rax
test rax, rax
je 0x10047a411
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
mov rcx, r12
movsxd rbx, ebx
cmp byte [rsp + 0xa0], 1
lea rax, [0x1004e6c2d]
lea rsi, [0x1004e6c41]
cmove rax, rsi
lea rdx, str._08lX_08lX._s
mov qword [rsp + 0x20], rax
call sub.msys_2.0.dll_sprintf
add rbx, qword [r14 + 8]
mov edx, 0x20
mov ecx, 1
mov qword [rsp + 0x40], rbx
call sub.msys_gcrypt_20.dll_gcry_xcalloc
mov rbx, rax
test rax, rax
je 0x10047a02a
mov dword [rax], 0
test byte [r15 + 9], 0x40
jne 0x10047a148
lea rsi, [rsp + 0x70]
mov edx, 0x64
mov r13, rbp
mov rcx, rsi
call fcn.1004ac9e0
movzx eax, byte [rbp]
test al, al
jne 0x100479ec0
jmp 0x100479ee4
movzx eax, byte [r13 + 1]
cmp al, 0x49
je 0x10047a060
cmp al, 0x69
je 0x10047a066
cmp al, 0x25
je 0x10047a080
lea rax, [r13 + 1]
lea r13, [rax + 1]
movzx eax, byte [rax + 1]
test al, al
je 0x100479ee4
nop dword [rax]
cmp al, 0x25
je 0x100479e90
mov rdx, r13
mov r8d, 1
mov rcx, rsi
call fcn.1004acaa0
mov rax, r13
lea r13, [rax + 1]
movzx eax, byte [rax + 1]
test al, al
jne 0x100479ec0
mov r8d, 1
lea rdx, [0x1004e6d5d]
mov rcx, rsi
call fcn.1004acaa0
xor edx, edx
mov rcx, rsi
call fcn.1004acbd0
mov qword [rbx + 8], rax
test rax, rax
je 0x10047a022
mov r8, qword [rbx + 0x18]
test byte [r15 + 9], 0x40
jne 0x10047a160
mov rcx, r8
test r8, r8
je 0x10047a1c0
call fcn.10042d050
test eax, eax
jne 0x10047a512
mov rcx, qword [rbx + 0x18]
lea rdx, [0x1004e6e61]
call sub.msys_gpg_error_0.dll_gpgrt_fopen
mov rsi, rax
test rax, rax
je 0x10047a54c
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r9, rax
mov r8d, 1
call sub.msys_gpg_error_0.dll_gpgrt_fwrite
mov rcx, rsi
call sub.msys_gpg_error_0.dll_gpgrt_fclose
lea rcx, str.SHELL
mov rsi, qword [rbx + 8]
call sub.msys_2.0.dll_getenv
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0xffffffff
test rax, rax
mov rcx, rax
lea rax, str._bin_sh
mov r8d, 0xffffffff
cmove rcx, rax
lea rax, [0x1004e6de3]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x88], 0
call fcn.1004b89f0
test eax, eax
je 0x10047a2e0
lea rcx, str.unnatural_exit_of_external_program_n
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov eax, dword [rbx]
test eax, eax
je 0x10047a3bd
mov rcx, qword [rbx + 8]
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, qword [rbx + 0x10]
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, qword [rbx + 0x18]
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, rbx
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, r12
add r14, 0x18
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, rbp
call sub.msys_gcrypt_20.dll_gcry_free
cmp r14, rdi
jne 0x100479d85
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rbx], 1
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x10047a090
mov rcx, rsi
call fcn.1004acaf0
jmp 0x100479ead
lea rdx, [0x1004e6cc2]
jmp 0x10047a06f
mov r8, qword [r15 + 0x248]
test r8, r8
je 0x10047a290
mov rcx, r8
mov qword [rsp + 0x48], r8
call sub.msys_2.0.dll_strlen
lea ecx, [rax + 0xc]
movsxd rcx, ecx
call sub.msys_gcrypt_20.dll_gcry_xmalloc
mov r8, qword [rsp + 0x48]
mov rcx, rax
mov qword [rbx + 0x10], rcx
test rcx, rcx
je 0x10047a463
lea rdx, str._s_gpg_XXXXXX
call sub.msys_2.0.dll_sprintf
mov rcx, qword [rbx + 0x10]
call fcn.1004a56d0
test rax, rax
je 0x10047a432
mov rcx, qword [rbx + 0x10]
call sub.msys_2.0.dll_strlen
mov rcx, r12
mov qword [rsp + 0x48], rax
call sub.msys_2.0.dll_strlen
mov rdx, qword [rsp + 0x48]
lea rcx, [rdx + rax + 2]
call sub.msys_gcrypt_20.dll_gcry_xmalloc
mov qword [rbx + 0x18], rax
mov rcx, rax
test rax, rax
je 0x10047a599
mov r8, qword [rbx + 0x10]
lea rdx, str._s__s
mov r9, r12
call sub.msys_2.0.dll_sprintf
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x100479ead
jmp 0x10047a06f
mov rdx, rbp
lea rcx, str.expanding_string___s__n
call fcn.1004bcae0
jmp 0x100479e6c
mov r9d, dword [rbx]
mov rdx, rax
lea rcx, str.args_expanded_to___s___use__s__keep__u_n
call fcn.1004bcae0
test byte [r15 + 9], 0x40
je 0x10047a590
mov rdx, qword [rbx + 8]
lea rcx, str.running_command:__s_n
call fcn.1004bcae0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x10047a1c0
test byte [r15 + 9], 0x40
je 0x100479f2b
mov rdx, rcx
lea rcx, str.using_temp_file__s_n
call fcn.1004bcae0
mov rcx, qword [rbx + 0x18]
jmp 0x100479f2b
lea rcx, [rsp + 0x68]
call fcn.1004b8460
test eax, eax
jne 0x10047a007
lea rcx, str.SHELL
mov rsi, qword [rbx + 8]
call sub.msys_2.0.dll_getenv
mov r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x20], 0xffffffff
test rax, rax
mov rcx, rax
lea rax, str._bin_sh
mov r9d, 0xffffffff
cmove rcx, rax
lea rax, [0x1004e6de3]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x88], 0
call fcn.1004b89f0
mov ecx, dword [rsp + 0x68]
mov esi, eax
call sub.msys_2.0.dll_close
test esi, esi
je 0x10047a304
mov ecx, esi
call sub.msys_gpg_error_0.dll_gpg_strerror
mov rsi, qword [rsp + 0x70]
lea rcx, str.unable_to_execute_shell__s:__s_n
mov r13, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, r13
mov rdx, rsi
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov ecx, dword [rsp + 0x6c]
call sub.msys_2.0.dll_close
jmp 0x10047a007
lea rcx, str.TMPDIR
call sub.msys_2.0.dll_getenv
mov r8, rax
test rax, rax
je 0x10047a47a
mov rcx, r8
mov qword [rsp + 0x48], r8
call sub.msys_2.0.dll_strlen
mov r8, qword [rsp + 0x48]
lea ecx, [rax + 0xc]
movsxd rcx, ecx
mov qword [rsp + 0x48], r8
call sub.msys_gcrypt_20.dll_gcry_xmalloc
mov r8, qword [rsp + 0x48]
mov rcx, rax
jmp 0x10047a0c0
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
mov r8d, 1
call fcn.1004b8ac0
test eax, eax
jne 0x100479fe9
jmp 0x100479ffd
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
call sub.msys_2.0.dll_write
mov ecx, dword [rsp + 0x6c]
call sub.msys_2.0.dll_close
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
mov r8d, 1
call fcn.1004b8ac0
test eax, eax
je 0x10047a007
lea rcx, str.unnatural_exit_of_external_program_n
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x10047a007
mov edx, 1
lea rcx, str.xloadimage
call fcn.10042ed50
mov edx, eax
lea rax, str.xloadimage__fork__quiet__title_KeyID_0x_k_stdin
test edx, edx
je 0x10047a398
mov edx, 1
lea rcx, [0x1004e6d27]
call fcn.10042ed50
mov edx, eax
lea rax, str.display__title_KeyID_0x_k__i
test edx, edx
jne 0x10047a4a3
mov qword [r15 + 0x1b0], rax
jmp 0x100479d60
lea rcx, str.external_program_calls_are_disabled_due_to_unsafe_options_file_permissions_n
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x10047a047
mov rcx, qword [rbx + 0x18]
call sub.msys_2.0.dll_unlink
test eax, eax
js 0x10047a4cd
mov rcx, qword [rbx + 0x10]
call sub.msys_2.0.dll_rmdir
test eax, eax
jns 0x10047a007
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
mov rsi, qword [rbx + 0x10]
lea rcx, str.WARNING:_unable_to_remove_temp_directory__s:__s_n
mov r13, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, r13
mov rdx, rsi
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x10047a007
mov rcx, rbp
call sub.msys_gcrypt_20.dll_gcry_free
lea rcx, str.unable_to_display_photo_ID__n
call sub.msys_intl_8.dll_libintl_gettext
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x10047a047
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
mov r13, qword [rbx + 0x10]
lea rcx, [0x1004e6d78]
mov qword [rsp + 0x38], rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, qword [rsp + 0x38]
mov rdx, r13
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov rcx, rsi
xor edx, edx
call fcn.1004acbd0
mov rcx, rax
call sub.msys_gcrypt_20.dll_gcry_free
jmp 0x10047a022
lea rcx, [0x1004e6d65]
call sub.msys_2.0.dll_getenv
mov r8, rax
test rax, rax
jne 0x10047a2a8
mov ecx, 0x10
lea r8, str._tmp
jmp 0x10047a2c0
call sub.msys_2.0.dll_getuid
test eax, eax
je 0x10047a506
mov edx, 1
lea rcx, str.xdg_open
call fcn.10042ed50
test eax, eax
jne 0x10047a506
lea rax, str.xdg_open__I
jmp 0x10047a398
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
mov r13, qword [rbx + 0x18]
lea rcx, str.WARNING:_unable_to_remove_tempfile___s___s:__s_n
mov rsi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r9, rsi
mov r8, r13
lea rdx, [0x1004e6e9a]
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x10047a3ce
lea rax, str._bin_true
jmp 0x10047a398
mov ecx, 1
call sub.msys_2.0.dll_strerror
mov rsi, qword [rbx + 0x18]
lea rcx, [0x1004e6e4a]
mov r13, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, r13
mov rdx, rsi
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov ecx, 1
call sub.msys_gpg_error_0.dll_gpg_err_set_errno
jmp 0x10047a007
call sub.msys_2.0.dll___errno
mov esi, dword [rax]
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
mov r13, qword [rbx + 0x18]
lea rcx, [0x1004e6e4a]
mov qword [rsp + 0x38], rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, qword [rsp + 0x38]
mov rdx, r13
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov ecx, esi
call sub.msys_gpg_error_0.dll_gpg_err_set_errno
jmp 0x10047a007
mov r8, qword [rbx + 0x18]
jmp 0x100479f1f
mov rcx, qword [rbx + 0x10]
call sub.msys_gcrypt_20.dll_gcry_free
xor edx, edx
mov qword [rbx + 0x10], rdx
jmp 0x10047a463