Function at 0x45b000
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 0x5b5e98
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x629960]
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.004374f0
lea eax, [ebp - 0x148]
push eax
call fcn.00460db0
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x45b09b
cmp dword [ebp + 0x1c], 0x10
jb 0x45b080
push dword [ebp + 8]
call fcn.0048c32c
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.00437970
cmp dword [ebp - 0x134], 0x10
jb 0x45b0b2
push dword [ebp - 0x148]
call fcn.0048c32c
add esp, 4
lea ecx, [edi + 0x54]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x45b0c6
push 0xffffffffffffffff
push 0
push eax
call fcn.004374f0
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x134], 0xf
push eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x138], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 0x148], 0
lea ebx, [edi + 0xc]
call fcn.004374f0
lea eax, [edi + 0x6c]
mov byte [ebp - 4], 2
push eax
push esi
sub esp, 0x18
mov dword [ebp - 0x164], 0
mov ecx, esp
lea eax, [ebp - 0x148]
lea esi, [ebp - 0x164]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004374f0
mov edx, ebx
mov ecx, esi
call fcn.0045f530
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x134], 0x10
jb 0x45b160
push dword [ebp - 0x148]
call fcn.0048c32c
add esp, 4
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push ebx
mov byte [ecx], 0
call fcn.004374f0
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 0x45b1c0
cmp dword [esi + 0x14], 0x10
jb 0x45b1a7
push dword [esi]
call fcn.0048c32c
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00437970
cmp dword [ebp - 0x134], 0x10
jb 0x45b1d7
push dword [ebp - 0x148]
call fcn.0048c32c
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 0x45b210
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d4d0
mov byte [ebp - 4], 3
mov edx, str.be_produced_tcp_sock_error.window_error_code:
jmp 0x45b487
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 0x45b251
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d4d0
mov byte [ebp - 4], 4
mov edx, str.set_sock_send_time_out_fail._window_error_code:
jmp 0x45b487
push 4
push ebx
push 0x1006
push 0xffff
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x45b2ac
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d4d0
push eax
mov edx, str.set_sock_receive_time_out_fail._window_error_code:
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x148]
call fcn.00442bd0
add esp, 8
lea ecx, [edi + 0xb0]
push eax
call fcn.004379d0
jmp 0x45b4cb
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 0x45b321
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x148]
call fcn.0044d4d0
push eax
mov edx, str.set_sock_block_fail._window_error_code:
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x160]
call fcn.00442bd0
add esp, 8
lea ecx, [edi + 0xb0]
push eax
call fcn.004379d0
lea ecx, [ebp - 0x160]
call fcn.00437bf0
lea ecx, [ebp - 0x148]
call fcn.00437bf0
xor bl, bl
jmp 0x45b51a
cmp dword [esi + 0x14], 0x10
jb 0x45b329
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 0x45b3c1
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.00437370
xor bl, bl
jmp 0x45b51a
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 0x45b40d
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.0044d4d0
mov byte [ebp - 4], 7
mov edx, str.set_sock_block_fail._window_error_code:
jmp 0x45b487
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 0x45b44c
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d4d0
mov byte [ebp - 4], 8
mov edx, str.set_sock_send_time_out_fail._window_error_code:
jmp 0x45b487
push 4
push ebx
push 0x1006
push 0xffff
push dword [edi + 0xc8]
call esi
cmp eax, 0xffffffff
jne 0x45b518
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.0044d4d0
mov byte [ebp - 4], 9
mov edx, str.set_sock_receive_time_out_fail._window_error_code:
push eax
lea ecx, [ebp - 0x148]
call fcn.00442bd0
mov esi, eax
add edi, 0xb0
add esp, 8
cmp edi, esi
je 0x45b4cb
cmp dword [edi + 0x14], 0x10
jb 0x45b4b2
push dword [edi]
call fcn.0048c32c
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.00437970
cmp dword [ebp - 0x134], 0x10
jb 0x45b4e2
push dword [ebp - 0x148]
call fcn.0048c32c
add esp, 4
cmp dword [ebp - 0x14c], 0x10
mov byte [ebp - 0x148], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
jb 0x45b514
push dword [ebp - 0x160]
call fcn.0048c32c
add esp, 4
xor bl, bl
jmp 0x45b51a
mov bl, 1
cmp dword [ebp + 0x1c], 0x10
jb 0x45b52b
push dword [ebp + 8]
call fcn.0048c32c
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x45b54e
push dword [ebp + 0x20]
call fcn.0048c32c
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.004a16e5
mov esp, ebp
pop ebp
ret 0x30