Function at 0x4923b0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f0
mov eax, dword [0x55f2b4]
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
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + eax*4]
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 0x1d6], 0
mov esi, dword [edi]
mov dword [eax], 0xffffffff
mov eax, dword [edx + 4]
mov ecx, dword [edi + 0x90]
mov ebx, dword [edi]
mov dword [ebp - 0x1d4], eax
xor eax, eax
cmp ecx, 3
mov dword [ebp - 0x1e8], esi
mov dword [ebp - 0x1e0], ebx
setne al
inc eax
mov dword [ebp - 0x1d0], eax
mov eax, 0x11
cmp ecx, 3
jne 0x492429
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1cc], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c8], eax
cmp eax, 0x80
jbe 0x49244e
mov dword [ebp - 0x1c8], 0x80
mov eax, 0x80
push eax
push dword [edx + 0x18]
lea eax, [ebp - 0x1c4]
push eax
call fcn.004e8240
add esp, 0xc
cmp dword [ebx + 0x610], 0
je 0x4924ae
push 1
push ebx
call fcn.0047b390
mov esi, dword [ebx + 0x610]
lea eax, [ebp - 0x1d4]
add esp, 8
mov ecx, esi
push eax
push 0
push dword [ebx + 0x614]
call dword [0x51a4a0]
call esi
push 0
push dword [ebp - 0x1e0]
mov ebx, eax
call fcn.0047b390
mov esi, dword [ebp - 0x1e8]
add esp, 0x14
jmp 0x4924c8
push dword [ebp - 0x1cc]
push dword [ebp - 0x1d0]
push dword [ebp - 0x1d4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4929c1
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x4924f1
mov eax, dword [ebp - 0x1ac]
cmp dword [ebp - 0x1d4], 0x17
cmove eax, ecx
mov dword [ebp - 0x1ac], eax
xor eax, eax
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
call fcn.00490de0
add esp, 0x10
test al, al
jne 0x492572
call fcn.004ed530
mov esi, dword [eax]
call fcn.004ed530
mov edi, eax
lea eax, [ebp - 0xb4]
push 0x80
push eax
push esi
call fcn.00479770
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x1e8]
call fcn.004902f0
push ebx
push dword [ebp - 0x1dc]
call fcn.00490e80
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1e0]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_ld..._n
push esi
call fcn.004903d0
mov eax, dword [ebp - 0x1d4]
add esp, 0x10
cmp eax, 2
je 0x49259e
cmp eax, 0x17
jne 0x49262b
cmp dword [ebp - 0x1d0], 1
jne 0x49262b
test dword [esi + 0xa8c], 0x40000000
mov byte [ebp - 0x1d5], 1
je 0x492632
mov eax, dword [edi]
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 0x492616
push 0x80
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00479770
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push dword [ebp - 0x1dc]
call fcn.004903d0
add esp, 0x18
jmp 0x492632
push str.TCP_NODELAY_set_n
push dword [ebp - 0x1dc]
call fcn.004903d0
add esp, 8
jmp 0x492632
mov byte [ebp - 0x1d5], 0
mov eax, dword [0x56421c]
mov dword [ebp - 0x1e0], 0x4020
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1e4], 4
test eax, eax
jne 0x492684
push 3
push 2
push eax
push 6
call fcn.00492eb0
add esp, 0x10
test al, al
je 0x492678
mov dword [0x56421c], 2
jmp 0x4926d4
mov dword [0x56421c], 1
jmp 0x492689
cmp eax, 2
je 0x4926d4
lea eax, [ebp - 0x1e4]
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 0x4926ba
mov eax, dword [ebp - 0x1dc]
cmp eax, dword [ebp - 0x1e0]
jg 0x4926d4
push 4
lea eax, [ebp - 0x1e0]
push eax
push 0x1001
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [ebp - 0x1d5], 0
je 0x4927ad
mov eax, dword [esi + 0xa90]
shr eax, 7
and eax, 1
je 0x4927ad
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 0x492728
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004903d0
add esp, 0xc
jmp 0x4927ad
push dword [esi + 0xa50]
mov dword [ebp - 0x140], 1
call fcn.00492ab0
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x13c], eax
call fcn.00492ab0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x1e4]
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 0x4927ad
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 esi
call fcn.004903d0
add esp, 0x10
cmp dword [esi + 0x608], 0
je 0x492803
push 1
push esi
call fcn.0047b390
add esp, 8
push 0
push ebx
push dword [esi + 0x60c]
mov esi, dword [esi + 0x608]
mov ecx, esi
call dword [0x51a4a0]
call esi
mov esi, dword [ebp - 0x1e8]
push 0
push esi
mov dword [ebp - 0x1e4], eax
call fcn.0047b390
mov eax, dword [ebp - 0x1e4]
add esp, 0x14
cmp eax, 2
jne 0x492866
mov byte [ebp - 0x1d6], 1
mov eax, dword [ebp - 0x1d4]
cmp eax, 2
je 0x492813
cmp eax, 0x17
jne 0x49288a
lea eax, [ebp - 0x1c4]
push eax
call fcn.004aa980
push eax
push dword [ebp - 0x1d4]
push ebx
push edi
call fcn.00491df0
add esp, 0x14
mov dword [ebp - 0x1ec], eax
test eax, eax
je 0x49288a
push ebx
push edi
call fcn.00490e80
mov eax, dword [ebp - 0x1ec]
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.004d0675
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x492803
push ebx
push edi
call fcn.00490e80
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
push 1
push ebx
call fcn.004aaa20
lea eax, [ebp - 0x144]
push eax
call fcn.00493b70
add esp, 0xc
cmp dword [edi + 0x2b0], 1
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x2a0], xmm0
jle 0x4928cb
push 3
push dword [edi + 0x2bc]
push dword [edi + 0x2b8]
push esi
call fcn.0047a8c0
add esp, 0x10
cmp byte [ebp - 0x1d6], 0
jne 0x4929b9
cmp dword [edi + 0x90], 4
je 0x4929b9
test dword [edi + 0x29c], 0x2000000
jne 0x492931
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x492931
mov eax, dword [ebp - 0x1ec]
test eax, eax
jne 0x4929c3
mov ecx, dword [ebp - 0x1f0]
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1e4], eax
cmp eax, 0xb
je 0x49299e
cmp eax, 0x2732
jle 0x492950
cmp eax, 0x2734
jle 0x49299e
push 0x80
lea ecx, [ebp - 0xb4]
push ecx
push eax
call fcn.00479770
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.004903d0
mov eax, dword [ebp - 0x1e4]
push ebx
push edi
mov dword [esi + 0xcac], eax
call fcn.00490e80
add esp, 0x24
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1f0]
xor eax, eax
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0675
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1f0]
mov dword [ecx], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0675
mov esp, ebp
pop ebp
ret