Function at 0x457790
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 0x5a7068
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x617960]
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.004373c0
lea eax, [ebp - 0x148]
push eax
call fcn.0045d540
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x45782b
cmp dword [ebp + 0x1c], 0x10
jb 0x457810
push dword [ebp + 8]
call fcn.0047e2e9
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.004371a0
cmp dword [ebp - 0x134], 0x10
jb 0x457842
push dword [ebp - 0x148]
call fcn.0047e2e9
add esp, 4
lea ecx, [edi + 0x54]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x457856
push 0xffffffffffffffff
push 0
push eax
call fcn.004373c0
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.004373c0
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.004373c0
mov edx, ebx
mov ecx, esi
call fcn.0045bcc0
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x134], 0x10
jb 0x4578f0
push dword [ebp - 0x148]
call fcn.0047e2e9
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.004373c0
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 0x457950
cmp dword [esi + 0x14], 0x10
jb 0x457937
push dword [esi]
call fcn.0047e2e9
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.004371a0
cmp dword [ebp - 0x134], 0x10
jb 0x457967
push dword [ebp - 0x148]
call fcn.0047e2e9
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 0x4579a0
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.004431c0
mov byte [ebp - 4], 3
mov edx, str.be_produced_tcp_sock_error.window_error_code:
jmp 0x457c17
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 0x4579e1
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.004431c0
mov byte [ebp - 4], 4
mov edx, str.set_sock_send_time_out_fail._window_error_code:
jmp 0x457c17
push 4
push ebx
push 0x1006
push 0xffff
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x457a3c
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.004431c0
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.00449e70
add esp, 8
lea ecx, [edi + 0xb0]
push eax
call fcn.00437200
jmp 0x457c5b
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 0x457ab1
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x148]
call fcn.004431c0
push eax
mov edx, str.set_sock_block_fail._window_error_code:
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x160]
call fcn.00449e70
add esp, 8
lea ecx, [edi + 0xb0]
push eax
call fcn.00437200
lea ecx, [ebp - 0x160]
call fcn.00437890
lea ecx, [ebp - 0x148]
call fcn.00437890
xor bl, bl
jmp 0x457caa
cmp dword [esi + 0x14], 0x10
jb 0x457ab9
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 0x457b51
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.00437730
xor bl, bl
jmp 0x457caa
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 0x457b9d
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.004431c0
mov byte [ebp - 4], 7
mov edx, str.set_sock_block_fail._window_error_code:
jmp 0x457c17
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 0x457bdc
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.004431c0
mov byte [ebp - 4], 8
mov edx, str.set_sock_send_time_out_fail._window_error_code:
jmp 0x457c17
push 4
push ebx
push 0x1006
push 0xffff
push dword [edi + 0xc8]
call esi
cmp eax, 0xffffffff
jne 0x457ca8
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.004431c0
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.00449e70
mov esi, eax
add edi, 0xb0
add esp, 8
cmp edi, esi
je 0x457c5b
cmp dword [edi + 0x14], 0x10
jb 0x457c42
push dword [edi]
call fcn.0047e2e9
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.004371a0
cmp dword [ebp - 0x134], 0x10
jb 0x457c72
push dword [ebp - 0x148]
call fcn.0047e2e9
add esp, 4
cmp dword [ebp - 0x14c], 0x10
mov byte [ebp - 0x148], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
jb 0x457ca4
push dword [ebp - 0x160]
call fcn.0047e2e9
add esp, 4
xor bl, bl
jmp 0x457caa
mov bl, 1
cmp dword [ebp + 0x1c], 0x10
jb 0x457cbb
push dword [ebp + 8]
call fcn.0047e2e9
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x457cde
push dword [ebp + 0x20]
call fcn.0047e2e9
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.0049355b
mov esp, ebp
pop ebp
ret 0x30