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

Disassembly:
push 0xffffffffffffffff
push 0x4ca6df
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
xor esi, esi
push esi
mov ebx, 1
push ebx
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x452aeb
push 0x28
push str.socket___failed_to_create_session_socket
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
call fcn.0040e480
mov dword [esp + 0x2c8], esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00441880
push 0x5025fc
lea edx, [esp + 0x4c]
push edx
call fcn.00488a7c
mov ecx, dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.00454270
add esp, 8
mov dword [esp + 0x2c8], ebx
lea esi, [esp + 0x2ac]
call fcn.0040e850
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push ebp
mov dword [esp + 0x20], ebx
call esi
cmp eax, 0xffffffff
jne 0x452b79
push 0x24
push str.Failed_to_set_socket_to_non_blocking
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.0040e480
mov byte [esp + 0x2c8], 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00441880
push 0x5025fc
lea ecx, [esp + 0x4c]
push ecx
call fcn.00488a7c
push 0x10
lea edx, [esp + 0x2b0]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x452c61
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x452c34
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1a8]
push ecx
lea edx, [esp + 0xa4]
push edx
push 0
lea eax, [ebp + 1]
push eax
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 0
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x1bc], ebp
mov dword [esp + 0x1b8], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x452c07
lea ecx, [esp + 0x9c]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x452c61
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.0040e7e0
mov byte [esp + 0x2c8], 3
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00451750
push 0x502fa0
lea ecx, [esp + 0x4c]
push ecx
call fcn.00488a7c
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.0040e7e0
mov byte [esp + 0x2c8], 4
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00451750
push 0x502fa0
lea ecx, [esp + 0x4c]
push ecx
call fcn.00488a7c
lea edx, [esp + 0x14]
push edx
push 0x8004667e
xor edi, edi
push ebp
mov dword [esp + 0x20], edi
call esi
or esi, 0xffffffff
cmp eax, esi
jne 0x452cc2
push 0x24
push str.Failed_to_set_socket_to_non_blocking
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
call fcn.0040e480
mov byte [esp + 0x2c8], 5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00441880
push 0x5025fc
lea edx, [esp + 0x4c]
push edx
call fcn.00488a7c
mov byte [esp + 0x3c], bl
mov dword [esp + 0x2c8], esi
mov dword [esp + 0x38], vtable.ScopeGuardImpl1_int____stdcall___unsigned_int___unsigned_int_.0
mov dword [esp + 0x2c8], 6
lea ecx, [esp + 0x38]
call fcn.00407450
mov dword [esp + 0x2c8], esi
mov dword [esp + 0x38], vtable.ScopeGuardImplBase.0
mov eax, ebp
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0048162f
add esp, 0x2b8
ret