Function at 0x41a2c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x4fada9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x591430]
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 [0x595eac], eax
xor eax, eax
mov dword [ebp - 4], 0
mov ebx, 0x595c5c
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp + 0x1a0]
jge 0x41a692
push 0xc
call fcn.00445790
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x41a3d9
mov ecx, esi
call fcn.0040c970
mov byte [ebp - 4], 2
mov eax, 1
lock xadd dword [0x595c58], eax
inc eax
cmp eax, 1
jne 0x41a36b
lea eax, [ebp]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
xchg dword [ebx], eax
xor edi, edi
lock xadd dword [ebx], edi
test edi, edi
je 0x41a392
call fcn.004b9da0
mov dword [ebp - 0x2c], eax
xor al, al
mov dword [ebp - 0x30], edi
jne 0x41a392
push str.winsock
lea eax, [ebp - 0x30]
push eax
call fcn.004178a0
push 0x60
mov byte [ebp - 4], 3
call fcn.00445790
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x41a3c6
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.0040d620
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004144e0
mov dword [esi + 8], eax
jmp 0x41a3db
xor eax, eax
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.004144e0
mov dword [esi + 8], eax
jmp 0x41a3db
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00405d80
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov dword [eax], edx
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 6
test edi, edi
je 0x41a433
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x41a433
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x41a433
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040e7c0
add esp, 0xc
mov esi, dword [0x595efc]
mov edx, dword [0x595ef8]
mov ecx, dword [0x595ef4]
mov byte [ebp - 4], 7
lea eax, [esi + edx]
test al, 1
jne 0x41a485
lea eax, [esi + 2]
shr eax, 1
cmp ecx, eax
ja 0x41a485
push 1
mov ecx, 0x595eec
call fcn.00413af0
mov esi, dword [0x595efc]
mov edx, dword [0x595ef8]
mov ecx, dword [0x595ef4]
lea eax, [ecx*2 - 1]
dec ecx
and edx, eax
mov dword [0x595ef8], edx
lea edi, [esi + edx]
mov eax, edi
shr eax, 1
and ecx, eax
mov eax, dword [0x595ef0]
lea esi, [ecx*4]
cmp dword [esi + eax], 0
jne 0x41a4d2
push 0x10
call fcn.00445790
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x41a4c5
call fcn.004d588f
mov eax, dword [0x595ef0]
mov dword [esi + eax], ecx
mov eax, dword [0x595ef0]
mov eax, dword [esi + eax]
and edi, 1
lea ecx, [eax + edi*8]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41a4f9
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
mov esi, dword [ebp - 0x18]
inc dword [0x595efc]
mov esi, dword [esi + 8]
mov dword [ebp - 0x20], esi
lea ebx, [esi + 0x18]
lock inc dword [ebx]
mov ecx, dword [0x595bc0]
mov edi, dword [0x595bbc]
mov edx, dword [0x595bb8]
mov byte [ebp - 4], 8
lea eax, [ecx + edi]
test al, 3
jne 0x41a553
lea eax, [ecx + 4]
shr eax, 2
cmp edx, eax
ja 0x41a553
push 1
mov ecx, 0x595bb0
call fcn.00413c90
mov ecx, dword [0x595bc0]
mov edi, dword [0x595bbc]
mov edx, dword [0x595bb8]
lea eax, [edx*4 - 1]
and edi, eax
lea eax, [edx - 1]
mov dword [0x595bbc], edi
add edi, ecx
mov ecx, edi
shr ecx, 2
and ecx, eax
mov eax, dword [0x595bb4]
shl ecx, 2
mov dword [ebp - 0x1c], ecx
cmp dword [ecx + eax], 0
jne 0x41a5a6
push 0x10
call fcn.00445790
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x41a594
call fcn.004d588f
mov eax, dword [0x595bb4]
mov edx, dword [ebp - 0x1c]
mov dword [edx + eax], ecx
mov ecx, edx
mov eax, dword [0x595bb4]
mov eax, dword [ecx + eax]
and edi, 3
mov dword [eax + edi*4], esi
lock inc dword [ebx]
inc dword [0x595bc0]
mov byte [ebp - 4], 9
or eax, 0xffffffff
lock xadd dword [ebx], eax
jne 0x41a5cc
mov ecx, esi
call fcn.0041dad0
mov eax, dword [ebp - 0x18]
sub esp, 0xc
mov edx, esp
mov byte [ebp - 4], 7
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41a5f8
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
push fcn.0041b9c0
push edx
call fcn.004075d0
add esp, 0x10
mov ecx, 0x595bdc
call fcn.00407c40
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x41a647
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x41a647
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x41a647
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0
inc eax
jmp 0x41a310
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.004b7be0
lea esp, [ebp + 0x194]
pop ebp
ret