Function at 0x4564b0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e139
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x170], ecx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x170]
add eax, 4
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [ebp - 0x170]
mov dx, word [ecx + 0x20]
mov word [ebp - 0x10], dx
mov eax, 2
mov word [ebp - 0x15c], ax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x158], eax
movzx ecx, word [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x15a], ax
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x14]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x45658e
mov dword [ebp - 0x164], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x164]
jmp 0x4566c5
push 0x10
lea ecx, [ebp - 0x15c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x160], 0
jmp 0x4565c6
mov eax, dword [ebp - 0x160]
add eax, 1
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
cmp ecx, dword [ebp - 0x144]
jae 0x4565ea
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp + edx*4 - 0x140]
cmp eax, dword [ebp + 8]
jne 0x4565e8
jmp 0x4565ea
jmp 0x4565b7
mov ecx, dword [ebp - 0x160]
cmp ecx, dword [ebp - 0x144]
jne 0x456620
cmp dword [ebp - 0x144], 0x40
jae 0x456620
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x140], eax
mov ecx, dword [ebp - 0x144]
add ecx, 1
mov dword [ebp - 0x144], ecx
xor edx, edx
jne 0x4565ab
mov dword [ebp - 0x14c], 5
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x14c]
push eax
push 0
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x456689
mov edx, dword [ebp - 0x170]
mov byte [edx + 0x5c], 0
mov dword [ebp - 0x168], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x168]
jmp 0x4566c5
mov eax, dword [ebp - 0x170]
mov byte [eax + 0x5c], 1
mov dword [ebp - 0x16c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x16c]
jmp 0x4566c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret 4