Function at 0x4f83e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x20c
mov dword [esp + 0x34], eax
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x3c], edx
mov esi, dword [esp + 0x220]
mov dword [esp + 0x38], ecx
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4f8821
mov dword [esp], eax
call fcn.0042ae10
mov edx, dword [esp + 0x34]
mov ebp, dword [edx + 0x40]
mov dword [esp + 0x30], eax
test ebp, ebp
jne 0x4f8707
test esi, esi
je 0x4f84e0
mov eax, dword [esi]
test eax, eax
je 0x4f84e0
mov ebp, esi
xor edx, edx
xor ebx, ebx
jmp 0x4f8454
add ebx, 2
mov eax, dword [esi + ebx*4]
mov edx, ebx
lea ebp, [esi + ebx*4]
test eax, eax
je 0x4f84e0
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 + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp]
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.0042afa0
test eax, eax
jne 0x4f8441
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 0x4f8454
nop
mov dword [esp + 4], 0x2068
mov dword [esp], 1
call sub.msvcrt.dll_calloc
test eax, eax
mov ebx, eax
mov esi, eax
je 0x4f85ab
lea eax, [esp + 0x48]
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 0x4f86d7
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f85ab
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x2064], 0
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, dword [esp + 0x38]
or dword [ebx + 0x1c], edx
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x224]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x228]
cmp eax, 1
mov dword [edx], eax
jne 0x4f87c0
cmp dword [ebx + 0x18], 0xffffffff
jl 0x4f8830
mov eax, dword [ebx + 0x1c]
test al, 6
jne 0x4f86f1
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4f8620
or eax, 6
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ebx + 0x4c], eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
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 + 0x34]
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 + 0x34]
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 + 0x34]
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, 0x20c
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 0x4f858f
mov edx, dword [ebx + 8]
test edx, edx
jne 0x4f8620
and eax, 0xfffffff9
mov dword [ebx + 0x1c], eax
jmp 0x4f8620
mov eax, dword [edx + 0x3c]
fldz
mov edx, dword [esp + 0x30]
fst qword [esp + 0x1e8]
mov dword [esp + 0x1f8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1d8], str.stream_url
mov dword [esp + 0x1dc], edx
mov dword [esp + str.Custom_URL], 0x9ccac0
mov dword [esp + 8], eax
lea eax, [esp + 0x1d8]
mov dword [esp + 0x1e4], 0
fstp qword [esp + 0x1f0]
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 0x4f8427
mov edx, dword [esp + 0x3c]
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 + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042b200
jmp 0x4f86ca
cmp eax, 0xfffffffe
jne 0x4f87f4
mov esi, dword [esp + 0x22c]
test esi, esi
je 0x4f87f4
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x4f8851
mov edx, dword [eax]
test edx, edx
je 0x4f8851
mov edx, dword [edx]
test edx, edx
je 0x4f8851
mov dword [esp], edx
call sub.msvcrt.dll__strdup
mov edx, dword [esp + 0x22c]
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, 0x20c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x30], 0
jmp 0x4f84e0
mov dword [esp + 8], str.Streams_need_a_type__n
mov dword [esp + 4], 2
mov dword [esp], 0x10
call fcn.0042b9b0
jmp 0x4f8608
mov edx, dword [esp + 0x22c]
mov dword [edx], 0
jmp 0x4f87f7