Function at 0x10042a2f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov r11d, edx
mov r15d, r8d
mov rsi, r9
test rcx, rcx
je 0x10042a9b0
mov rax, rcx
nop dword [rax + rax]
mov r14, rax
mov rax, qword [rax]
cmp rax, rdi
jne 0x10042a320
movsxd rax, r11d
mov ebp, r11d
mov rbx, rdi
mov dword [rsp + 0x3c], r11d
shl rax, 3
not ebp
mov qword [rsp + 0x30], rax
mov eax, r15d
shr ebp, 0x1f
or eax, r11d
mov dword [rsp + 0x38], eax
cmp rbx, rdi
je 0x10042a4fe
nop word [rax + rax]
mov r9, rsi
test r15d, r15d
je 0x10042a650
mov r8d, 5
mov edx, 1
lea rcx, [0x100525323]
call sub.msys_2.0.dll_fwrite
movsxd r8, dword [rbx + 8]
lea rdx, str._5ld
mov rcx, rsi
call sub.msys_2.0.dll_fprintf
mov rdx, rsi
mov ecx, 0x20
call fcn.100513f60
mov r11d, dword [rsp + 0x38]
test r11d, r11d
js 0x10042a628
lea rcx, str.Done
mov r13, rbx
call sym.bash.exe_libintl_gettext
mov rdx, qword [rsp + 0x30]
mov qword [0x10065be90], rax
mov rax, qword [sym.bash.exe_jobs]
mov rax, qword [rax + rdx]
mov eax, dword [rax + 0x14]
cmp eax, 2
je 0x10042a3e8
cmp eax, 1
je 0x10042a800
mov eax, dword [r13 + 0xc]
movzx ecx, al
cmp al, 0x7f
je 0x10042a580
mov r12d, eax
and r12d, 0x7f
lea edx, [r12 - 1]
cmp edx, 0x7d
jbe 0x10042a586
test ecx, ecx
jne 0x10042a930
lea rdx, [0x10065cf00]
mov qword [0x10065be90], rdx
movzx edx, ah
mov r12d, edx
test ah, 0xff
je 0x10042a950
mov rax, qword [sym.bash.exe_posixly_correct]
lea rcx, str.Done__d_
mov r9d, dword [rax]
test r9d, r9d
je 0x10042a900
call sym.bash.exe_libintl_gettext
mov rcx, qword [0x10065be90]
mov r9d, r12d
mov edx, 0x40
mov r8, rax
call sub.msys_2.0.dll_snprintf
mov rcx, qword [0x10065be90]
cmp rbx, rdi
je 0x10042a777
test r15d, r15d
je 0x10042a682
mov eax, dword [rdi + 0x10]
cmp dword [r13 + 0x10], eax
je 0x10042a910
test rcx, rcx
jne 0x10042a5bc
nop word cs:[rax + rax]
mov r9, rsi
mov r8d, 2
mov edx, 1
mov r12d, 1
lea rcx, [0x10052537c]
call sub.msys_2.0.dll_fwrite
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x10042a4d1
mov rdx, rsi
call sub.msys_2.0.dll_fputs
cmp rbx, r14
sete r13b
mov eax, r13d
and al, bpl
mov byte [rsp + 0x28], al
jne 0x10042a690
test r13b, r13b
jne 0x10042a540
test r12b, r12b
jne 0x10042a540
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x10042a360
test r15d, r15d
jne 0x10042a383
mov rdx, rsi
mov ecx, 0x20
call fcn.100513f60
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jns 0x10042a710
mov rcx, qword [rbx + 0x18]
xor r12d, r12d
test rcx, rcx
jne 0x10042a4c9
cmp rbx, r14
sete r13b
test r13b, r13b
je 0x10042a4ed
nop word [rax + rax]
mov rax, qword [sym.bash.exe_asynchronous_notification]
mov r8d, dword [rax]
test r8d, r8d
je 0x10042a560
mov rax, qword [sym.bash.exe_interactive]
mov edx, dword [rax]
test edx, edx
jne 0x10042a820
mov rdx, rsi
mov ecx, 0xa
call fcn.100513f60
test r13b, r13b
je 0x10042a4f2
jmp 0x10042a6f3
movzx eax, ah
mov r12d, eax
mov ecx, r12d
call sub.msys_2.0.dll_strsignal
mov rcx, rax
test rax, rax
je 0x10042a980
mov qword [0x10065be90], rcx
cmp rbx, rdi
je 0x10042a5bc
test r15d, r15d
je 0x10042a682
mov eax, dword [r13 + 0x10]
cmp dword [rdi + 0x10], eax
je 0x10042a910
mov rdx, rsi
mov qword [rsp + 0x28], rcx
call sub.msys_2.0.dll_fputs
mov rcx, qword [rsp + 0x28]
mov r8d, 0x16
cmp byte [rcx], 0
je 0x10042a5e9
cmp byte [rcx + 1], 0
mov r8d, 0x17
jne 0x10042a840
lea r9, [0x10052537f]
lea rdx, [0x100525380]
mov rcx, rsi
call sub.msys_2.0.dll_fprintf
mov eax, dword [r13 + 0xc]
cmp al, 0x7f
je 0x10042a628
movzx edx, ax
cmp edx, 0xffff
je 0x10042a628
mov edx, eax
and edx, 0x7f
sub edx, 1
cmp edx, 0x7d
jbe 0x10042a878
nop dword [rax + rax]
test r15d, r15d
setne r12b
cmp rbx, rdi
je 0x10042a4c0
test r12b, r12b
jne 0x10042a4a0
jmp 0x10042a4c0
mov r8d, 2
mov edx, 1
lea rcx, [0x100525329]
call sub.msys_2.0.dll_fwrite
mov rdx, rsi
mov ecx, 0x20
call fcn.100513f60
mov r13d, dword [rsp + 0x38]
test r13d, r13d
jns 0x10042a710
xor r12d, r12d
jmp 0x10042a4c0
call fcn.10042a020
mov rdx, qword [rsp + 0x30]
mov r12, rax
mov rax, qword [sym.bash.exe_jobs]
mov rax, qword [rax + rdx]
cmp dword [rax + 0x14], 1
je 0x10042a790
mov r13, qword [rax]
mov rcx, r12
mov rdx, r13
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x10042a7d0
mov rax, qword [sym.bash.exe_asynchronous_notification]
mov eax, dword [rax]
test eax, eax
je 0x10042a6e6
mov rax, qword [sym.bash.exe_interactive]
mov ecx, dword [rax]
test ecx, ecx
jne 0x10042a825
mov rdx, rsi
mov ecx, 0xa
call fcn.100513f60
mov rcx, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.100513ed0
lea rcx, str.Done
mov r13, r14
call sym.bash.exe_libintl_gettext
mov rdx, qword [rsp + 0x30]
mov qword [0x10065be90], rax
mov rax, qword [sym.bash.exe_jobs]
mov rax, qword [rax + rdx]
mov eax, dword [rax + 0x14]
cmp eax, 2
jne 0x10042a3df
mov rax, qword [sym.bash.exe_posixly_correct]
mov r10d, dword [rax]
test r10d, r10d
jne 0x10042a8a0
lea rcx, str.Stopped
call sym.bash.exe_libintl_gettext
mov qword [0x10065be90], rax
mov rcx, rax
cmp rbx, rdi
jne 0x10042a682
mov r13, r14
test rcx, rcx
jne 0x10042a5bc
test r15d, r15d
setne r12b
jmp 0x10042a4c0
test byte [rax + 0x18], 1
jne 0x10042a6b2
mov edx, 1
mov r9, rsi
mov r8d, 2
lea rcx, [0x100525393]
call sub.msys_2.0.dll_fwrite
mov rax, qword [sym.bash.exe_jobs]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rax + rdx]
jmp 0x10042a6b2
mov rcx, r13
call sym.bash.exe_polite_directory_format
lea rcx, str.___wd:__s_
mov r13, rax
call sym.bash.exe_libintl_gettext
mov r8, r13
mov rcx, rsi
mov rdx, rax
call sub.msys_2.0.dll_fprintf
jmp 0x10042a6c8
lea rcx, str.Running
call sym.bash.exe_libintl_gettext
mov qword [0x10065be90], rax
mov rcx, rax
jmp 0x10042a46e
mov byte [rsp + 0x28], r13b
mov rdx, rsi
mov ecx, 0xd
call sub.msys_2.0.dll_putc
movzx r13d, byte [rsp + 0x28]
jmp 0x10042a560
cmp byte [rcx + 2], 0
mov r8d, 0x16
je 0x10042a5e9
mov dword [rsp + 0x28], r8d
call sub.msys_2.0.dll_strlen
mov edx, 0x18
mov r8d, 0x16
sub edx, eax
test eax, eax
cmovne r8d, edx
jmp 0x10042a5e9
test al, 0x80
je 0x10042a628
lea rcx, str._core_dumped_
call sym.bash.exe_libintl_gettext
mov rcx, rsi
mov rdx, rax
call sub.msys_2.0.dll_fprintf
jmp 0x10042a628
mov ecx, dword [r14 + 0xc]
cmp cl, 0x7f
jne 0x10042a755
lea rax, [0x10065cf00]
movzx ecx, ch
mov qword [0x10065be90], rax
call sym.bash.exe_signal_name
lea rcx, str.Stopped__s_
mov r12, rax
call sym.bash.exe_libintl_gettext
mov rcx, qword [0x10065be90]
mov r9, r12
mov edx, 0x40
mov r8, rax
call sub.msys_2.0.dll_snprintf
mov rcx, qword [0x10065be90]
cmp rbx, rdi
jne 0x10042a682
jmp 0x10042a774
lea rcx, str.Exit__d
jmp 0x10042a44b
mov eax, dword [rdi + 0xc]
cmp dword [r13 + 0xc], eax
jne 0x10042a48d
mov r8d, 0x16
jmp 0x10042a5e9
lea rcx, str.Unknown_status
call sym.bash.exe_libintl_gettext
mov qword [0x10065be90], rax
mov rcx, rax
jmp 0x10042a46e
lea rcx, str.Done
call sym.bash.exe_libintl_gettext
mov rcx, qword [0x10065be90]
mov r8d, 0x3f
mov rdx, rax
call sub.msys_2.0.dll_strncpy
mov byte [rax + 0x3f], 0
mov rcx, rax
jmp 0x10042a5a1
lea rcx, str.Signal__d
call sym.bash.exe_libintl_gettext
mov r9d, r12d
lea r12, [0x10065cf00]
mov edx, 0x40
mov rcx, r12
mov r8, rax
call sub.msys_2.0.dll_snprintf
mov rcx, r12
jmp 0x10042a59a
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret