Function at 0x520658
Capabilities:
Initialize winsock library

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x1c8
call fcn.006021b0
mov ecx, dword [esp + 0x1c8]
mov ebp, ecx
mov edi, dword [esp + 0x1e0]
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
lea ebx, [ebp + 0xc]
mov edx, 0x74e7cc
mov ecx, ebx
call fcn.004ee018
lea ecx, [esp + 0x190]
call fcn.00507d60
mov eax, dword [ebp + 0xab]
test eax, eax
je 0x5206c1
lea eax, [esp + 0x190]
push 0x74e87c
push eax
call fcn.00509488
add esp, 8
jmp 0x5206d6
lea eax, [esp + 0x190]
push 0x74e870
push eax
call fcn.00509488
add esp, 8
mov ecx, dword [esp + 0x19c]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov esi, eax
cmp esi, 1
je 0x5208d4
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x520701
mov edx, dword [ecx]
call dword [edx + 0x64]
jmp 0x520703
xor eax, eax
test eax, eax
je 0x520725
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x520719
mov edx, dword [ecx]
call dword [edx + 0x68]
jmp 0x52071b
xor eax, eax
cmp eax, 1
jne 0x520725
mov esi, 1
cmp esi, 1
je 0x520836
test esi, esi
jne 0x520746
lea ecx, [esp + 0x190]
push 1
push ebp
push 0x5210ec
call fcn.0050936c
cmp edi, 1
jle 0x52078c
mov ecx, dword [ebp + 0xc]
call fcn.004dbc10
mov ecx, ebx
mov eax, dword [esp + 0x1e4]
mov edx, dword [eax + 4]
call fcn.004ee018
cmp edi, 2
jle 0x52078c
mov esi, 1
mov dword [ebp + 0x48], esi
mov eax, dword [esp + 0x1e4]
push dword [eax + 8]
call fcn.0060251a
pop ecx
mov dword [0x65fe3c], eax
mov dword [0x65fe38], esi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x52079f
mov edx, 0x74e7cc
mov ecx, ebx
call fcn.004ee018
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x520823
test eax, eax
jne 0x5207b5
lea ecx, [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.004ee018
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x5207ca
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x5207c2
cmp byte [edi + eax - 1], 0x5c
jne 0x5207d6
mov byte [edi + eax - 1], 0
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x5207eb
inc ecx
inc eax
mov dl, byte [ecx]
test dl, dl
jne 0x5207e3
cmp byte [edi + eax - 1], 0x5c
jne 0x5207f7
mov byte [edi + eax - 1], 0
mov eax, dword [ebp + 0x3c]
test eax, eax
jne 0x520805
mov ecx, ebp
call fcn.005208e0
call fcn.005cae80
lea ecx, [esp + 0x190]
call fcn.00507d1c
add esp, 0x1cc
pop ebx
pop ebp
pop esi
pop edi
ret 8
lea ecx, [ebp + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.004ee018
mov eax, dword [ebp + 0x14]
jmp 0x5207a6
mov eax, dword [ebp + 0xab]
test eax, eax
je 0x52085a
lea eax, [esp + 0x190]
push 0x74e87c
push dword [ebp + 0x10]
push eax
call fcn.00509634
add esp, 0xc
jmp 0x520872
lea eax, [esp + 0x190]
push 0x74e870
push dword [ebp + 0x10]
push eax
call fcn.00509634
add esp, 0xc
mov ecx, dword [esp + 0x19c]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov esi, eax
cmp esi, 1
je 0x5208ca
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x520899
mov edx, dword [ecx]
call dword [edx + 0x64]
jmp 0x52089b
xor eax, eax
test eax, eax
je 0x52072e
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x5208b5
mov edx, dword [ecx]
call dword [edx + 0x68]
jmp 0x5208b7
xor eax, eax
cmp eax, 1
jne 0x52072e
mov esi, 1
jmp 0x52072e
mov esi, 1
jmp 0x52072e
mov esi, 1
jmp 0x520725