Function at 0x45aca0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00437570
lea eax, [ebp - 0x148]
push eax
call fcn.00460900
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x45ad3b
cmp dword [ebp + 0x1c], 0x10
jb 0x45ad20
push dword [ebp + 8]
call fcn.0048b2ba
add esp, 4
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
call fcn.004379f0
cmp dword [ebp - 0x134], 0x10
jb 0x45ad52
push dword [ebp - 0x148]
call fcn.0048b2ba
add esp, 4
lea ecx, [edi + 0x54]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x45ad66
push 0xffffffffffffffff
push 0
push eax
call fcn.00437570
lea eax, [edi + 0x6c]
push eax
lea eax, [edi + 0x3c]
push eax
lea esi, [edi + 0xc]
push esi
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00437570
call fcn.0045f340
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.00437570
mov eax, dword [edi]
lea ecx, [ebp - 0x148]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ebx, eax
lea esi, [edi + 0x24]
cmp esi, ebx
je 0x45adfa
cmp dword [esi + 0x14], 0x10
jb 0x45ade1
push dword [esi]
call fcn.0048b2ba
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.004379f0
cmp dword [ebp - 0x134], 0x10
jb 0x45ae11
push dword [ebp - 0x148]
call fcn.0048b2ba
add esp, 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc8], eax
cmp eax, 0xffffffff
jne 0x45ae92
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d6c0
mov byte [ebp - 4], 2
mov edx, str.be_produced_tcp_sock_error.window_error_code:
push eax
lea ecx, [ebp - 0x148]
call fcn.00442f80
mov esi, eax
add edi, 0xb0
add esp, 8
cmp edi, esi
je 0x45b10a
cmp dword [edi + 0x14], 0x10
jb 0x45ae74
push dword [edi]
call fcn.0048b2ba
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.004379f0
jmp 0x45b10a
push 4
lea ebx, [edi + 0xcc]
push ebx
push 0x1005
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x45aed3
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d6c0
mov byte [ebp - 4], 3
mov edx, str.set_sock_send_time_out_fail._window_error_code:
jmp 0x45ae45
push 4
push ebx
push 0x1006
push 0xffff
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x45af0e
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d6c0
mov byte [ebp - 4], 4
jmp 0x45b0ea
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x45af83
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x148]
call fcn.0044d6c0
push eax
mov edx, str.set_sock_block_fail._window_error_code:
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x160]
call fcn.00442f80
add esp, 8
lea ecx, [edi + 0xb0]
push eax
call fcn.00437a50
lea ecx, [ebp - 0x160]
call fcn.00437d60
lea ecx, [ebp - 0x148]
call fcn.00437d60
xor bl, bl
jmp 0x45b159
cmp dword [esi + 0x14], 0x10
jb 0x45af8b
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
mov eax, 2
mov word [ebp - 0x2c], ax
movzx eax, word [edi + 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [edi + 0xc8]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 1
push eax
push 0
push 0
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x45b023
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x29
push str.connect_time_out_.window_error_code:10060
lea ecx, [edi + 0xb0]
call fcn.004373f0
xor bl, bl
jmp 0x45b159
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x8004667e
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x45b072
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_closesocket]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d6c0
mov byte [ebp - 4], 6
mov edx, str.set_sock_block_fail._window_error_code:
jmp 0x45ae45
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push ebx
push 0x1005
push 0xffff
push dword [edi + 0xc8]
call esi
cmp eax, 0xffffffff
jne 0x45b0b4
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d6c0
mov byte [ebp - 4], 7
mov edx, str.set_sock_send_time_out_fail._window_error_code:
jmp 0x45ae45
push 4
push ebx
push 0x1006
push 0xffff
push dword [edi + 0xc8]
call esi
cmp eax, 0xffffffff
jne 0x45b157
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d6c0
mov byte [ebp - 4], 8
push eax
mov edx, str.set_sock_receive_time_out_fail._window_error_code:
lea ecx, [ebp - 0x148]
call fcn.00442f80
add esp, 8
lea ecx, [edi + 0xb0]
push eax
call fcn.00437a50
cmp dword [ebp - 0x134], 0x10
jb 0x45b121
push dword [ebp - 0x148]
call fcn.0048b2ba
add esp, 4
cmp dword [ebp - 0x14c], 0x10
mov byte [ebp - 0x148], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
jb 0x45b153
push dword [ebp - 0x160]
call fcn.0048b2ba
add esp, 4
xor bl, bl
jmp 0x45b159
mov bl, 1
cmp dword [ebp + 0x1c], 0x10
jb 0x45b16a
push dword [ebp + 8]
call fcn.0048b2ba
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x45b18d
push dword [ebp + 0x20]
call fcn.0048b2ba
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0x30