Function at 0x4211a0
Capabilities:
Resolve function by parsing pe exports
Terminate process
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa4]
lea eax, [esp + 0x48]
call fcn.0041d3b0
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.0041b420
test eax, eax
je 0x421288
mov ebp, dword [0x42601c]
test ebp, ebp
jg 0x421258
mov ebp, 1
mov dword [esp], ebx
call fcn.00410170
mov dword [esp], eax
mov ebx, eax
call fcn.00405220
test eax, eax
jne 0x4213ea
mov dword [esp], edi
call sub.cygwin1.dll_free
mov dword [esp], esi
call sub.cygwin1.dll_free
add esp, 0x8c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0xac]
mov ebp, 1
mov dword [esp + 4], str.zstd:__s_is_a_directory____ignored__n
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x42121b
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa4]
call fcn.0041ccc0
mov ecx, eax
test eax, eax
je 0x421216
mov eax, dword [esp + 0xac]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa0]
call fcn.0041f460
mov ecx, dword [esp + 0x3c]
mov ebp, eax
mov dword [esp], ecx
call sub.cygwin1.dll_fclose
test eax, eax
jne 0x4213a0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x42121b
test ebp, ebp
jne 0x42121b
mov eax, dword [esp + 0xac]
mov dword [esp + 4], str._stdin_
mov dword [esp], eax
call fcn.00423288
test eax, eax
je 0x421394
mov edx, dword [0x432038]
test edx, edx
je 0x42137a
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.cygwin1.dll_signal
mov eax, dword [esp + 0xac]
mov dword [0x432038], 0
call fcn.0041cf50
test eax, eax
jne 0x4213a0
xor ebp, ebp
jmp 0x42121b
mov eax, dword [0x42601c]
test eax, eax
jle 0x421216
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebp, eax
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0xac]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], str.zstd:__s:__s__n
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x421216
mov eax, dword [0x42601c]
cmp eax, 4
jg 0x421404
test eax, eax
jg 0x42142d
mov dword [esp], 0xb
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov dword [esp + 8], str.ZSTD_freeDStream_ress.dctx_
mov dword [esp + 4], str._s__n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
cmp dword [0x42601c], 0
jle 0x421455
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
jle 0x421486
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x7ff
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
cmp dword [0x42601c], 0
jle 0x4213f8
call sub.cygwin1.dll___getreent
mov dword [esp + 8], 0xb
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 0x4213f8
mov dword [esp], ebx
call fcn.00405230
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputs
cmp dword [0x42601c], 0
jle 0x4213f8
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 0x4213f8