Function at 0x5148d2
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x5ae04a
call fcn.00591b5c
push ecx
sub esp, 0x230
mov eax, dword [0x6c0bc0]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [0x671264]
test eax, eax
jne 0x514906
mov al, 1
jmp 0x514b6a
mov dword [ebp - 0x1b0], 1
push 0x190
push 0
lea eax, [ebp - 0x1a8]
push eax
call fcn.0058ee10
add esp, 0xc
mov word [ebp - 0x1ac], 0x909
and dword [ebp - 4], 0
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1b0], eax
jmp 0x51495b
or dword [ebp - 4], 0xffffffff
jmp 0x51496c
cmp dword [ebp - 0x1b0], 0x276c
jne 0x514a82
mov dword [ebp - 0x1b8], 5
mov dword [ebp - 0x1b4], 2
cmp dword [ebp - 0x1b0], 0x276c
jne 0x514a42
cmp dword [ebp - 0x1b8], 1
jl 0x514a42
mov eax, dword [ebp - 0x1b4]
dec eax
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
jge 0x5149da
mov dword [ebp - 0x1b4], 9
mov eax, dword [ebp - 0x1b8]
dec eax
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jne 0x5149e5
jmp 0x514a42
mov eax, dword [ebp - 0x1b8]
and eax, 0xff
movzx eax, al
mov ecx, dword [ebp - 0x1b4]
and ecx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
mov word [ebp - 0x1ac], ax
push 0x190
push 0
lea eax, [ebp - 0x1a8]
push eax
call fcn.0058ee10
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1ac]
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1b0], eax
jmp 0x514990
cmp dword [ebp - 0x1b0], 0
jne 0x514a82
push dword [ebp - 0x1b4]
push dword [ebp - 0x1b8]
push str.Using_ws2_32.dll_version__d__d
lea eax, [ebp - 0x208]
push eax
call fcn.005913fc
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push str.ws2_32_DLL_Version
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 0x28]
cmp dword [ebp - 0x1b0], 0
je 0x514b57
cmp dword [ebp - 0x1b0], 0x276b
jne 0x514ab0
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 0x10]
jmp 0x514b57
cmp dword [ebp - 0x1b0], 0x276c
jne 0x514ad1
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 0x10]
jmp 0x514b57
cmp dword [ebp - 0x1b0], 0x2734
jne 0x514aef
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 0x10]
jmp 0x514b57
cmp dword [ebp - 0x1b0], 0x2753
jne 0x514b0d
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 0x10]
jmp 0x514b57
cmp dword [ebp - 0x1b0], 0x271e
jne 0x514b2b
push str.The_lpWSAData_is_not_a_valid_pointer.
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 0x10]
jmp 0x514b57
push dword [ebp - 0x1b0]
push str.WSAStartup_error:_0x_x
lea eax, [ebp - 0x23c]
push eax
call fcn.005913fc
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
call dword [eax + 0x10]
and byte [0x671264], 0
xor eax, eax
cmp dword [ebp - 0x1b0], 0
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.0058cc82
pop edi
pop esi
pop ebx
leave
ret