Function at 0x4f8860
Capabilities:
Initialize winsock library

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x1fc
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x2c], edx
test eax, eax
mov dword [esp + 0x20], eax
je 0x4f8ca1
mov dword [esp], eax
call fcn.0042ae10
mov edx, dword [esp + 0x28]
mov ebp, dword [edx + 0x40]
mov dword [esp + 0x24], eax
test ebp, ebp
jne 0x4f8b86
test esi, esi
je 0x4f8956
mov eax, dword [esi]
test eax, eax
je 0x4f8956
mov ebp, esi
xor edx, edx
xor ebx, ebx
jmp 0x4f88cb
add ebx, 2
mov eax, dword [esi + ebx*4]
mov edx, ebx
lea ebp, [esi + ebx*4]
test eax, eax
je 0x4f8956
lea edi, [esi + edx*4 + 4]
mov edx, dword [edi]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Set_stream_arg__s_s_n
mov dword [esp + 4], 7
mov dword [esp + 0x10], edx
mov dword [esp], 0x10
call fcn.0042b9b0
mov eax, dword [edi]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp]
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.0042afa0
test eax, eax
jne 0x4f88b8
mov eax, dword [edi]
add ebx, 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
lea ebp, [esi + ebx*4]
mov dword [esp + 8], str.Failed_to_set_stream_option__s_s_n
mov dword [esp + 4], 2
mov dword [esp], 0x10
mov dword [esp + 0xc], eax
call fcn.0042b9b0
mov eax, dword [esi + ebx*4]
mov edx, ebx
test eax, eax
jne 0x4f88cb
mov dword [esp + 4], 0x2068
mov dword [esp], 1
call sub.msvcrt.dll_calloc
test eax, eax
mov ebx, eax
mov esi, eax
je 0x4f8a21
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.dll_WSAStartup
sub esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.WINSOCK2_init:__i_n
mov dword [esp + 4], 6
mov dword [esp], 0x14
call fcn.0042b9b0
mov edi, dword [ebx + 0x48]
mov dword [ebx + 0x14], 0xfffffffe
mov dword [ebx + 0x18], 0xfffffffe
mov dword [ebx + 0x2c], 0
test edi, edi
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x50], 0
jne 0x4f8b50
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f8a21
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x2064], 0
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, dword [esp + 0x24]
or dword [ebx + 0x1c], 1
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x210]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x214]
cmp eax, 1
mov dword [edx], eax
jne 0x4f8c40
cmp dword [ebx + 0x18], 0xffffffff
jl 0x4f8cb0
mov eax, dword [ebx + 0x1c]
test al, 6
jne 0x4f8b70
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4f8a97
or eax, 6
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x4c], 1
mov dword [esp + 0x10], eax
mov eax, dword [edx + 4]
mov dword [esp + 8], str.STREAM:___s___s_n
mov dword [esp + 4], 6
mov dword [esp], 0x10
mov dword [esp + 0xc], eax
call fcn.0042b9b0
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov dword [esp + 8], str.STREAM:_Description:__s_n
mov dword [esp + 4], 6
mov dword [esp], 0x10
mov dword [esp + 0xc], eax
call fcn.0042b9b0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 8]
mov dword [esp + 8], str.STREAM:_Author:__s_n
mov dword [esp + 4], 6
mov dword [esp], 0x10
mov dword [esp + 0xc], eax
call fcn.0042b9b0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov dword [esp + 8], str.STREAM:_Comment:__s_n
mov dword [esp + 4], 6
mov dword [esp], 0x10
mov dword [esp + 0xc], eax
call fcn.0042b9b0
add esp, 0x1fc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x48], 0
jmp 0x4f8a05
mov edx, dword [ebx + 8]
test edx, edx
jne 0x4f8a97
and eax, 0xfffffff9
mov dword [ebx + 0x1c], eax
jmp 0x4f8a97
mov eax, dword [edx + 0x3c]
fldz
mov edx, dword [esp + 0x24]
fst qword [esp + 0x1d8]
mov dword [esp + 0x1e8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c8], str.stream_url
mov dword [esp + 0x1cc], edx
mov dword [esp + str.Custom_URL], 0x9ccac0
mov dword [esp + 8], eax
lea eax, [esp + 0x1c8]
mov dword [esp + 0x1d4], 0
fstp qword [esp + 0x1e0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.stream_url
mov dword [esp], eax
call dword [0x9ccad0]
test eax, eax
jns 0x4f889e
mov edx, dword [esp + 0x2c]
xor esi, esi
mov dword [esp + 8], str.URL_parsing_failed_on_url__s_n
mov dword [esp + 4], 1
mov dword [esp], 0x10
mov dword [esp + 0xc], edx
call fcn.0042b9b0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042b200
jmp 0x4f8b41
cmp eax, 0xfffffffe
jne 0x4f8c74
mov esi, dword [esp + 0x218]
test esi, esi
je 0x4f8c74
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x4f8cd1
mov edx, dword [eax]
test edx, edx
je 0x4f8cd1
mov edx, dword [edx]
test edx, edx
je 0x4f8cd1
mov dword [esp], edx
call sub.msvcrt.dll__strdup
mov edx, dword [esp + 0x218]
mov dword [edx], eax
mov eax, dword [ebx + 0x60]
mov dword [esp], eax
xor esi, esi
call fcn.005b43e0
mov eax, dword [ebx + 0x5c]
mov dword [esp], eax
call fcn.008f2ba8
mov dword [esp], ebx
call fcn.008f2ba8
add esp, 0x1fc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 0
jmp 0x4f8956
mov dword [esp + 8], str.Streams_need_a_type__n
mov dword [esp + 4], 2
mov dword [esp], 0x10
call fcn.0042b9b0
jmp 0x4f8a7f
mov edx, dword [esp + 0x218]
mov dword [edx], 0
jmp 0x4f8c77