Function at 0x45ec10
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x184
mov eax, dword [0x4d901c]
xor eax, esp
mov dword [esp + 0x180], eax
mov edx, dword [esp + 0x190]
xor eax, eax
mov ecx, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x18c]
push ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ebp, dword [ebx]
mov dword [edx], 0xffffffff
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x8c]
cmp eax, 2
push esi
mov esi, dword [ebx]
mov dword [esp + 0x34], eax
mov eax, 0x11
push edi
mov dword [esp + 0x24], edx
je 0x45ec73
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x40], eax
cmp eax, 0x80
jbe 0x45ec92
mov dword [esp + 0x40], 0x80
mov eax, 0x80
push eax
push dword [ecx + 0x18]
lea eax, [esp + 0x4c]
push eax
call fcn.00484660
mov eax, dword [esi + 0x1b8]
add esp, 0xc
test eax, eax
je 0x45ecc1
lea ecx, [esp + 0x34]
push ecx
push 0
push dword [esi + 0x1bc]
call eax
add esp, 0xc
jmp 0x45ecd3
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x45f08f
mov ecx, dword [ebx + 0x88]
test ecx, ecx
je 0x45ecf8
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x34], 0x17
cmove eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0045eb80
add esp, 0xc
test eax, eax
jne 0x45ed41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00450a40
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0045d070
push edi
push ebx
call fcn.0045d7f0
add esp, 0x20
jmp 0x45f08f
lea eax, [esp + 0x160]
push eax
push str.__Trying__s..._n
push ebp
call fcn.0045d140
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
cmp dword [ebp + 0x35c], 0
je 0x45edba
mov esi, dword [ebx]
push 4
mov eax, dword [esi + 0x35c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x45eda6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
call fcn.00450a40
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0045d140
add esp, 0x14
jmp 0x45edb4
push str.TCP_NODELAY_set_n
push esi
call fcn.0045d140
add esp, 8
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [0x4dc620]
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
test eax, eax
jne 0x45ee43
push 0x94
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.00484bf0
add esp, 0xc
mov dword [esp + 0xc4], 0x9c
mov dword [esp + 0xc8], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x45ee37
mov dword [0x4dc620], 2
jmp 0x45ee85
mov dword [0x4dc620], 1
jmp 0x45ee48
cmp eax, 2
je 0x45ee85
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x45ee71
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jg 0x45ee85
push 4
lea eax, [esp + 0x20]
push eax
push 0x1001
push 0xffff
push edi
call esi
cmp dword [ebp + 0x464], 0
je 0x45ef37
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
jns 0x45eec0
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push ebp
call fcn.0045d140
add esp, 0xc
jmp 0x45ef37
push dword [ebp + 0x468]
mov dword [esp + 0x2c], 1
call fcn.004511f0
push dword [ebp + 0x46c]
imul eax, eax, 0x3e8
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
call fcn.004511f0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x40]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x45ef37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push ebp
call fcn.0045d140
add esp, 0x10
mov eax, dword [ebp + 0x1b0]
test eax, eax
je 0x45ef60
push 0
push edi
push dword [ebp + 0x1b4]
call eax
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 2
jne 0x45ef8e
mov dword [esp + 0x20], 1
push dword [esp + 0x34]
push edi
push ebx
call fcn.0045e690
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45efa6
push edi
push ebx
call fcn.0045d7f0
add esp, 8
cmp esi, 1
je 0x45f08f
mov eax, esi
jmp 0x45f091
test eax, eax
je 0x45ef60
push edi
push ebx
call fcn.0045d7f0
add esp, 8
mov eax, 0x2a
jmp 0x45f091
push 1
push edi
call fcn.0047d170
add esp, 8
call fcn.00454c60
cmp dword [ebx + 0x2b8], 1
mov dword [ebx + 0x2b0], eax
mov dword [ebx + 0x2b4], edx
jle 0x45efda
push dword [ebx + 0x2bc]
push ebp
call fcn.0044e120
add esp, 8
cmp dword [esp + 0x20], 0
jne 0x45f089
cmp dword [ebx + 0x8c], 1
jne 0x45f089
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x45f017
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], eax
jmp 0x45f01b
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp dword [esp + 0x34], 0x17
sete cl
cmp dword [esp + 0x14], 0xffffffff
mov dword [ebx + 0x268], ecx
jne 0x45f07f
cmp eax, 0xb
je 0x45f07d
cmp eax, 0x2732
jle 0x45f045
cmp eax, 0x2734
jle 0x45f07d
push eax
push ebx
call fcn.00450a40
push eax
lea eax, [esp + 0x16c]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.0045d140
mov eax, dword [esp + 0x30]
push edi
push ebx
mov dword [ebp + 0x85fc], eax
call fcn.0045d7f0
mov esi, 7
add esp, 0x20
mov eax, esi
jmp 0x45f091
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [eax], edi
mov eax, esi
jmp 0x45f091
mov eax, dword [esp + 0x24]
mov dword [eax], edi
xor eax, eax
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044be2b
add esp, 0x184
ret