Function at 0x426f72
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x441ff4], 0
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x42701e
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x426fba
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x42701e
cmp eax, 3
jle 0x42701e
call edi
mov ebx, eax
call ebp
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x426fd7
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42700d
push 3
push dword [0x43e9c8]
push 0x418
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
mov eax, dword [esi]
push dword [eax]
push str.CSSLSocket::Reconnect__closed_socket__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi]
mov dword [ecx], eax
cmp dword [0x441ff4], 0
je 0x4270bb
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x427057
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x4270bb
cmp eax, 3
jle 0x4270bb
call edi
mov ebx, eax
call ebp
cmp dword [0x43e9c8], 0
mov dword [esp + 0x10], eax
jge 0x427074
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x4270aa
push 3
push dword [0x43e9c8]
push 0x41a
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
mov eax, dword [esi]
push dword [eax]
push str.CSSLSocket::Reconnect__opened_socket__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ax, word [esi + 0x262]
mov word [esp + 0x18], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [esp + 0x34]
mov word [esp + 0x1a], ax
test ebx, ebx
je 0x42719c
cmp dword [0x441ff4], 0
je 0x427193
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x427112
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x427193
cmp eax, 3
jle 0x427193
call edi
mov dword [esp + 0x10], eax
call ebp
cmp dword [0x43e9c8], 0
mov dword [esp + 0x14], eax
jge 0x427131
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42717f
push 3
push dword [0x43e9c8]
push 0x421
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
movzx eax, byte [esp + 0x47]
push dword [esp + 0x3c]
push eax
movzx eax, byte [esp + 0x4e]
push eax
movzx eax, bh
push eax
movzx eax, bl
push eax
lea eax, [esi + 0x58]
push eax
push str.Reconnect:_Proxy__s_already_resolved_to__d._d._d._d__gateway_is__s_n
call fcn.0041c506
add esp, 0x2c
call fcn.0041c4cc
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x1c], ebx
jmp 0x42725d
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor ebx, ebx
cmp eax, ebx
jne 0x427249
cmp dword [0x441ff4], ebx
je 0x427232
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x4271d3
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x427232
cmp eax, 1
jle 0x427232
call edi
mov esi, eax
call ebp
cmp dword [0x43e9c8], ebx
mov ebp, eax
jge 0x4271ed
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x427224
push 1
push dword [0x43e9c8]
push 0x428
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
call edi
push eax
push str._Error__d_returned_by_gethostbyname_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x427320
mov dword [eax], 6
jmp 0x427320
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esp + 0x24]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x18]
push 0x10
push eax
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x427325
call edi
cmp dword [0x441ff4], 0
mov ebx, eax
je 0x427312
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x4272a4
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x427312
cmp eax, 1
jle 0x427312
call edi
mov esi, eax
call ebp
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x4272bf
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x427304
push 1
push dword [0x43e9c8]
push 0x438
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [esp + 0x30]
push ebx
push str._Error__d_connecting_to___s____s__n
call fcn.0041c506
add esp, 0x10
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x427320
mov dword [eax], 4
or eax, 0xffffffff
jmp 0x427327
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc