Function at 0x4266a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push 0xffffffffffffffff
push 0x43c396
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [0x44b754]
xor eax, esp
push ebx
push edi
mov edi, dword [esp + 0xf8]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0xe4], eax
jne 0x4266e0
or eax, 0xffffffff
jmp 0x426924
xor eax, eax
mov dword [esp + 0xd4], eax
push esi
mov esi, dword [esp + 0x100]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
push esi
mov dword [esp + 0xe8], eax
mov word [esp + 0xdc], 2
call dword [sym.imp.WS2_32.dll_htons]
push 1
push 3
lea ecx, [esp + 0x58]
mov word [esp + 0xe2], ax
call fcn.00425210
push esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0xf8], ebx
call fcn.00424580
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xdc], eax
jne 0x426890
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x30], ecx
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 6
mov dword [esp + 0x14], ebx
call fcn.00426680
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xf4], 1
jb 0x4267b3
mov esi, dword [eax + 4]
jmp 0x4267b6
lea esi, [eax + 4]
mov eax, dword [0x44ea28]
cmp eax, ebx
jne 0x4267ca
push ebx
call fcn.00422c20
mov dword [0x44ea28], eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push edi
call eax
test eax, eax
mov eax, dword [esp + 0x4c]
setne byte [esp + 0xf]
cmp eax, 0x10
mov byte [esp + 0xf4], bl
jb 0x4267fc
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bb52
add esp, 4
cmp byte [esp + 0xf], bl
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
je 0x426848
lea ecx, [esp + 0xa4]
mov dword [esp + 0xf4], 0xffffffff
call fcn.00423c90
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0042a9b9
or eax, 0xffffffff
jmp 0x426923
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov dword [esp + 0xd8], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0xdc], edx
mov edx, dword [ecx + 8]
mov esi, eax
mov eax, dword [0x44ea2c]
cmp eax, ebx
mov dword [esp + 0xe0], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0xe4], ecx
jne 0x42688d
push 2
call fcn.00422c20
mov dword [0x44ea2c], eax
push esi
call eax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x4268f7
push 0x10
lea edx, [esp + 0xdc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
jne 0x42694b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connect_failed_:
push 0x44eb98
call fcn.00424260
add esp, 8
mov ecx, eax
call fcn.00424710
mov edi, eax
push 0xa
mov ecx, edi
call fcn.00424880
mov ecx, edi
call fcn.00423c30
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0xa4]
mov dword [esp + 0xf4], ebx
call fcn.00423c90
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0042a9b9
mov eax, ebx
pop esi
mov ecx, dword [esp + 0xe8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe0]
pop ebx
xor ecx, esp
call fcn.0042baa4
add esp, 0xec
ret 8
lea ecx, [esp + 0xa4]
mov dword [esp + 0xf4], ebx
call fcn.00423c90
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.0042a9b9
mov eax, esi
jmp 0x426923