Function at 0x41d010
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [edx + 0x4c]
mov ebx, dword [esp + 0x30]
test esi, esi
jne 0x41d129
test ebx, ebx
je 0x41d273
mov dword [esp + 4], str._stdout_
mov edi, eax
mov esi, edx
mov ebp, ecx
mov dword [esp], ebx
call fcn.00423288
test eax, eax
je 0x41d138
test ebp, ebp
je 0x41d064
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0041b4a0
test eax, eax
jne 0x41d210
mov dword [esp], ebx
call fcn.0041b1e0
test eax, eax
je 0x41d0e6
mov dword [esp + 4], str._dev_null
mov dword [esp], ebx
call fcn.00423288
test eax, eax
je 0x41d297
mov edx, dword [esi + 0x58]
test edx, edx
jne 0x41d0df
cmp dword [0x42601c], 1
jle 0x41d250
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.zstd:__s_already_exists_
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [edi + 4]
mov dword [esp + 8], 0x429c46
mov dword [esp + 4], str.Not_overwritten___n
mov dword [esp + 0xc], eax
mov dword [esp], str.overwrite__y_n___
call fcn.0041b0e0
test eax, eax
jne 0x41d129
mov eax, ebx
call fcn.0041cf50
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0x601
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll__open64
cmp eax, 0xffffffff
je 0x41d120
mov dword [esp + 4], 0x429c6f
mov dword [esp], eax
call sub.cygwin1.dll__fdopen64
test eax, eax
je 0x41d120
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x42601c]
test eax, eax
jg 0x41d160
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [0x42601c], 3
jg 0x41d1e0
cmp dword [esi + 4], 1
je 0x41d1a0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov esi, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.zstd:__s:__s_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [0x42601c], 3
mov dword [esi + 4], 0
jle 0x41d14b
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x48
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.Sparse_File_Support_is_automatically_disabled_on_stdout___try___sparse__n
call sub.cygwin1.dll_fwrite
jmp 0x41d14b
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x19
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.Using_stdout_for_output__n
call sub.cygwin1.dll_fwrite
jmp 0x41d145
mov ecx, dword [0x42601c]
test ecx, ecx
jle 0x41d129
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x4b
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:_Refusing_to_open_an_output_file_which_will_overwrite_the_input_file__n
call sub.cygwin1.dll_fwrite
xor eax, eax
jmp 0x41d117
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.zstd:__s_already_exists__not_overwritten___n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
xor eax, eax
jmp 0x41d12b
mov dword [esp + 0xc], str.dstFileName___NULL
mov dword [esp + 8], str.FIO_openDstFile
mov dword [esp + 4], 0x28e
mov dword [esp], str.fileio.c
call sub.cygwin1.dll___assert_func
cmp dword [0x42601c], 0
jg 0x41d2b9
cmp dword [0x42601c], 4
jg 0x41d376
mov dword [esp], 0x28
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.zstd:
call sub.cygwin1.dll_fwrite
cmp dword [0x42601c], 4
jg 0x41d376
cmp dword [0x42601c], 0
jle 0x41d2ad
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0x28
mov dword [esp + 4], str.error__i_:
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41d2ad
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s_is_unexpectedly_categorized_as_a_regular_file
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x41d2ad
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], 0x429bfd
call sub.cygwin1.dll_fwrite
jmp 0x41d2ad
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x2a9
mov dword [esp + 8], str.fileio.c
mov dword [esp + 4], str.Error_defined_at__s__line__i_:__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x41d2ee