Function at 0x5454d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0xe6], 0
mov esi, dword [edi]
mov dword [eax], 0xffffffff
mov eax, dword [edx + 4]
mov ebx, dword [edi]
mov dword [ebp - 0xe4], eax
mov eax, dword [edi + 0x94]
cmp eax, 2
mov dword [ebp - 0xe0], eax
mov eax, 0x11
mov dword [ebp - 0xec], esi
je 0x54552d
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xdc], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xd8], eax
cmp eax, 0x80
jbe 0x545552
mov dword [ebp - 0xd8], 0x80
mov eax, 0x80
push eax
push dword [edx + 0x18]
lea eax, [ebp - 0xd4]
push eax
call fcn.005cfab0
mov eax, dword [ebx + 0x1e0]
add esp, 0xc
test eax, eax
je 0x545585
lea ecx, [ebp - 0xe4]
push ecx
push 0
push dword [ebx + 0x1e4]
call eax
add esp, 0xc
jmp 0x54559d
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
push dword [ebp - 0xe4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x545985
movzx eax, word [ebp - 0xd4]
mov dword [ebp - 0xf0], 0
sub eax, 2
jne 0x54593e
lea eax, [ebp - 0x38]
mov ecx, 2
push 0x2e
push eax
lea edx, [ebp - 0xd0]
call fcn.0055d670
add esp, 8
test eax, eax
je 0x54593e
push dword [ebp - 0xd2]
call dword [sym.imp.WS2_32.dll_ntohs]
lea eax, [ebp - 0x38]
push eax
push str.__Trying__s..._n
push esi
call fcn.00543710
add esp, 0xc
cmp dword [ebp - 0xe4], 2
jne 0x545678
cmp dword [ebp - 0xe0], 1
jne 0x545678
cmp byte [esi + 0x50e], 0
mov byte [ebp - 0xe5], 1
je 0x54567f
mov eax, dword [edi]
push 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 6
push ebx
mov dword [ebp - 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x545666
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.0053fb90
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push dword [ebp - 0x40]
call fcn.00543710
add esp, 0xc
jmp 0x54567f
push str.TCP_NODELAY_set_n
push dword [ebp - 0x40]
call fcn.00543710
add esp, 8
jmp 0x54567f
mov byte [ebp - 0xe5], 0
mov ecx, ebx
call fcn.00545390
cmp byte [ebp - 0xe5], 0
je 0x54573a
cmp byte [esi + 0x640], 0
je 0x54573a
push 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 1
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5456d0
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00543710
add esp, 0xc
jmp 0x54573a
mov eax, dword [esi + 0x644]
and eax, 0x7fffffff
mov dword [ebp - 0x50], 1
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x648]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x50]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x54573a
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.00543710
add esp, 0x10
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x54575e
push 0
push ebx
push dword [esi + 0x1dc]
call eax
add esp, 0xc
cmp eax, 2
jne 0x5457a9
mov byte [ebp - 0xe6], 1
cmp dword [ebp - 0xe4], 2
jne 0x5457cc
push ecx
push 2
mov edx, ebx
mov ecx, edi
call fcn.00544530
mov esi, eax
add esp, 8
mov dword [ebp - 0xf0], esi
test esi, esi
je 0x5457cc
mov edx, ebx
mov ecx, edi
call fcn.00545c60
mov eax, 7
cmp esi, 1
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x54575e
mov edx, ebx
mov ecx, edi
call fcn.00545c60
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x50], 0
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x54], edx
sub esi, ecx
imul eax, esi, 0x3e8
cmp dword [edi + 0x298], 1
mov esi, dword [ebp - 0xec]
mov dword [ebp - 0x4c], eax
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [edi + 0x288], xmm0
jle 0x545845
push dword [edi + 0x2a4]
mov edx, 3
mov ecx, esi
push dword [edi + 0x2a0]
call fcn.005431d0
add esp, 8
cmp byte [ebp - 0xe6], 0
jne 0x545923
cmp dword [edi + 0x94], 1
jne 0x545923
cmp byte [edi + 0x282], 0
jne 0x5458a8
push dword [ebp - 0xd8]
lea eax, [ebp - 0xd4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x5458a8
mov eax, dword [ebp - 0xf0]
test eax, eax
jne 0x545987
mov ecx, dword [ebp - 0xf4]
mov dword [ecx], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x3c], eax
cmp eax, 0xb
je 0x545908
cmp eax, 0x2732
jle 0x5458c4
cmp eax, 0x2734
jle 0x545908
mov edx, eax
mov ecx, edi
call fcn.0053fb90
push eax
lea eax, [ebp - 0x38]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00543710
mov eax, dword [ebp - 0x3c]
add esp, 0x10
mov edx, ebx
mov dword [esi + 0x48ac], eax
mov ecx, edi
call fcn.00545c60
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xf4]
xor eax, eax
mov dword [ecx], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xf4]
xor eax, eax
mov dword [ecx], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x38], 0
call fcn.005de15b
mov dword [eax], 0x273f
call fcn.005de15b
mov esi, dword [eax]
call fcn.005de15b
mov ecx, dword [ebp - 0x3c]
mov edx, esi
mov edi, eax
call fcn.0053fb90
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xec]
call fcn.00543790
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
mov edx, ebx
call fcn.00545c60
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret