Function at 0x481271
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x116]
push 0x103
mov word [ebp - 0x118], bx
stosw word es:[edi], ax
lea eax, [ebp - 0x10f]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x120], esi
mov byte [ebp - 0x110], bl
call fcn.004b53e0
add esp, 0xc
mov edx, esi
call fcn.0047c3ca
test eax, eax
je 0x4812d8
push str.:7:Empty_string_was_passed_into_OpenTelNetSession__.
call fcn.00417db7
pop ecx
jmp 0x4816aa
push esi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.0047c3fc
pop ecx
mov esi, 0x4f29fc
push esi
push eax
mov dword [ebp - 0x11c], ebx
call fcn.004b46f0
test eax, eax
pop ecx
pop ecx
je 0x48133f
push esi
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x114], ebx
call fcn.0047de6b
cmp eax, ebx
pop ecx
je 0x48133f
push esi
lea eax, [ebp - 0x114]
xor ecx, ecx
call fcn.0047de6b
cmp eax, ebx
pop ecx
je 0x48133f
push eax
call fcn.004b64a4
pop ecx
mov dword [ebp - 0x11c], eax
mov eax, 0x642cb8
call fcn.0047c34d
push dword [ebp + 8]
lea ecx, [ebp - 0x110]
push dword [ebp - 0x11c]
call fcn.0048371a
mov esi, eax
cmp esi, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x114], esi
jne 0x48139e
call fcn.0040eb6c
test eax, eax
je 0x481388
inc dword [0x642dd8]
cmp dword [0x642dd8], 3
jg 0x4816aa
push dword [ebp - 0x120]
push str.OpenTelNetSession___FAILED_to_connect_to___s_
call fcn.00417db7
pop ecx
jmp 0x4812d2
push ebx
push 1
push ebx
push 3
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4813d1
push str.OpenTelNetSession___FAILED:_Could_not_create_console_screen_buffer___GetLastError_
call fcn.004178df
pop ecx
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
jmp 0x4816aa
mov word [ebp - 0x118], 0x50
mov word [ebp - 0x116], 0xfb
push dword [ebp - 0x118]
mov ebx, edi
call fcn.0040bd8f
test eax, eax
pop ecx
jne 0x481416
push 0xfb
push 0x50
push str.OpenTelNetSession___FAILED:_Could_not_create_screen_buffer_of_size__dx_d_
call fcn.004178df
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
call fcn.0041d762
jmp 0x4813c7
push 3
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 1
mov esi, 0x1050
push esi
call fcn.004b422c
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x481456
push 1
push esi
push str.OpenTelNetSession___FAILED:_Could_not_calloc__d___d__
call fcn.004178df
add esp, 0xc
push dword [ebp - 0x114]
jmp 0x48140a
push esi
push 0
push ebx
call fcn.004b53e0
mov ecx, dword [ebp - 0x114]
and dword [ebx + 0xaa8], 0
and dword [ebx + 0xd2c], 0
add esp, 0xc
push 0x50
pop eax
mov dword [ebx + 0x104], edi
mov dword [ebx + 0xe8], eax
mov dword [ebx + 0xd8], eax
mov edi, str..TelNet.c
lea eax, [ebx + 0xb20]
push edi
push eax
mov dword [ebx + 0xec], 0xfb
mov dword [ebx + 0xacc], ecx
mov dword [ebx + 0xdc], 0x19
mov word [ebx + 0x100], 7
call fcn.0041f4a2
test eax, eax
pop ecx
pop ecx
jne 0x4814d1
push str.:5:OpenTelNetSession_Sub___EAP:_InitializeLock_LockParams__FAILED.
call fcn.004178df
pop ecx
mov esi, str.A_TelNet_handle_had_to_be_forced_to_unlock___
lea eax, [ebx + 0xb20]
call fcn.0041f7a1
mov eax, 0xfa0
lea ecx, [ebx + 0xb20]
call fcn.0041f7de
lea eax, [ebx + 0xd44]
push edi
push eax
call fcn.0041f4a2
test eax, eax
pop ecx
pop ecx
jne 0x48150f
push str.:5:OpenTelNetSession_Sub___EAP:_InitializeLock_LockParamsConsole__FAILED.
call fcn.004178df
pop ecx
lea edi, [ebx + 0xd44]
mov esi, str.A_TelNet_handles_CONSOLE_had_to_be_forced_to_unlock___
mov eax, edi
call fcn.0041f7a1
mov eax, 0xbb8
mov ecx, edi
call fcn.0041f7de
push 0x50
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.00442354
add esp, 0xc
test eax, eax
jne 0x481568
lea eax, [ebp - 0x110]
push eax
push str.:4:OpenTelNetSession__:_ResolveHostNameToIP___s___FAILED.
call fcn.00417db7
lea eax, [ebp - 0x110]
push eax
push 0x50
pop ecx
mov eax, ebx
call fcn.0047c3fc
add esp, 0xc
mov eax, dword [ebp - 0x11c]
xor edi, edi
mov dword [ebx + 0x54], eax
mov esi, 0x61a80
mov dword [ebx + 0xa80], edi
mov dword [ebx + 0xa84], edi
lea eax, [esi + 1]
push eax
push 1
call fcn.004b422c
cmp eax, edi
pop ecx
pop ecx
mov dword [ebx + 0xa80], eax
je 0x4815b2
lea eax, [esi + 1]
push eax
push 4
call fcn.004b422c
cmp eax, edi
pop ecx
pop ecx
mov dword [ebx + 0xa84], eax
jne 0x481612
mov eax, dword [ebx + 0xa80]
shr esi, 1
cmp eax, edi
je 0x4815cb
push eax
call fcn.004b4080
pop ecx
mov dword [ebx + 0xa80], edi
mov eax, dword [ebx + 0xa84]
cmp eax, edi
je 0x4815e2
push eax
call fcn.004b4080
pop ecx
mov dword [ebx + 0xa84], edi
cmp esi, 0x9c40
jb 0x481698
push esi
push 0x50
pop ecx
xor edx, edx
mov eax, esi
div ecx
push 0x19
pop ecx
xor edx, edx
div ecx
push eax
push str.OpenTelNetSession___could_not_create_a__ld_page_receive_buffer_of_size__ld_bytes:__OUT_OF_MEMORY__
call fcn.00417db7
add esp, 0xc
jmp 0x481584
mov dword [ebx + 0xa88], esi
mov dword [ebx + 0xa8c], edi
mov dword [eax + esi*4 - 4], edi
mov eax, dword [0x642ca8]
cmp eax, edi
mov dword [ebx + 0xd0], edi
mov dword [ebx + 0xd4], edi
jne 0x481641
call fcn.0046ed85
mov dword [0x642ca8], eax
push ebx
call fcn.0046ee6e
pop ecx
mov eax, ebx
call fcn.0048350e
test eax, eax
jne 0x481688
mov eax, ebx
call fcn.00481733
mov eax, dword [0x642ca8]
call fcn.0046efe0
push dword [0x642ca8]
call fcn.0046f242
test eax, eax
pop ecx
jg 0x4816aa
mov edi, dword [0x642ca8]
call fcn.0046ee28
and dword [0x642ca8], 0
jmp 0x4816aa
mov esi, ebx
call fcn.004816f0
call fcn.00480ea1
mov eax, ebx
jmp 0x4816ac
push str.OpenTelNetSession___FAILED:_Could_not_create_20_page_data_receive_buffer:__OUT_OF_MEMORY__
call fcn.004178df
pop ecx
mov eax, ebx
call fcn.00481733
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret