Function at 0x433ee0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov eax, dword [0x59da54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add eax, 0x72
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + eax*4]
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1ec], eax
push edi
mov edi, dword [esi]
mov dword [eax], 0xffffffff
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x90]
mov ebx, dword [esi]
mov dword [ebp - 0x1d4], eax
xor eax, eax
cmp ecx, 3
mov byte [ebp - 0x1d6], 0
mov dword [ebp - 0x1dc], edi
setne al
mov dword [ebp - 0x1e4], ebx
inc eax
mov dword [ebp - 0x1d0], eax
mov eax, 0x11
cmp ecx, 3
jne 0x433f59
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1cc], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c8], eax
cmp eax, 0x80
jbe 0x433f7e
mov dword [ebp - 0x1c8], 0x80
mov eax, 0x80
push eax
push dword [edx + 0x18]
lea eax, [ebp - 0x1c4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [ebx + 0x610], 0
je 0x433fcd
push 1
push ebx
call fcn.00424cc0
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [ebx + 0x610]
push 0
push dword [ebx + 0x614]
call eax
push 0
push dword [ebp - 0x1e4]
mov ebx, eax
call fcn.00424cc0
add esp, 0x1c
jmp 0x433fe7
push dword [ebp - 0x1cc]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1d4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x4344aa
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
call fcn.00432860
add esp, 0x10
test al, al
jne 0x434071
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
call esi
mov esi, eax
lea eax, [ebp - 0xb4]
push 0x80
push eax
push edi
call fcn.00456fd0
push eax
push dword [esi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x1dc]
call fcn.00431d00
push ebx
push dword [ebp - 0x1e0]
call fcn.00432900
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1e4]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_ld..._n
push edi
call fcn.00431de0
mov eax, dword [ebp - 0x1d4]
add esp, 0x10
cmp eax, 2
je 0x43409d
cmp eax, 0x17
jne 0x434123
cmp dword [ebp - 0x1d0], 1
jne 0x434123
test byte [edi + 0xa98], 8
mov byte [ebp - 0x1d5], 1
je 0x43412a
mov eax, dword [esi]
push 4
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x1e0]
push eax
push 1
push 6
push ebx
mov dword [ebp - 0x1e0], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43410e
push 0x80
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00456fd0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push dword [ebp - 0x1dc]
call fcn.00431de0
add esp, 0x18
jmp 0x43412a
push str.TCP_NODELAY_set_n
push dword [ebp - 0x1dc]
call fcn.00431de0
add esp, 8
jmp 0x43412a
mov byte [ebp - 0x1d5], 0
mov eax, dword [0x59f3bc]
mov dword [ebp - 0x1e4], 0x4020
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1e0], 4
test eax, eax
jne 0x43417c
push 3
push 2
push eax
push 6
call fcn.004348f0
add esp, 0x10
test al, al
je 0x434170
mov dword [0x59f3bc], 2
jmp 0x4341cc
mov dword [0x59f3bc], 1
jmp 0x434181
cmp eax, 2
je 0x4341cc
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1dc]
push eax
push 0x1001
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4341b2
mov eax, dword [ebp - 0x1dc]
cmp eax, dword [ebp - 0x1e4]
jg 0x4341cc
push 4
lea eax, [ebp - 0x1e4]
push eax
push 0x1001
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [ebp - 0x1d5], 0
je 0x4342a5
mov eax, dword [edi + 0xa98]
shr eax, 0xc
and eax, 1
je 0x4342a5
push 4
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x1dc]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x434220
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.00431de0
add esp, 0xc
jmp 0x4342a5
push dword [edi + 0xa58]
mov dword [ebp - 0x140], 1
call fcn.00422cd0
push dword [edi + 0xa5c]
imul eax, eax, 0x3e8
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x13c], eax
call fcn.00422cd0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x1e0]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x140]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4342a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push edi
call fcn.00431de0
add esp, 0x10
cmp dword [edi + 0x608], 0
je 0x4342ea
push 1
push edi
call fcn.00424cc0
mov eax, dword [edi + 0x608]
push 0
push ebx
push dword [edi + 0x60c]
call eax
push 0
push edi
mov dword [ebp - 0x1e0], eax
call fcn.00424cc0
mov eax, dword [ebp - 0x1e0]
add esp, 0x1c
cmp eax, 2
jne 0x43434d
mov byte [ebp - 0x1d6], 1
mov eax, dword [ebp - 0x1d4]
cmp eax, 2
je 0x4342fa
cmp eax, 0x17
jne 0x434371
lea eax, [ebp - 0x1c4]
push eax
call fcn.00457850
push eax
push dword [ebp - 0x1d4]
push ebx
push esi
call fcn.00433980
add esp, 0x14
mov dword [ebp - 0x1e8], eax
test eax, eax
je 0x434371
push ebx
push esi
call fcn.00432900
mov eax, dword [ebp - 0x1e8]
add esp, 8
cmp eax, 1
mov ecx, 7
cmove eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4342ea
push ebx
push esi
call fcn.00432900
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
push 1
push ebx
call fcn.004578f0
lea eax, [ebp - 0x144]
push eax
call fcn.00435e80
add esp, 0xc
cmp dword [esi + 0x2b8], 1
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x2a8], xmm0
jle 0x4343b2
push 3
push dword [esi + 0x2c4]
push dword [esi + 0x2c0]
push edi
call fcn.004243f0
add esp, 0x10
cmp byte [ebp - 0x1d6], 0
jne 0x4344a0
cmp dword [esi + 0x90], 4
je 0x4344a0
test dword [esi + 0x29c], 0x10000000
jne 0x434418
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x434418
mov eax, dword [ebp - 0x1e8]
test eax, eax
jne 0x4344aa
mov ecx, dword [ebp - 0x1ec]
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1e0], eax
cmp eax, 0xb
je 0x434485
cmp eax, 0x2732
jle 0x434437
cmp eax, 0x2734
jle 0x434485
push 0x80
lea ecx, [ebp - 0xb4]
push ecx
push eax
call fcn.00456fd0
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.00431de0
mov eax, dword [ebp - 0x1e0]
push ebx
push esi
mov dword [edi + 0xcb4], eax
call fcn.00432900
add esp, 0x24
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1ec]
xor eax, eax
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1ec]
xor eax, eax
mov dword [ecx], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493440
mov esp, ebp
pop ebp
ret