Function at 0x10057190
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021e25e
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 0x98], esi
call fcn.10066180
mov ecx, eax
call fcn.100661e0
cmp byte [0x102d80e8], 0
mov bl, 1
jne 0x100577b9
call fcn.10059990
test al, al
je 0x10057e50
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 0
push 0x10057e70
push eax
call fcn.10054e20
add esp, 8
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push eax
call fcn.10054ad0
mov eax, dword [ebp - 0x98]
add esp, 8
test eax, eax
je 0x10057239
push 4
push eax
call fcn.101b6b17
add esp, 8
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
mov byte [ebp - 4], 2
setne al
test al, al
jne 0x1005725c
push 1
call fcn.101ba2bf
mov ecx, dword [ebp - 0x9c]
add esp, 4
push ecx
push dword [ebp - 0xa0]
call fcn.101b976d
add esp, 8
test eax, eax
je 0x10057278
push eax
call fcn.101ba292
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xa8], 0x102d8138
nop dword [eax]
push 0x102d8138
call fcn.101b9db4
add esp, 4
test eax, eax
je 0x100572aa
push eax
call fcn.101ba292
add esp, 4
mov eax, dword [0x102d80e4]
mov dword [ebp - 4], 0xd
test eax, eax
jne 0x1005731e
push 0x102d8138
mov dword [ebp - 4], 0x23
call fcn.101b9dd9
add esp, 4
test eax, eax
je 0x100572db
push eax
call fcn.101ba292
add esp, 4
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xa0], 0x64
push eax
mov dword [ebp - 0x9c], 0
call fcn.10054cf0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x54]
push eax
movups xmmword [ebp - 0x54], xmm0
call fcn.101b9795
add esp, 0xc
jmp 0x10057290
cmp eax, 2
jne 0x1005749f
mov dword [ebp - 0x36c], 0x1023347c
mov dword [ebp - 0x35c], 0x10233484
push 0
lea eax, [ebp - 0x354]
mov byte [ebp - 4], 0xe
xorps xmm0, xmm0
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 esi, 0x10
mov dword [ebp - 0x308], 0x50
push eax
lea ecx, [ebp - 0x304]
mov dword [ebp - 0x98], esi
movlpd qword [ebp - 0x364], xmm0
call fcn.1001b997
lea eax, [ebp - 0x35c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x35c]
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 - 0x35c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x360], eax
mov eax, dword [ebp - 0x36c]
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 - 0x36c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x370], eax
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 4], 0x13
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 - 0x36c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x370], eax
lea eax, [ebp - 0x354]
mov ecx, eax
mov dword [ebp - 0xa4], 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 - 0x31c], 0
mov dword [ebp - 0x318], 0
lea eax, [ebp - 0x35c]
mov byte [ebp - 4], 0x15
push str.UDP_initializing_was_successful.
push eax
call fcn.10025ddc
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x36c]
push eax
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x16
call fcn.1005a6b0
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.10016e80
lea ecx, [ebp - 0x304]
call fcn.10019f10
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 0x17
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
jmp 0x10057614
mov dword [ebp - 0x41c], 0x1023347c
mov dword [ebp - 0x40c], 0x10233484
push 0
lea eax, [ebp - 0x404]
mov byte [ebp - 4], 0x18
xorps xmm0, xmm0
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 esi, 0x100
mov dword [ebp - 0x3b8], 0x50
push eax
lea ecx, [ebp - 0x3b4]
mov dword [ebp - 0x98], esi
movlpd qword [ebp - 0x414], xmm0
call fcn.1001b997
lea eax, [ebp - 0x40c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x40c]
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 - 0x40c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x410], eax
mov eax, dword [ebp - 0x41c]
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 - 0x41c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x420], eax
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 4], 0x1d
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 - 0x41c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x420], eax
lea eax, [ebp - 0x404]
mov ecx, eax
mov dword [ebp - 0xa4], 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 - 0x3cc], 0
mov dword [ebp - 0x3c8], 0
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 0x1f
push str.Socket_initializing_was_failed.
push eax
call fcn.10025ddc
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x41c]
push eax
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x20
call fcn.1005a6b0
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.10016e80
lea ecx, [ebp - 0x3b4]
call fcn.10019f10
lea eax, [ebp - 0x3b4]
mov byte [ebp - 4], 0x21
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
xor bl, bl
push 0x102d8138
mov dword [ebp - 4], 0x22
call fcn.101b9dd9
add esp, 4
test eax, eax
je 0x100577ac
push eax
call fcn.101ba292
add esp, 4
jmp 0x100577ac
mov dword [ebp - 4], 0xffffffff
mov byte [0x102d80e8], bl
push 0x11
push 2
push 2
mov byte [ebp - 0x91], 0
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10057c9f
push 4
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 1
push eax
push 0x20
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10057ae2
push str.UDP_out_conn
lea ecx, [ebp - 0x2c]
call fcn.10019883
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0x24
push eax
lea ecx, [ebp - 0x90]
call fcn.10055040
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x26
cmp eax, 0x10
jb 0x1005783d
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10016ec0
push 0x93b5
push 0x3ed
lea eax, [ebp - 0xa9]
mov dword [ebp - 0x18], 0xf
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 0x2c], 0
call fcn.10053f00
mov eax, 2
push 0xffffffffffffffff
mov word [ebp - 0x54], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x83b1
mov dword [ebp - 0x50], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x38]
mov esi, 5
mov word [ebp - 0x52], ax
mov eax, dword [ebp - 0x34]
sub eax, edi
mov dword [ebp - 0xa8], eax
push 0x10
lea ecx, [ebp - 0x54]
push ecx
push 0
push eax
push edi
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x10057a61
mov dword [ebp - 0x15c], 0x1023347c
mov dword [ebp - 0x14c], 0x10233484
or dword [ebp - 0x98], 0x1000
lea eax, [ebp - 0x144]
push 0
xorps xmm0, xmm0
mov byte [ebp - 4], 0x28
push eax
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf4], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xf8], 0x50
movlpd qword [ebp - 0x154], xmm0
call fcn.1001b997
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x14c]
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 - 0x14c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x150], eax
mov eax, dword [ebp - 0x15c]
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 - 0x15c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x160], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 4], 0x2d
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 - 0x15c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x160], eax
lea eax, [ebp - 0x144]
mov ecx, eax
mov dword [ebp - 0x9c], 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 - 0x10c], 0
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 0x2f
push str.StartBrowseServers._sendto___failed_with_error_code
push eax
call fcn.10025ddc
add esp, 8
call sub.WS2_32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0x14c]
push str.._Error_code:
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x30
call fcn.1005a6b0
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x10
jb 0x10057a37
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10016ec0
lea ecx, [ebp - 0xf4]
call fcn.10019f10
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0x31
push eax
mov dword [ebp - 0xf4], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
jmp 0x10057a68
mov byte [ebp - 0x91], 1
mov eax, dword [ebp - 0xa8]
sub esi, 1
jne 0x100578a5
test edi, edi
je 0x10057a8a
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
sub eax, edi
push eax
push edi
call fcn.10016ec0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x90], vtable.DTXMLCreator.0
cmp eax, 0x10
jb 0x10057ab0
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.10016ec0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x90], vtable.CDTXMLWorker.0
call fcn.10048bf0
push ebx
call fcn.10059660
jmp 0x10057e47
mov dword [ebp - 0x20c], 0x1023347c
mov dword [ebp - 0x1fc], 0x10233484
push 0
lea eax, [ebp - 0x1f4]
mov dword [ebp - 4], 0x32
xorps xmm0, xmm0
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
or esi, 0x10000
mov dword [ebp - 0x1a8], 0x50
push eax
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x98], esi
movlpd qword [ebp - 0x204], xmm0
call fcn.1001b997
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x1fc]
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 - 0x1fc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x200], eax
mov eax, dword [ebp - 0x20c]
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 - 0x20c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x210], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 4], 0x37
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 - 0x20c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x210], eax
lea eax, [ebp - 0x1f4]
mov ecx, eax
mov dword [ebp - 0x9c], 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 - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
lea eax, [ebp - 0x1fc]
mov dword [ebp - 4], 0x39
push str.UDP_setsockopt___SO_BROADCAST_error.
push eax
call fcn.10025ddc
add esp, 8
call sub.WS2_32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0x1fc]
push str.._Error_code:
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20c]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x3a
call fcn.1005a6b0
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x10
jb 0x10057c62
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10016ec0
lea ecx, [ebp - 0x1a4]
call fcn.10019f10
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], 0x3b
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.10059660
jmp 0x10057e47
mov dword [ebp - 0x2bc], 0x1023347c
mov dword [ebp - 0x2ac], 0x10233484
push 0
lea eax, [ebp - 0x2a4]
mov dword [ebp - 4], 0x3c
xorps xmm0, xmm0
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
or esi, 0x100000
mov dword [ebp - 0x258], 0x50
push eax
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x98], esi
movlpd qword [ebp - 0x2b4], xmm0
call fcn.1001b997
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x2ac]
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 - 0x2ac]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2b0], eax
mov eax, dword [ebp - 0x2bc]
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 - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x2c0], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 4], 0x41
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 - 0x2bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2c0], eax
lea eax, [ebp - 0x2a4]
mov ecx, eax
mov dword [ebp - 0x9c], 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 - 0x26c], 0
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 0x43
push str.Failed_to_create_discovery_sender_socket.
push eax
call fcn.10025ddc
add esp, 8
call sub.WS2_32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0x2ac]
push str.._Error_code:
push eax
call fcn.10025ddc
add esp, 8
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2bc]
call fcn.1004e41a
push eax
mov byte [ebp - 4], 0x44
call fcn.1005a6b0
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0x10
jb 0x10057e1f
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.10016ec0
lea ecx, [ebp - 0x254]
call fcn.10019f10
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0x45
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101b8935
mov al, byte [ebp - 0x91]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret