Function at 0x58b920
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x651498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
mov al, byte [edi + 0x121]
lea ecx, [esp + 0xc]
push eax
push str.createSocket_ipv4
push edi
call fcn.004f03a0
xor ebx, ebx
mov dword [esp + 0x20], ebx
call fcn.0058afc0
test al, al
jne 0x58b98d
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004f03e0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
push ebp
mov ecx, esi
call fcn.0058fa50
mov ebp, dword [sym.imp.WS2_32.dll_socket]
push ebx
push 1
push 2
mov byte [esp + 0x3c], 1
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0x294], eax
jne 0x58ba0d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2726
jne 0x58b9d0
mov edx, dword [edi]
push str.Retry_with_IPPROTO_TCP_explicitly_specified...
mov ecx, edi
call dword [edx + 0x18]
jmp 0x58b9ff
cmp ebx, 0x2734
jne 0x58ba0d
push 0x14
call fcn.004ee360
add esp, 4
push 0
push 1
push 2
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0x294], eax
jne 0x58ba0d
push 0x14
call fcn.004ee360
add esp, 4
push 6
push 1
push 2
call ebp
mov dword [esi + 0x294], eax
cmp dword [esi + 0x294], 0xffffffff
jne 0x58ba7b
cmp ebx, 0x276d
push edi
jne 0x58ba60
call fcn.0058b050
add esp, 4
test al, al
jne 0x58ba34
mov eax, dword [edi]
push str.startupWSA_failed__B_
jmp 0x58ba71
push 0
push 1
push 2
call ebp
cmp eax, 0xffffffff
mov dword [esi + 0x294], eax
jne 0x58ba7b
push edi
push 0
call fcn.0058c280
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push str.Failed_to_create_TCP_socket__AF_INET_SOCK_STREAM_
call dword [edx + 0x14]
jmp 0x58ba76
push 0
call fcn.0058c280
mov eax, dword [edi]
add esp, 8
push str.Failed_to_create_TCP_socket__AF_INET___SOCK_STREAM_
mov ecx, edi
call dword [eax + 0x14]
mov byte [esp + 0x30], 0
mov eax, dword [esi + 0x294]
mov dword [esi + 0x298], 2
cmp eax, 0xffffffff
je 0x58bb4e
mov ebp, dword [esp + 0x2c]
mov al, byte [ebp + 0xb94]
test al, al
jne 0x58baaa
push edi
mov ecx, esi
call fcn.0058b550
mov al, byte [ebp + 0xb9c]
test al, al
jne 0x58babc
push edi
mov ecx, esi
call fcn.0058b5d0
mov al, byte [esp + 0x34]
test al, al
je 0x58bb4e
lea ebx, [ebp + 0xba0]
mov ecx, ebx
call fcn.004e2930
test eax, eax
jne 0x58bae3
mov eax, dword [ebp + 0xc14]
test eax, eax
je 0x58bb4e
push ebx
push str.bindIpAddr1
mov ecx, edi
call fcn.004efcb0
mov eax, dword [ebp + 0xc14]
test eax, eax
je 0x58bb07
push eax
push str.bindPort
mov ecx, edi
call fcn.004effe0
lea ecx, [esp + 0x34]
push edi
push ecx
mov ecx, ebx
mov byte [esp + 0x3c], 0
call fcn.004dda00
mov dx, word [ebp + 0xc14]
push eax
push edx
mov ecx, esi
call fcn.0058f2b0
test al, al
mov byte [esp + 0x30], al
jne 0x58bb4e
mov eax, dword [edi]
push str.Failed_to_bind_to_local_IP_address
mov ecx, edi
call dword [eax + 0x14]
mov ecx, esi
call fcn.0058fa50
mov dword [esi + 0x294], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.004f03e0
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0x30]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc