Function at 0x40dbf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x642d90
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x19c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x1a0]
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [eax], esi
mov dword [ecx], 1
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
push 0x67b0e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
jne 0x40dc71
push 0x67b0e0
call fcn.00447f30
add esp, 4
cmp eax, esi
je 0x40dce8
push str.WSCEnumProtocols
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x75d9e8], eax
cmp eax, esi
je 0x40dce8
lea eax, [ebp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40dce8
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
push esi
push esi
call dword [0x75d9e8]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x40dce2
push eax
call fcn.0062279f
add esp, 4
mov edi, eax
cmp edi, esi
je 0x40dce2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edi
push esi
call dword [0x75d9e8]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
jne 0x40dcef
push edi
call fcn.006216ac
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x40ded2
lea edx, [ebx*4]
push edx
call fcn.0062279f
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x40dcd9
mov eax, dword [ebp - 0x24]
mov dword [eax], esi
mov dword [ebp - 0x14], esi
mov edi, edi
cmp esi, ebx
jge 0x40ddb9
mov eax, 0x10
mov ecx, 0x752304
mov edx, esi
imul edx, edx, 0x274
lea edx, [edx + edi + 0x14]
mov edi, edi
cmp eax, 4
jb 0x40dd4f
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x40dd46
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x40dd30
inc esi
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp - 0x1c]
jmp 0x40dd10
imul esi, esi, 0x274
mov eax, dword [esi + edi + 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 1
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
jge 0x40dde0
mov ecx, ebx
imul ecx, ecx, 0x274
lea eax, [ecx + edi]
mov ecx, dword [eax + 0x5c]
cmp ecx, 6
je 0x40dd89
cmp ecx, 0x11
jne 0x40ddb6
cmp dword [eax + 0x28], 1
jne 0x40ddb6
lea esi, [eax + 0x24]
push edx
push edi
mov edx, dword [ebp - 0x20]
push edx
push esi
push 1
call fcn.0040d990
add esp, 0x14
test eax, eax
je 0x40ddc1
mov ecx, dword [esi]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 0x28], eax
inc ebx
jmp 0x40dd67
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0
jne 0x40dd65
mov eax, dword [ebp - 0x18]
push eax
call fcn.006216ac
push edi
call fcn.006216ac
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x40ded2
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp ebx, edx
jge 0x40de43
mov eax, ebx
imul eax, eax, 0x274
lea esi, [eax + edi]
mov eax, dword [esi + 0x5c]
cmp eax, 6
je 0x40de01
cmp eax, 0x11
jne 0x40de3a
mov eax, dword [esi + 0x28]
cmp eax, 1
jle 0x40de3a
push 1
push esi
mov ecx, dword [ebp - 0x20]
push ecx
push eax
call fcn.0040d7c0
add esp, 0x10
test eax, eax
jne 0x40de3a
mov edx, dword [ebp - 0x1c]
push edx
push edi
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [esi + 0x2c]
push ecx
mov edx, dword [esi + 0x28]
push edx
call fcn.0040d990
add esp, 0x14
test eax, eax
je 0x40ddc1
inc ebx
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x1c]
jmp 0x40dde5
xor ebx, ebx
mov dword [ebp - 0x38], ebx
xor esi, esi
mov dword [ebp - 0x14], esi
lea ecx, [ecx]
cmp esi, edx
jge 0x40deae
mov ecx, esi
imul ecx, ecx, 0x274
lea eax, [ecx + edi]
mov ecx, dword [eax + 0x5c]
cmp ecx, 6
je 0x40de6c
cmp ecx, 0x11
jne 0x40dea0
inc ebx
mov dword [ebp - 0x38], ebx
mov ecx, dword [eax + 0x28]
cmp ecx, 1
jg 0x40de83
mov edx, dword [ebp - 0x30]
mov dword [edx], 1
jmp 0x40dea0
push 0
push eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
call fcn.0040d7c0
add esp, 0x10
test eax, eax
jne 0x40dea0
mov ecx, dword [ebp - 0x30]
mov dword [ecx], 1
cmp ebx, dword [ebp - 0x28]
je 0x40deae
inc esi
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x1c]
jmp 0x40de50
mov edx, dword [ebp - 0x18]
push edx
call fcn.006216ac
push edi
call fcn.006216ac
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x194
mov esp, ebp
pop ebp
ret 8