Function at 0x1004284d0
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 dword [rsp + 0x38], edx
mov rsi, rcx
mov ebp, r8d
mov r12, r9
test rcx, rcx
je 0x100428b40
mov rax, rcx
nop dword [rax]
mov rdi, rax
mov rax, qword [rax]
cmp rax, rsi
jne 0x100428500
movsxd rax, dword [rsp + 0x38]
lea r15, [0x1004e2dc7]
mov rbx, rsi
mov rdx, rax
shl rax, 3
test ebp, ebp
mov qword [rsp + 0x30], rax
lea rax, [0x1004e2dcd]
cmove r15, rax
mov eax, edx
not eax
shr eax, 0x1f
mov dword [rsp + 0x3c], eax
cmp rdi, rbx
sete r13b
test ebp, ebp
jne 0x1004285bd
mov rdx, r12
mov ecx, 0x20
call fcn.1004d2c50
mov eax, dword [rsp + 0x38]
xor r10d, r10d
test eax, eax
jns 0x1004287d0
xor r14d, r14d
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100428584
mov rdx, r12
mov byte [rsp + 0x28], r10b
call sub.msys_2.0.dll_fputs
movzx r10d, byte [rsp + 0x28]
test r10b, r10b
jne 0x100428720
test r13b, r13b
jne 0x100428754
test r14b, r14b
jne 0x100428754
mov rbx, qword [rbx]
cmp rsi, rbx
je 0x10042853e
mov rdx, r15
mov rcx, r12
call sub.msys_2.0.dll_fprintf
cmp rdi, rbx
sete r13b
test ebp, ebp
je 0x100428549
movsxd r8, dword [rbx + 8]
lea rdx, str._5ld
mov rcx, r12
call sub.msys_2.0.dll_fprintf
mov rdx, r12
mov ecx, 0x20
call fcn.1004d2c50
mov eax, dword [rsp + 0x38]
movzx r10d, byte [rsp + 0x3c]
or eax, ebp
js 0x1004288e9
lea rcx, str.Done
mov r14, rbx
mov qword [rsp + 0x28], rcx
call sym.bash.exe_libintl_gettext
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov qword [0x1005fde10], rax
mov rax, qword [sym.bash.exe_jobs]
mov rax, qword [rax + rdx]
mov eax, dword [rax + 0x14]
cmp eax, 2
je 0x100428630
cmp eax, 1
je 0x100428815
mov eax, dword [r14 + 0xc]
movzx r8d, al
cmp al, 0x7f
je 0x100428850
mov r9d, eax
and r9d, 0x7f
lea edx, [r9 - 1]
cmp edx, 0x7d
jbe 0x100428856
test r8d, r8d
jne 0x100428a90
lea rdx, [0x1005fee80]
mov qword [0x1005fde10], rdx
movzx edx, ah
test ah, 0xff
je 0x100428ab0
mov rax, qword [sym.bash.exe_posixly_correct]
mov dword [rsp + 0x28], edx
lea rcx, str.Done__d_
mov r8d, dword [rax]
test r8d, r8d
je 0x100428a40
call sym.bash.exe_libintl_gettext
mov r9d, dword [rsp + 0x28]
mov edx, 0x40
mov rcx, qword [0x1005fde10]
mov r8, rax
call sub.msys_2.0.dll_snprintf
mov rcx, qword [0x1005fde10]
cmp rsi, rbx
je 0x100428834
test ebp, ebp
je 0x100428908
mov eax, dword [rsi + 0x10]
cmp dword [r14 + 0x10], eax
je 0x100428a50
test rcx, rcx
jne 0x10042887f
mov r10d, 1
mov r9, r12
mov r8d, 2
mov edx, 1
mov byte [rsp + 0x28], r10b
lea rcx, [0x1004e2e34]
mov r14d, 1
call sub.msys_2.0.dll_fwrite
movzx r10d, byte [rsp + 0x28]
and r10d, r13d
jmp 0x100428568
call fcn.100428140
mov rdx, qword [rsp + 0x30]
mov r13, rax
mov rax, qword [sym.bash.exe_jobs]
mov rax, qword [rax + rdx]
cmp dword [rax + 0x14], 1
je 0x100428910
mov r14, qword [rax]
mov rcx, r13
mov rdx, r14
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x1004287a0
mov rax, qword [sym.bash.exe_asynchronous_notification]
mov ecx, dword [rax]
test ecx, ecx
je 0x100428772
mov rax, qword [sym.bash.exe_interactive]
mov edx, dword [rax]
test edx, edx
jne 0x100428950
mov rdx, r12
mov ecx, 0xa
call fcn.1004d2c50
cmp rdi, rbx
jne 0x10042859f
mov rcx, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1004d2bc0
mov rcx, r14
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, r12
mov rdx, rax
call sub.msys_2.0.dll_fprintf
jmp 0x100428754
lea rcx, str.Done
mov qword [rsp + 0x28], rcx
call sym.bash.exe_libintl_gettext
mov rdx, qword [rsp + 0x30]
mov qword [0x1005fde10], rax
mov rax, qword [sym.bash.exe_jobs]
mov rax, qword [rax + rdx]
mov eax, dword [rax + 0x14]
cmp eax, 2
je 0x100428970
mov rcx, qword [rsp + 0x28]
mov r14, rdi
cmp eax, 1
jne 0x100428630
lea rcx, str.Running
call sym.bash.exe_libintl_gettext
mov qword [0x1005fde10], rax
mov rcx, rax
cmp rsi, rbx
jne 0x1004286c3
test rcx, rcx
jne 0x10042887f
test ebp, ebp
mov r10d, r13d
setne r14b
jmp 0x100428568
movzx eax, ah
mov r9d, eax
mov ecx, r9d
mov dword [rsp + 0x28], r9d
call sub.msys_2.0.dll_strsignal
mov rcx, rax
test rax, rax
je 0x100428ae0
mov qword [0x1005fde10], rcx
cmp rsi, rbx
jne 0x1004286c3
mov rdx, r12
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 0x1004288ac
cmp byte [rcx + 1], 0
mov r8d, 0x17
jne 0x1004289b0
lea r9, [0x1004e2e20]
lea rdx, [0x1004e2e21]
mov rcx, r12
call sub.msys_2.0.dll_fprintf
mov eax, dword [r14 + 0xc]
mov r10d, 1
cmp al, 0x7f
je 0x1004288e9
movzx edx, ax
mov r10d, 1
cmp edx, 0xffff
je 0x1004288e9
test al, 0x80
jne 0x100428b18
test ebp, ebp
setne r14b
cmp rsi, rbx
je 0x1004288fd
test r14b, r14b
jne 0x1004286e7
and r10d, r13d
jmp 0x100428568
mov r10d, r13d
jmp 0x100428565
test byte [rax + 0x18], 1
jne 0x100428742
mov edx, 1
mov r9, r12
mov r8d, 2
lea rcx, [0x1004e2e37]
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 0x100428742
mov r9, r12
mov r8d, 2
mov edx, 1
lea rcx, [0x1004e2e45]
call sub.msys_2.0.dll_fwrite
jmp 0x10042877f
mov rax, qword [sym.bash.exe_posixly_correct]
mov r9d, dword [rax]
test r9d, r9d
jne 0x1004289e8
lea rcx, str.Stopped
call sym.bash.exe_libintl_gettext
mov qword [0x1005fde10], rax
mov rcx, rax
mov r10d, r13d
mov r14, rdi
cmp rsi, rbx
jne 0x100428565
jmp 0x100428834
cmp byte [rcx + 2], 0
mov r8d, 0x16
je 0x1004288ac
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 0x1004288ac
mov ecx, dword [rdi + 0xc]
cmp cl, 0x7f
jne 0x10042897f
lea rax, [0x1005fee80]
movzx ecx, ch
mov qword [0x1005fde10], rax
call sym.bash.exe_signal_name
lea rcx, str.Stopped__s_
mov r14, rax
call sym.bash.exe_libintl_gettext
mov rcx, qword [0x1005fde10]
mov r9, r14
mov edx, 0x40
mov r8, rax
call sub.msys_2.0.dll_snprintf
mov rcx, qword [0x1005fde10]
jmp 0x100428995
lea rcx, str.Exit__d
jmp 0x100428695
mov eax, dword [rsi + 0xc]
cmp dword [r14 + 0xc], eax
jne 0x1004286d8
lea r9, [0x1004e2e20]
mov r8d, 0x16
lea rdx, [0x1004e2e21]
mov rcx, r12
call sub.msys_2.0.dll_fprintf
mov eax, dword [r14 + 0xc]
cmp al, 0x7f
jne 0x1004288d0
jmp 0x1004286e1
lea rcx, str.Unknown_status
call sym.bash.exe_libintl_gettext
mov qword [0x1005fde10], rax
mov rcx, rax
jmp 0x1004286ba
call sym.bash.exe_libintl_gettext
mov rcx, qword [0x1005fde10]
mov r8d, 0x3f
mov rdx, rax
call sub.msys_2.0.dll_strncpy
mov byte [rax + 0x3f], 0
mov rcx, rax
cmp rsi, rbx
jne 0x1004286c3
jmp 0x10042887f
lea rcx, str.Signal__d
call sym.bash.exe_libintl_gettext
mov r9d, dword [rsp + 0x28]
mov edx, 0x40
lea rcx, [0x1005fee80]
mov r8, rax
call sub.msys_2.0.dll_snprintf
lea rcx, [0x1005fee80]
jmp 0x10042886f
lea rcx, str._core_dumped_
mov byte [rsp + 0x28], r10b
call sym.bash.exe_libintl_gettext
mov rcx, r12
mov rdx, rax
call sub.msys_2.0.dll_fprintf
movzx r10d, byte [rsp + 0x28]
jmp 0x1004288e9
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret