Function at 0x10059990
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021e818
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1c0], 0
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x10059b75
mov dword [ebp - 0x270], 0x1023347c
mov dword [ebp - 0x260], 0x10233484
push 0
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c0], 1
push eax
lea ecx, [ebp - 0x208]
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 - 0x20c], 0x50
movlpd qword [ebp - 0x268], xmm0
call fcn.1001b997
lea eax, [ebp - 0x260]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x260]
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 - 0x260]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x264], eax
mov eax, dword [ebp - 0x270]
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 - 0x270]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x274], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 4], 5
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 - 0x270]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x274], eax
lea eax, [ebp - 0x258]
mov ecx, eax
mov dword [ebp - 0x1bc], 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 - 0x220], 0
mov dword [ebp - 0x21c], 0
push esi
push 0x1023dbcc
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 7
call fcn.10059420
mov ecx, eax
call fcn.100555e0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x270]
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 0x10059b43
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10016ec0
lea ecx, [ebp - 0x208]
call fcn.10019f10
lea eax, [ebp - 0x208]
mov dword [ebp - 4], 9
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 0x10059d15
mov eax, 0x202
cmp word [ebp - 0x1b8], ax
je 0x10059d13
mov dword [ebp - 0x320], 0x1023347c
mov dword [ebp - 0x310], 0x10233484
push 0
lea eax, [ebp - 0x308]
mov dword [ebp - 4], 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x1c0], 0x10
push eax
lea ecx, [ebp - 0x2b8]
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 - 0x2bc], 0x50
movlpd qword [ebp - 0x318], xmm0
call fcn.1001b997
lea eax, [ebp - 0x310]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x310]
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 - 0x310]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x314], eax
mov eax, dword [ebp - 0x320]
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 - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x324], eax
mov eax, dword [ebp - 0x320]
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 - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x324], eax
lea eax, [ebp - 0x308]
mov ecx, eax
mov dword [ebp - 0x1bc], 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 - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
lea eax, [ebp - 0x310]
mov dword [ebp - 4], 0x11
push str.Wrong_WinSock_version
push eax
call fcn.10025ddc
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x320]
push eax
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 0x10059ce4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10016ec0
lea ecx, [ebp - 0x2b8]
call fcn.10019f10
lea eax, [ebp - 0x2b8]
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 0x10059d15
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret