Function at 0x410450
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa0e1
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x591430]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x214], esi
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
call fcn.00445790
add esp, 4
test eax, eax
jne 0x4104d5
call fcn.004d588f
mov dword [ebp - 0x204], eax
lea ecx, [ebp - 0x204]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x204]
mov dword [eax], ecx
xor eax, eax
mov edi, 0x595c5c
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 1
cmp eax, dword [esi + 4]
jge 0x410899
push 0xc
call fcn.00445790
mov esi, eax
add esp, 4
mov dword [ebp - 0x208], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x4105dc
mov ecx, esi
call fcn.0040c970
mov byte [ebp - 4], 3
mov eax, 1
lock xadd dword [0x595c58], eax
inc eax
cmp eax, 1
jne 0x41055d
lea eax, [ebp - 0x1e4]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
xchg dword [edi], eax
xor edi, edi
mov eax, 0x595c5c
lock xadd dword [eax], edi
test edi, edi
je 0x410592
call fcn.004b9da0
mov dword [ebp - 0x218], eax
xor al, al
mov dword [ebp - 0x21c], edi
jne 0x410592
push str.winsock
lea eax, [ebp - 0x21c]
push eax
call fcn.004178a0
push 0x60
mov byte [ebp - 4], 4
call fcn.00445790
add esp, 4
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4105c9
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.0040d620
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004144e0
mov dword [esi + 8], eax
jmp 0x4105de
xor eax, eax
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.004144e0
mov dword [esi + 8], eax
jmp 0x4105de
xor esi, esi
mov dword [ebp - 0x1ec], esi
mov dword [ebp - 0x1e8], 0
push esi
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 6
call fcn.00405d80
mov edx, dword [ebp - 0x1e8]
mov ecx, dword [eax]
mov dword [ebp - 0x1e8], ecx
mov dword [eax], edx
mov edi, dword [ebp - 0x210]
mov byte [ebp - 4], 7
test edi, edi
je 0x410648
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x410648
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 0x410648
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push esi
lea eax, [ebp - 0x1ec]
push esi
push eax
call fcn.0040e7c0
add esp, 0xc
mov esi, dword [0x595ba0]
mov ecx, dword [0x595b9c]
mov edx, dword [0x595b98]
mov byte [ebp - 4], 8
lea eax, [esi + ecx]
test al, 1
jne 0x41069d
lea eax, [esi + 2]
shr eax, 1
cmp edx, eax
ja 0x41069d
push 1
mov ecx, 0x595b90
call fcn.00413af0
mov esi, dword [0x595ba0]
mov ecx, dword [0x595b9c]
mov edx, dword [0x595b98]
lea eax, [edx*2 - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [0x595b9c], ecx
lea edi, [esi + ecx]
mov ecx, edi
shr ecx, 1
and ecx, eax
mov eax, dword [0x595b94]
lea esi, [ecx*4]
cmp dword [esi + eax], 0
jne 0x4106ec
push 0x10
call fcn.00445790
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4106df
call fcn.004d588f
mov eax, dword [0x595b94]
mov dword [esi + eax], ecx
mov eax, dword [0x595b94]
mov eax, dword [esi + eax]
and edi, 1
lea ecx, [eax + edi*8]
mov eax, dword [ebp - 0x1ec]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x1e8]
test ecx, ecx
je 0x41071c
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
mov esi, dword [ebp - 0x1ec]
inc dword [0x595ba0]
mov esi, dword [esi + 8]
mov dword [ebp - 0x1f0], esi
lea eax, [esi + 0x18]
lock inc dword [eax]
mov edx, dword [ebp - 0x1f4]
mov edi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
mov byte [ebp - 4], 9
lea eax, [edx + edi]
test al, 3
jne 0x41077d
lea eax, [edx + 4]
shr eax, 2
cmp ecx, eax
ja 0x41077d
push 1
lea ecx, [ebp - 0x204]
call fcn.00413c90
mov edx, dword [ebp - 0x1f4]
mov edi, dword [ebp - 0x1f8]
mov ecx, dword [ebp - 0x1fc]
lea eax, [ecx*4 - 1]
dec ecx
and edi, eax
mov dword [ebp - 0x1f8], edi
add edi, edx
mov eax, edi
shr eax, 2
and ecx, eax
mov eax, dword [ebp - 0x200]
shl ecx, 2
mov dword [ebp - 0x208], ecx
cmp dword [eax + ecx], 0
jne 0x4107d7
push 0x10
call fcn.00445790
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4107c0
call fcn.004d588f
mov eax, dword [ebp - 0x200]
mov edx, dword [ebp - 0x208]
mov dword [eax + edx], ecx
mov ecx, edx
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + ecx]
and edi, 3
lea ecx, [esi + 0x18]
mov dword [eax + edi*4], esi
lock inc dword [ecx]
inc dword [ebp - 0x1f4]
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x410800
mov ecx, esi
call fcn.0041dad0
mov eax, dword [ebp - 0x1ec]
sub esp, 0xc
mov edx, esp
mov byte [ebp - 4], 8
sub esp, 8
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x1e8]
test ecx, ecx
je 0x410835
add ecx, 4
mov eax, 1
lock xadd dword [ecx], eax
push fcn.0041b9c0
push edx
call fcn.004075d0
add esp, 0x10
mov ecx, 0x595bc4
call fcn.00407c40
mov esi, dword [ebp - 0x1e8]
mov byte [ebp - 4], 0xb
test esi, esi
je 0x410887
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x410887
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 0x410887
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp - 0x20c]
mov esi, dword [ebp - 0x214]
inc eax
jmp 0x4104f8
sub esp, 0x20
mov eax, esp
mov dword [ebp - 0x1f0], eax
mov dword [eax], 0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4108e0
mov dword [eax], ecx
test cl, 1
je 0x4108cc
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 8], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [eax + 0x18], xmm0
jmp 0x4108e0
add eax, 8
and ecx, 0xfffffffe
push 0
push eax
lea eax, [esi + 0x10]
push eax
mov eax, dword [ecx]
call eax
add esp, 0xc
push dword [esi]
lea ecx, [ebp - 0x54]
push dword [0x595b64]
push 0x595b90
call fcn.004416d0
mov ecx, 0x595bc4
mov byte [ebp - 4], 0xc
call fcn.00419030
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x41092e
test al, 1
jne 0x410927
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x410927
lea ecx, [ebp - 0x2c]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xe
call fcn.00414190
push dword [ebp - 0x54]
call fcn.004457a0
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x204]
call fcn.0040dc70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b7be0
mov esp, ebp
pop ebp
ret