Function at 0x45f180
Capabilities:
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x126c
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x1268], ecx
push 1
push 0
push 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x118], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x45f1c9
xor eax, eax
jmp 0x45f4e6
mov eax, 2
mov word [ebp - 0x1148], ax
push 0x35
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1146], ax
mov ecx, 0x5ec658
call fcn.00415f60
push eax
lea ecx, [ebp - 0x1264]
push ecx
call fcn.00499e90
add esp, 8
mov dword [ebp - 0x126c], eax
mov ecx, dword [ebp - 0x126c]
call fcn.00412150
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1144], eax
lea ecx, [ebp - 0x1264]
call fcn.00412130
push 0x10
lea edx, [ebp - 0x1148]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_bind]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x45f275
push 2
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x45f4e6
mov dword [ebp - 0x1150], 1
push 4
lea eax, [ebp - 0x1150]
push eax
push 0x20
push 0xffff
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x114c], 0x1000
push 4
lea edx, [ebp - 0x114c]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x114c]
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x1268]
cmp dword [eax + 0x210], 0
je 0x45f4c8
mov dword [ebp - 0x1158], 0x1000
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x1160], 0
jmp 0x45f33c
mov ecx, dword [ebp - 0x1160]
add ecx, 1
mov dword [ebp - 0x1160], ecx
mov edx, dword [ebp - 0x1160]
cmp edx, dword [ebp - 0x108]
jae 0x45f363
mov eax, dword [ebp - 0x1160]
mov ecx, dword [ebp + eax*4 - 0x104]
cmp ecx, dword [ebp - 0x118]
jne 0x45f361
jmp 0x45f363
jmp 0x45f32d
mov edx, dword [ebp - 0x1160]
cmp edx, dword [ebp - 0x108]
jne 0x45f39c
cmp dword [ebp - 0x108], 0x40
jae 0x45f39c
mov eax, dword [ebp - 0x1160]
mov ecx, dword [ebp - 0x118]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
jne 0x45f321
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0x40
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x1154], eax
cmp dword [ebp - 0x1154], 0
jne 0x45f3ce
jmp 0x45f2fa
cmp dword [ebp - 0x1154], 0
jge 0x45f3fa
push 2
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x45f4e6
mov dword [ebp - 0x115c], 0x10
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x118]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45f4c3
lea ecx, [ebp - 0x115c]
push ecx
lea edx, [ebp - 0x1138]
push edx
push 0
mov eax, dword [ebp - 0x1158]
push eax
lea ecx, [ebp - 0x1128]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x1158], eax
cmp dword [ebp - 0x1158], 0
jle 0x45f4c3
mov dword [ebp - 0x125c], 0x10
push 0x1000
mov eax, dword [ebp - 0x1158]
push eax
lea ecx, [ebp - 0x1128]
push ecx
lea ecx, [ebp - 0x1258]
call fcn.00445240
mov dword [ebp - 0x1260], eax
cmp dword [ebp - 0x1260], 0
jle 0x45f4bb
mov edx, dword [ebp - 0x125c]
push edx
lea eax, [ebp - 0x1138]
push eax
push 0
mov ecx, dword [ebp - 0x1260]
push ecx
lea edx, [ebp - 0x1128]
push edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45f2fa
push 2
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [ebp - 0x11c]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 4