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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1876
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x676664]
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, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, ecx
movzx ecx, byte [edi + 0x125]
push ecx
push str.createSocket_ipv4
push edi
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x14c], eax
call fcn.0044eca0
cmp byte [0x6736f0], 0
mov dword [ebp - 4], 0
je 0x54595c
lea ecx, [ebp - 0x144]
call fcn.00462990
lea ebx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00541780
mov byte [ebp - 4], 0
mov ecx, ebx
test al, al
jne 0x545957
call fcn.004629b0
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
xor al, al
jmp 0x545b62
call fcn.004629b0
mov ecx, esi
call fcn.005435d0
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push 0
push 1
push 2
mov byte [ebp - 0x145], 1
mov dword [ebp - 0x150], 0
call ebx
mov dword [esi + 0x294], eax
cmp eax, 0xffffffff
jne 0x5459ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x150], eax
cmp eax, 0x2726
jne 0x5459b0
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push str.Retry_with_IPPROTO_TCP_explicitly_specified...
mov ecx, edi
call eax
jmp 0x5459de
cmp eax, 0x2734
jne 0x5459ec
push 0x14
call fcn.00441780
add esp, 4
push 0
push 1
push 2
call ebx
mov dword [esi + 0x294], eax
cmp eax, 0xffffffff
jne 0x5459ec
push 0x14
call fcn.00441780
add esp, 4
push 6
push 1
push 2
call ebx
mov dword [esi + 0x294], eax
cmp dword [esi + 0x294], 0xffffffff
jne 0x545a63
cmp dword [ebp - 0x150], 0x276d
jne 0x545a3c
mov ebx, edi
call fcn.00541780
test al, al
jne 0x545a13
push str.startupWSA_failed__B_
jmp 0x545a53
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x294], eax
cmp eax, 0xffffffff
jne 0x545a63
push edi
push 0
call fcn.00543df0
add esp, 8
push str.Failed_to_create_TCP_socket__AF_INET_SOCK_STREAM_
jmp 0x545a53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.00542080
add esp, 0xc
push str.Failed_to_create_TCP_socket__AF_INET___SOCK_STREAM_
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov byte [ebp - 0x145], 0
cmp dword [esi + 0x294], 0xffffffff
mov dword [esi + 0x298], 2
je 0x545b4a
mov ebx, dword [ebp - 0x14c]
cmp byte [ebx + 0xb9c], 0
jne 0x545a91
push edi
mov ecx, esi
call fcn.00541c10
cmp byte [ebx + 0xba4], 0
jne 0x545aa2
push edi
mov ecx, esi
call fcn.00541c90
cmp byte [ebp + 0x10], 0
je 0x545b4a
add ebx, 0xba8
mov ecx, ebx
call fcn.00442580
test eax, eax
jne 0x545acb
mov ecx, dword [ebp - 0x14c]
cmp dword [ecx + 0xc1c], eax
je 0x545b4a
push ebx
push str.bindIpAddr1
mov ecx, edi
call fcn.0044e520
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0xc1c]
test eax, eax
je 0x545af5
push eax
push str.bindPort
mov ecx, edi
call fcn.0044e8c0
push edi
lea eax, [ebp - 0x145]
push eax
mov ecx, ebx
mov byte [ebp - 0x145], 0
call fcn.00410b70
mov ecx, dword [ebp - 0x14c]
movzx edx, word [ecx + 0xc1c]
push eax
push edx
mov ecx, esi
call fcn.005447d0
mov byte [ebp - 0x145], al
test al, al
jne 0x545b4a
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.Failed_to_bind_to_local_IP_address
mov ecx, edi
call edx
mov ecx, esi
call fcn.005435d0
mov dword [esi + 0x294], 0xffffffff
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
mov al, byte [ebp - 0x145]
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.0059af98
mov esp, ebp
pop ebp
ret 0xc