Function at 0x40ca30
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0xe74
call fcn.0040e060
push eax
push 0x424cd0
mov dword [0x425edc], eax
call fcn.0040dd90
add esp, 8
call fcn.0040c970
test eax, eax
jne 0x40cedd
push 0xffff
push str.level
call fcn.0040f2f0
add esp, 8
cmp eax, 0xffff
jne 0x40ca83
push 2
push str.level
call fcn.0040f340
add esp, 8
push ebx
push esi
lea eax, [esp + 0xcec]
push edi
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0x424660
push 0x4253c9
call fcn.0040bf60
mov ecx, dword [0x425edc]
mov edx, dword [0x424cc8]
push ecx
push 0x40c920
push edx
call fcn.00410170
mov esi, eax
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2b9]
mov byte [esp + 0x2b8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x424cc8]
lea ecx, [esp + 0x2b8]
stosb byte es:[edi], al
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x424cd0
push eax
push 0xff
push ecx
push 0x105
push edx
call fcn.0040dd20
push 0xd4
call fcn.00419c1d
add esp, 0x2c
cmp eax, ebx
je 0x40cb3e
mov ecx, dword [0x425edc]
lea edx, [esp + 0x2a4]
push ecx
mov ecx, dword [0x424cc8]
push edx
push ecx
push ebx
mov ecx, eax
call fcn.004121f0
mov dword [0x424cc4], eax
jmp 0x40cb44
mov dword [0x424cc4], ebx
mov edx, dword [0x424cc8]
push ebp
push esi
push 0x424cd0
push edx
lea ecx, [esp + 0x128]
call fcn.004102e0
mov eax, dword [0x424cc8]
push 0x424cd0
push eax
lea ecx, [esp + 0x3b0]
call fcn.00410550
mov ecx, dword [0x424cc8]
push 0x424cd0
push ecx
lea ecx, [esp + 0x1c]
call fcn.004109e0
mov edx, dword [0x424cc8]
push 2
push 5
push 4
push 3
push 0x424cd0
push edx
lea ecx, [esp + 0x74]
call fcn.004110d0
mov eax, dword [0x424cc8]
push 1
push 4
push 3
push 2
push 0x424cd0
push eax
lea ecx, [esp + 0xd4]
call fcn.004110d0
mov ecx, dword [0x424cc8]
push ebx
push 0x424cd0
push ecx
push 0x74
lea ecx, [esp + 0x178]
call fcn.004131c0
mov edx, dword [0x425edc]
mov eax, dword [0x424cc8]
add edx, 0x918
lea ecx, [esp + 0x258]
push edx
push 0x424cd0
push eax
push 0x75
call fcn.004131c0
mov ecx, dword [0x424cc8]
push ebx
push 0x424cd0
push ecx
push 0x76
lea ecx, [esp + 0x1c8]
call fcn.004131c0
mov edx, dword [0x424cc8]
push ebx
push 0x424cd0
push edx
push 0x77
lea ecx, [esp + 0x218]
call fcn.004131c0
mov ecx, dword [0x424cc4]
lea eax, [esp + 0x11c]
push ebx
push eax
call fcn.004124a0
lea ecx, [esp + 0x3a8]
push ebx
push ecx
mov ecx, dword [0x424cc4]
call fcn.004124a0
mov ecx, dword [0x424cc4]
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.004124a0
push 1
mov ecx, dword [0x424cc4]
lea eax, [esp + 0x60]
push eax
call fcn.004124a0
lea ecx, [esp + 0xbc]
push 1
push ecx
mov ecx, dword [0x424cc4]
call fcn.004124a0
mov ecx, dword [0x424cc4]
lea edx, [esp + 0x208]
push ebx
push edx
call fcn.004124a0
mov ecx, dword [0x424cc4]
lea eax, [esp + 0x168]
push ebx
push eax
call fcn.004124a0
lea ecx, [esp + 0x1b8]
push ebx
push ecx
mov ecx, dword [0x424cc4]
call fcn.004124a0
mov ecx, dword [0x424cc4]
lea edx, [esp + 0x258]
push ebx
push edx
call fcn.004124a0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x4f5]
mov byte [esp + 0x4f4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x8f5]
mov byte [esp + 0x8f4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x425edc]
or ecx, 0xffffffff
lea edx, [esp + 0x4f4]
lea edi, [eax + 0x51c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.viperinstalltrue
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x8f4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4f4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x4f4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.usertype0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x8f4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.usertype1
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x8f4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
call fcn.00411180
lea ecx, [esp + 0x4f4]
push ecx
lea ecx, [esp + 0xc0]
call fcn.00411180
mov ecx, dword [0x424cc4]
mov edx, dword [ecx + 0x90]
mov dword [0x424cc0], edx
call fcn.00413080
test eax, eax
pop ebp
je 0x40ce50
call fcn.0040c820
call fcn.0040c120
mov esi, dword [0x424cc4]
cmp esi, ebx
je 0x40ce6f
mov ecx, esi
call fcn.00412460
push esi
call fcn.00419c12
add esp, 4
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp + 0x204]
call fcn.00413260
lea ecx, [esp + 0x1b4]
call fcn.00413260
lea ecx, [esp + 0x254]
call fcn.00413260
lea ecx, [esp + 0x164]
call fcn.00413260
lea ecx, [esp + 0xb8]
call fcn.00411150
lea ecx, [esp + 0x58]
call fcn.00411150
lea ecx, [esp + 0x10]
call fcn.00411c20
lea ecx, [esp + 0x3a4]
call fcn.00411c20
lea ecx, [esp + 0x118]
call fcn.00411c20
pop edi
pop esi
pop ebx
add esp, 0xe74
ret