Function at 0x402480
Capabilities:
Execute command
Query environment variable
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x20c
mov ebx, dword [ebp + 8]
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [ebp - 0x1c], eax
xor eax, eax
call fcn.0041e480
mov esi, eax
test al, al
je 0x403130
lea eax, [ebx + 0x20]
mov dword [esp], 0
mov dword [esp + 4], eax
call sub.cygwin1.dll_tcgetattr
test eax, eax
js 0x403118
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x50], edx
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x54], edx
mov edx, dword [ebx + 0x2c]
mov dword [ebx + 0x58], edx
mov edx, dword [ebx + 0x30]
mov dword [ebx + 0x5c], edx
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x60], edx
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x64], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x68], edx
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0x6c], edx
mov edx, dword [ebx + 0x44]
mov dword [ebx + 0x70], edx
mov edx, dword [ebx + 0x48]
mov dword [ebx + 0x74], edx
test eax, 0x20000
je 0x402b50
lea edi, [ebx + 0x4c]
mov dword [esp], edi
call sub.cygwin1.dll_cfmakeraw
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], 0
call sub.cygwin1.dll_tcsetattr
test eax, eax
js 0x403100
lea eax, [ebp - 0x1c4]
mov ecx, eax
mov dword [ebp - 0x1ec], eax
lea eax, [ebx + 0x254]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00415520
mov eax, dword [ebp - 0x1c4]
sub esp, 4
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041e7a0
mov eax, dword [ebp - 0x1c4]
lea edx, [eax - 0xc]
cmp eax, method.std::string.swap_std::string_
jne 0x402e40
mov dword [esp], str.MOSH_TITLE_NOPREFIX
call sub.cygwin1.dll_getenv
test eax, eax
je 0x402b98
mov dword [esp], str.MOSH_ESCAPE_KEY
call sub.cygwin1.dll_getenv
mov edi, eax
test eax, eax
je 0x4026e0
mov dword [esp], eax
call sub.cygwin1.dll_strlen
cmp eax, 1
je 0x4026c8
cmp byte [edi], 0
jne 0x4026e0
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [ebx + 4]
mov dword [esp + 8], str.Nothing_received_from_server_on_UDP_port__s.
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1bc]
mov dword [esp], eax
call sub.cygwin1.dll_swprintf
lea eax, [ebp - 0x1bc]
mov dword [esp], eax
call sub.cygwin1.dll_wcslen
mov edx, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
add eax, eax
mov dword [ebp - 0x1f0], eax
je 0x40267b
sar eax, 1
mov dword [esp + 4], 0
mov esi, eax
lea eax, [ebp - 0x1cc]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.004511f0
mov edi, eax
lea edx, [eax + 0xc]
cmp esi, 1
je 0x402c78
test esi, esi
je 0x40266f
lea eax, [ebp - 0x1bc]
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x1f4], edx
call sub.cygwin1.dll_wmemcpy
mov edx, dword [ebp - 0x1f4]
cmp edi, sym.imp.cygstdc_6.dll_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::_Rep::_S_empty_rep_storage
jne 0x402e70
mov eax, dword [ebp - 0x1ec]
add ebx, 0x260
mov dword [ebp - 0x1c4], edx
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004511e8
mov eax, dword [ebp - 0x1c4]
lea edx, [eax - 0xc]
cmp eax, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
jne 0x402e10
mov eax, dword [ebp - 0x1c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x4030fb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movsx eax, byte [edi]
lea ecx, [eax - 1]
mov dword [ebx + 0xc], eax
mov edx, eax
cmp ecx, 0x7e
jbe 0x402c90
lea esi, [esi]
mov dword [ebx + 0xc], 0x1e
mov dword [ebx + 0x10], 0x5e
mov dword [ebx + 0x14], 0x5e
mov eax, dword [ebx + 0x10]
lea esi, [esi]
nop
lea edi, [ebp - 0xbc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.__c_
mov dword [esp + 4], 0x10
mov dword [esp], edi
call sub.cygwin1.dll_snprintf
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
jle 0x402b60
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xac]
mov dword [esp + 8], str.__c_
mov dword [esp + 4], 0x10
mov dword [esp], eax
mov dword [ebp - 0x1f4], eax
call sub.cygwin1.dll_snprintf
mov dword [ebp - reloc.cygstdc_6.dll__ZNSs4swapERSs], method.std::string.swap_std::string_
mov eax, esi
mov byte [ebx + 0x18], al
mov dword [esp], edi
call sub.cygwin1.dll_strlen
mov esi, eax
test eax, eax
je 0x402de0
lea eax, [ebp - 0x1cc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x1d8]
mov dword [esp], esi
mov dword [ebp - 0x1f0], eax
call fcn.00451170
mov dword [ebp - 0x1f0], eax
lea edx, [eax + 0xc]
cmp esi, 1
je 0x402e00
cmp esi, 4
jb 0x402ce0
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0xbc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + esi - 0xc0]
mov dword [edx + esi - 4], ecx
lea ecx, [eax + 0x10]
mov eax, edx
and ecx, 0xfffffffc
sub eax, ecx
mov dword [ebp - 0x1f8], ecx
mov ecx, eax
sub edi, eax
add ecx, esi
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x402820
mov dword [ebp - 0x200], edx
and ecx, 0xfffffffc
mov dword [ebp - 0x1fc], ecx
xor ecx, ecx
mov edx, dword [edi + ecx]
mov eax, dword [ebp - 0x1f8]
mov dword [eax + ecx], edx
add ecx, 4
cmp ecx, dword [ebp - 0x1fc]
jb 0x402801
mov edx, dword [ebp - 0x200]
nop
cmp dword [ebp - 0x1f0], sym.imp.cygstdc_6.dll_std::string::_Rep::_S_empty_rep_storage
jne 0x4030c8
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1c4], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x1d8]
mov dword [esp], eax
mov dword [ebp - 0x1f0], eax
call fcn.00451168
mov eax, dword [ebp - 0x1c4]
lea edx, [eax - 0xc]
cmp eax, method.std::string.swap_std::string_
jne 0x402f80
mov eax, dword [ebp - 0x1d8]
mov edx, dword [eax - 4]
test edx, edx
jns 0x402d70
mov esi, dword [eax - 0xc]
mov edx, dword [eax - 4]
add esi, eax
test edx, edx
jns 0x402d50
mov ecx, dword [ebp - 0x1ec]
mov edx, esi
call fcn.004012f0
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1f4]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov esi, eax
test eax, eax
je 0x402dd0
lea eax, [ebp - 0x1cc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00451170
lea edx, [eax + 0xc]
cmp esi, 1
je 0x402df0
cmp esi, 4
jae 0x402e90
test esi, esi
jne 0x403070
lea esi, [esi]
nop
cmp eax, sym.imp.cygstdc_6.dll_std::string::_Rep::_S_empty_rep_storage
jne 0x4030e8
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1c4], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1f0]
mov dword [esp], eax
call fcn.00451168
mov eax, dword [ebp - 0x1c4]
lea edx, [eax - 0xc]
cmp eax, method.std::string.swap_std::string_
jne 0x402f20
mov eax, dword [ebp - 0x1d8]
mov edx, dword [eax - 4]
test edx, edx
jns 0x402db0
mov esi, dword [eax - 0xc]
mov edx, dword [eax - 4]
add esi, eax
test edx, edx
jns 0x402d90
mov edi, dword [ebp - 0x1ec]
mov edx, esi
mov ecx, edi
call fcn.004012f0
mov dword [esp], str.Commands:_Ctrl_Z_suspends___.__quits_
mov dword [ebp - 0x1d0], eax
call sub.cygwin1.dll_wcslen
mov dword [esp + 8], edi
lea edi, [ebp - 0x1d4]
mov dword [esp + 4], 0
mov esi, eax
lea eax, [ebp - 0x1d0]
mov dword [esp], 0
mov dword [ebp - 0x1f4], eax
call fcn.00451200
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1f4], esi
mov ecx, dword [eax - 0xc]
add ecx, esi
lea esi, [ebp - 0x1cc]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.004511c0
mov ecx, dword [ebp - 0x1f4]
mov dword [esp + 4], str.Commands:_Ctrl_Z_suspends___.__quits_
mov dword [esp], esi
mov dword [esp + 8], ecx
call fcn.004511e0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004511d8
mov dword [esp], str._gives_literal
call sub.cygwin1.dll_wcslen
mov dword [esp + 4], str._gives_literal
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.004511e0
mov edx, dword [eax]
mov dword [ebp - 0x1c8], edx
mov dword [eax], method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x1f4], eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c8]
mov dword [esp], eax
mov dword [ebp - 0x1f8], eax
call fcn.004511d8
mov edx, dword [eax]
mov dword [ebp - 0x1c4], edx
mov dword [eax], method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
mov eax, dword [ebp - 0x1ec]
mov dword [esp + 4], eax
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004511e8
mov eax, dword [ebp - 0x1c4]
lea edx, [eax - 0xc]
cmp eax, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
jne 0x402f50
mov eax, dword [ebp - 0x1c8]
lea edx, [eax - 0xc]
cmp eax, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
jne 0x403040
mov eax, dword [ebp - 0x1cc]
lea edx, [eax - 0xc]
cmp eax, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
jne 0x403010
mov eax, dword [ebp - 0x1d8]
lea esi, [ebp - 0x9c]
mov dword [esp + 8], str.__To_quit:__s_._
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.cygwin1.dll_snprintf
mov dword [esp], esi
call sub.cygwin1.dll_strlen
mov dword [esp + 4], esi
mov dword [esp + 8], eax
lea eax, [ebx + 0x1b0]
mov dword [esp], eax
call fcn.00451130
mov eax, dword [ebp - 0x1d0]
lea edx, [eax - 0xc]
cmp eax, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
jne 0x402fe0
mov eax, dword [ebp - 0x1d4]
lea edx, [eax - 0xc]
cmp eax, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
jne 0x402fb0
mov eax, dword [ebp - 0x1d8]
lea edx, [eax - 0xc]
cmp eax, method.std::string.swap_std::string_
je 0x4025db
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x4025db
mov eax, dword [ebp - 0x1ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00451180
jmp 0x4025db
or eax, 0x20000
mov dword [ebx + 0x4c], eax
jmp 0x402510
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], str.Ctrl__c
xor esi, esi
mov dword [esp + 4], 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xac]
mov dword [esp], eax
mov dword [ebp - 0x1f4], eax
call sub.cygwin1.dll_snprintf
jmp 0x402756
mov dword [esp], str._mosh_
call sub.cygwin1.dll_wcslen
mov edx, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
add eax, eax
mov dword [ebp - 0x1f4], eax
je 0x402c17
sar eax, 1
mov dword [esp + 4], 0
mov edi, eax
lea eax, [ebp - 0x1cc]
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.004511f0
mov dword [ebp - 0x1f0], eax
lea edx, [eax + 0xc]
cmp edi, 1
je 0x402cd0
test edi, edi
je 0x402c07
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], str._mosh_
mov dword [ebp - 0x1f8], edx
call sub.cygwin1.dll_wmemcpy
mov edx, dword [ebp - 0x1f8]
cmp dword [ebp - 0x1f0], sym.imp.cygstdc_6.dll_std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::_Rep::_S_empty_rep_storage
jne 0x4030a0
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1c4], edx
mov dword [esp + 4], eax
lea eax, [ebx + 0x240]
mov dword [esp], eax
call fcn.004046c0
mov eax, dword [ebp - 0x1c4]
lea edx, [eax - 0xc]
cmp eax, method.std::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.append_wchar_t_const__unsigned_int_
je 0x4025a4
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x4025a4
lea eax, [ebp - 0x1c8]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004511f8
jmp 0x4025a4
movzx eax, word [ebp - 0x1bc]
mov word [edi + 0xc], ax
jmp 0x40266f
cmp eax, 0x1f
jg 0x402f10
lea ecx, [eax + 0x40]
mov edi, ecx
sub edi, 0x41
mov dword [ebx + 0x10], ecx
mov dword [ebp - 0x1f0], edi
lea edi, [ecx + 0x20]
cmp dword [ebp - 0x1f0], 0x1a
cmovae edi, ecx
mov dword [ebx + 0x14], edi
cmp eax, 0xd
jbe 0x402d20
test eax, eax
jle 0x4025db
jmp 0x4026f5
mov ecx, 0x5b
mov word [eax + 0xc], cx
jmp 0x402c07
test esi, esi
je 0x402820
movzx ecx, byte [ebp - 0xbc]
mov eax, dword [ebp - 0x1f0]
mov byte [eax + 0xc], cl
test esi, 2
je 0x402820
movzx ecx, word [ebp + esi - 0xbe]
mov word [edx + esi - 2], cx
jmp 0x402820
mov ecx, 0xffffcbe7
bt ecx, edx
jb 0x402cbf
mov dword [ebx + 0xc], 0x1e
mov eax, 0x5e
mov dword [ebx + 0x10], 0x5e
mov dword [ebx + 0x14], 0x5e
jmp 0x402700
mov eax, dword [ebp - 0x1f0]
mov dword [esp], eax
call fcn.00451198
mov eax, dword [ebp - 0x1d8]
jmp 0x402889
mov eax, dword [ebp - 0x1f0]
mov dword [esp], eax
call fcn.00451198
mov eax, dword [ebp - 0x1d8]
jmp 0x402879
mov eax, dword [ebp - 0x1f0]
mov dword [esp], eax
call fcn.00451198
mov eax, dword [ebp - 0x1d8]
jmp 0x40294e
mov eax, dword [ebp - 0x1f0]
mov dword [esp], eax
call fcn.00451198
mov eax, dword [ebp - 0x1d8]
jmp 0x40293e
mov edx, method.std::string.swap_std::string_
jmp 0x4028fb
mov edx, method.std::string.swap_std::string_
jmp 0x402830
movzx ecx, byte [ebp - 0xac]
mov byte [eax + 0xc], cl
jmp 0x4028f0
movzx ecx, byte [ebp - 0xbc]
mov byte [eax + 0xc], cl
jmp 0x402820
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x4026ad
lea eax, [ebp - 0x1c8]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004511f8
jmp 0x4026ad
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x402590
lea eax, [ebp - 0x1c8]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00451180
jmp 0x402590
mov eax, dword [ebp - 0x1f0]
xor ecx, ecx
mov dword [edi + 8], 0
mov dword [edi], esi
mov word [edi + eax + 0xc], cx
jmp 0x40267b
mov ecx, dword [ebp - 0xac]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + esi - 0xb0]
mov dword [edx + esi - 4], ecx
lea ecx, [eax + 0x10]
and ecx, 0xfffffffc
mov edi, ecx
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x1fc], edi
mov edi, dword [ebp - 0x1f4]
sub edi, ecx
add ecx, esi
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x4028f0
mov dword [ebp - 0x200], eax
and ecx, 0xfffffffc
mov dword [ebp - 0x1f8], edi
mov edi, dword [ebp - 0x1fc]
mov dword [ebp - 0x1f4], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x1f8]
mov eax, dword [eax + ecx]
mov dword [edi + ecx], eax
add ecx, 4
cmp ecx, dword [ebp - 0x1f4]
jb 0x402ee9
mov eax, dword [ebp - 0x200]
jmp 0x4028f0
mov edi, eax
mov ecx, eax
jmp 0x402c9e
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x40292d
lea eax, [ebp - 0x1c8]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00451180
jmp 0x40292d
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x402a73
lea eax, [ebp - 0x1d9]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004511f8
jmp 0x402a73
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x402868
lea eax, [ebp - 0x1c8]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00451180
jmp 0x402868
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x402b09
mov eax, dword [ebp - 0x1ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004511f8
jmp 0x402b09
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x402af5
mov eax, dword [ebp - 0x1ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004511f8
jmp 0x402af5
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x402a9b
mov eax, dword [ebp - 0x1ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004511f8
jmp 0x402a9b
mov ecx, 0xffffffff
lock xadd dword [eax - 4], ecx
test ecx, ecx
jg 0x402a87
mov eax, dword [ebp - 0x1ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004511f8
jmp 0x402a87
movzx ecx, byte [ebp - 0xac]
mov byte [eax + 0xc], cl
test esi, 2
je 0x4028f0
movzx ecx, word [ebp + esi - 0xae]
mov word [edx + esi - 2], cx
jmp 0x4028f0
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f4]
mov dword [eax], edi
xor edi, edi
mov dword [eax + 8], 0
mov word [eax + ecx + 0xc], di
jmp 0x402c17
mov eax, dword [ebp - 0x1f0]
mov dword [eax + 8], 0
mov dword [eax], esi
mov byte [eax + esi + 0xc], 0
jmp 0x402830
mov dword [eax + 8], 0
mov dword [eax], esi
mov byte [eax + esi + 0xc], 0
jmp 0x4028fb
call sub.cygwin1.dll___stack_chk_fail
mov dword [esp], str.tcsetattr
call sub.cygwin1.dll_perror
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov dword [esp], str.tcgetattr
call sub.cygwin1.dll_perror
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea eax, [ebp - 0x1c4]
mov dword [esp], eax
mov dword [ebp - 0x1ec], eax
call fcn.0041e190
push eax
call fcn.0041e430
lea edi, [ebp - 0x1c8]
lea esi, [ebp - 0x1cc]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00467290
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x31
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov dword [esp], str.mosh_client_needs_a_UTF_8_native_locale_to_run._n_n
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp - 0x1ec]
mov ebx, dword [ebp - 0x1cc]
mov dword [esp], edi
mov dword [ebp - 0x1f8], edi
mov dword [esp + 4], eax
call fcn.0041e010
push edi
mov edi, dword [ebp - 0x1c8]
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], str.Unfortunately__the_clients_environment___s__specifies_nthe_character_set___s_._n_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov edi, dword [ebp - 0x1f8]
mov dword [esp], edi
call fcn.004510f0
mov dword [esp], str.locale
call sub.cygwin1.dll_system
jmp 0x403124