Function at 0x100558f0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021dbd6
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, byte [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
test bl, bl
mov eax, 0x11
mov dword [ebp - 0x40], 0
cmovne eax, ecx
push eax
xor eax, eax
test bl, bl
sete al
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
test eax, eax
jns 0x10055b04
test bl, bl
mov dword [ebp - 0xf0], 0x1023347c
mov esi, str.Failed_to_create_TCP_listener_socket.
mov dword [ebp - 0xe0], 0x10233484
mov eax, str.Failed_to_create_UDP_listener_socket.
cmove esi, eax
push 0
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 1
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x8c], 0x50
movlpd qword [ebp - 0xe8], xmm0
call fcn.1001b997
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe4], eax
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xf4], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf4], eax
lea eax, [ebp - 0xd8]
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.10019819
mov dword [ebp - 0xd8], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 7
push esi
push eax
call fcn.10025ddc
add esp, 8
call sub.WS2_32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0xe0]
push str.._Error_code:
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xf0]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 8
call fcn.1005a6b0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 0x10
jb 0x10055ad2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10016ec0
lea ecx, [ebp - 0x88]
call fcn.10019f10
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 9
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
xor al, al
jmp 0x10055cee
mov eax, 2
push 0x93b5
mov word [ebp - 0x38], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebp - 0x36], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10055cec
test bl, bl
mov dword [ebp - 0x1a0], 0x1023347c
mov esi, str.Failed_to_bind_TCP_listener_socket.
mov dword [ebp - 0x190], 0x10233484
mov eax, str.Failed_to_bind_UDP_listener_socket.
cmove esi, eax
push 0
lea eax, [ebp - 0x188]
mov dword [ebp - 4], 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x10
push eax
lea ecx, [ebp - 0x138]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x13c], 0x50
movlpd qword [ebp - 0x198], xmm0
call fcn.1001b997
lea eax, [ebp - 0x190]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x194], eax
mov eax, dword [ebp - 0x1a0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1a4], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 4], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1a4], eax
lea eax, [ebp - 0x188]
mov ecx, eax
mov dword [ebp - 0x3c], eax
call fcn.10019819
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 0x11
push esi
push eax
call fcn.10025ddc
add esp, 8
call sub.WS2_32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0x190]
push str.._Error_code:
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x12
call fcn.1005a6b0
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 0x10
jb 0x10055cbd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10016ec0
lea ecx, [ebp - 0x138]
call fcn.10019f10
lea eax, [ebp - 0x138]
mov dword [ebp - 4], 0x13
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
xor al, al
jmp 0x10055cee
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret