Function at 0x4457f0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, 0x54
mov edx, dword [ebp + 0x10]
lea eax, [ecx + eax*4]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0xffffffff
push esi
mov dword [ebp - 0x2f0], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x2d4], eax
xor eax, eax
push edi
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x2e4], ecx
mov byte [ebp - 0x2d6], 0
cmp dword [edi + 0x58], 3
setne al
inc eax
mov dword [ebp - 0x2d0], eax
mov eax, 0x11
cmp dword [edi + 0x58], 3
jne 0x44585b
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2cc], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c8], eax
cmp eax, 0x80
jbe 0x445880
mov dword [ebp - 0x2c8], 0x80
mov eax, 0x80
push eax
push dword [edx + 0x18]
lea eax, [ebp - 0x2c4]
push eax
call fcn.00477960
add esp, 0xc
cmp dword [ebx + 0x1c0], 0
je 0x4458d0
push 1
push ebx
call fcn.00435240
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [ebx + 0x1c0]
push 0
push dword [ebx + 0x1c4]
call eax
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x2dc], esi
call fcn.00435240
add esp, 0x1c
jmp 0x4458f0
push dword [ebp - 0x2cc]
push dword [ebp - 0x2d0]
push dword [ebp - 0x2d4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x2dc], eax
cmp esi, 0xffffffff
jne 0x44590b
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x58], 5
jne 0x44591c
push 1
push esi
call fcn.0046bb50
add esp, 8
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c4]
push eax
call fcn.00443dd0
add esp, 0x10
test al, al
jne 0x445997
call fcn.00482b29
mov esi, dword [eax]
call fcn.00482b29
mov edi, eax
lea eax, [ebp - 0x134]
push 0x100
push eax
push esi
call fcn.00455fb0
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00443440
push dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x2e4]
push eax
push ebx
call fcn.00443e40
add esp, 0x28
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x2e8]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_d...
push ebx
call fcn.00443500
mov eax, dword [ebp - 0x2d4]
add esp, 0x10
cmp eax, 2
je 0x4459bf
cmp eax, 0x17
jne 0x445a3e
cmp dword [ebp - 0x2d0], 1
jne 0x445a3e
mov al, 1
xor edi, edi
cmp byte [ebx + 0x717], 0
mov byte [ebp - 0x2dd], al
mov byte [ebp - 0x2d5], al
je 0x445a47
push 4
mov byte [ebp - 0x2d5], al
lea eax, [ebp - 0x2e8]
push eax
push 1
push 6
push esi
mov dword [ebp - 0x2e8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x445a47
push 0x100
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00455fb0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push ebx
call fcn.00443500
mov al, byte [ebp - 0x2dd]
add esp, 0x18
mov byte [ebp - 0x2d5], al
jmp 0x445a45
mov byte [ebp - 0x2d5], 0
xor edi, edi
mov eax, dword [0x4c6648]
mov dword [ebp - 0x2e8], 0x4020
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2ec], 4
test eax, eax
jne 0x445a99
push 3
push 2
push eax
push 6
call fcn.0046bee0
add esp, 0x10
test al, al
je 0x445a8d
mov dword [0x4c6648], 2
jmp 0x445ae9
mov dword [0x4c6648], 1
jmp 0x445a9e
cmp eax, 2
je 0x445ae9
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x2dc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x445acf
mov eax, dword [ebp - 0x2dc]
cmp eax, dword [ebp - 0x2e8]
jg 0x445ae9
push 4
lea eax, [ebp - 0x2e8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [ebp - 0x2d5], 0
je 0x445bc1
cmp byte [ebx + 0x71f], 0
je 0x445bc1
push 4
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 1
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x445b3c
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push ebx
call fcn.00443500
add esp, 0xc
jmp 0x445bc1
push dword [ebx + 0x6b8]
mov dword [ebp - 0x240], 1
call fcn.00445eb0
push dword [ebx + 0x6bc]
imul eax, eax, 0x3e8
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x23c], eax
call fcn.00445eb0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x2ec]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x240]
push eax
push 0x98000004
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x445bc1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push ebx
call fcn.00443500
add esp, 0x10
cmp dword [ebx + 0x1b8], 0
je 0x445c06
push 1
push ebx
call fcn.00435240
mov eax, dword [ebx + 0x1b8]
push 0
push esi
push dword [ebx + 0x1bc]
call eax
push 0
push ebx
mov dword [ebp - 0x2ec], eax
call fcn.00435240
mov eax, dword [ebp - 0x2ec]
add esp, 0x1c
cmp eax, 2
jne 0x445c68
mov byte [ebp - 0x2d6], 1
mov eax, dword [ebp - 0x2d4]
cmp eax, 2
je 0x445c16
cmp eax, 0x17
jne 0x445c93
lea eax, [ebp - 0x2c4]
push eax
call fcn.0046bab0
push eax
push dword [ebp - 0x2d4]
push esi
push ebx
call fcn.00445100
mov edi, eax
add esp, 0x14
test edi, edi
je 0x445c93
mov eax, dword [ebp - 0x2e4]
push esi
push eax
push ebx
call fcn.00443e40
add esp, 0xc
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x445c06
mov eax, dword [ebp - 0x2e4]
push esi
push eax
push ebx
call fcn.00443e40
add esp, 0xc
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.0046bb50
lea eax, [ebp - 0x244]
push eax
call fcn.004482a0
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x2e4]
cmp dword [eax + 0x268], 1
movups xmmword [eax + 0x270], xmm0
jle 0x445cfa
push 3
push dword [eax + 0x284]
push dword [eax + 0x280]
push ebx
call fcn.00434d30
mov eax, dword [ebp - 0x2e4]
push 4
push dword [eax + 0x28c]
push dword [eax + 0x288]
push ebx
call fcn.00434d30
mov eax, dword [ebp - 0x2e4]
add esp, 0x20
cmp byte [ebp - 0x2d6], 0
jne 0x445de0
cmp dword [eax + 0x58], 4
je 0x445de0
cmp byte [eax + 0x25e], 0
jne 0x445d56
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x445d56
test edi, edi
jne 0x445dcd
mov eax, dword [ebp - 0x2f0]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, edi
sub ecx, 0xb
je 0x445dc3
sub ecx, 0x2728
je 0x445dc3
sub ecx, 1
je 0x445dc3
push 0x100
lea eax, [ebp - 0x134]
push eax
push edi
call fcn.00455fb0
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s
push ebx
call fcn.00443500
mov eax, dword [ebp - 0x2e4]
push esi
push eax
push ebx
mov dword [ebx + 0x964], edi
call fcn.00443e40
add esp, 0x28
mov edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2f0]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
call fcn.00475c6f
mov esp, ebp
pop ebp
ret