Function at 0x10018580
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b90b
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1b4], edi
mov eax, dword [ebp + 8]
push 0x20
mov dword [ebp - 0x1d8], edi
mov dword [ebp - 0x1b0], eax
call fcn.1003dd7e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10018604
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
call fcn.100190d0
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0
jmp 0x10018606
xor esi, esi
mov dword [edi], esi
mov dword [ebp - 4], 1
mov eax, 1
lock xadd dword [0x10074a94], eax
inc eax
mov esi, 0x10074a98
cmp eax, 1
jne 0x10018638
lea eax, [ebp - 0x1ac]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [esi], eax
xor eax, eax
lock xadd dword [esi], eax
test eax, eax
je 0x10018697
push section..data
push eax
lea ecx, [ebp - 0x1c]
call fcn.10002330
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1d4], str.D:ProgrammsLibrares_boost_boost_asiodetailimplwinsock_init.ipp
mov dword [ebp - 0x1d0], str.throw_on_error
mov dword [ebp - 0x1cc], 0x48
mov dword [ebp - 0x1c8], 0x1a
test al, 1
je 0x10018697
cmp eax, 1
jne 0x100187ee
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x100187ee
push 0x64
mov byte [ebp - 4], 2
call fcn.1003dd7e
mov esi, eax
add esp, 4
mov dword [ebp - 0x1b4], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x100186e8
push 0x64
push 0
push esi
call fcn.1003fbe0
mov eax, dword [ebp - 0x1b0]
add esp, 0xc
cmp eax, 1
mov ecx, 1
cmove eax, ecx
mov ecx, esi
push 0
push eax
push edi
call fcn.10018ec0
mov esi, eax
mov dword [ebp - 0x1b0], eax
jmp 0x100186f0
xor esi, esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1dc], esi
mov edi, dword [edi]
lea eax, [ebp - 0x1bc]
push 0
push eax
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0
call fcn.1000be50
mov eax, dword [edi + 0x18]
add esp, 8
cmp eax, dword [esi + 0xc]
jne 0x10018803
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
mov esi, dword [edi + 0x1c]
mov edi, dword [ebp - 0x1b8]
mov byte [ebp - 4], 6
test esi, esi
je 0x1001878b
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x1001875f
test edi, edi
je 0x1001875f
cmp eax, edi
je 0x100187d9
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10018784
mov eax, dword [ebp - 0x1bc]
test eax, eax
je 0x10018784
add eax, 4
push eax
lea eax, [ecx + 4]
push eax
call fcn.1003fd3a
add esp, 8
test eax, eax
je 0x100187d9
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x10018750
mov esi, dword [ebp - 0x1b0]
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0x1bc]
push eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x10], ecx
mov dword [eax + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c4]
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x1c0]
call fcn.10018d30
push eax
mov byte [ebp - 4], 7
call fcn.10011f70
lea eax, [ebp - 0x1d4]
push eax
push str.winsock
lea eax, [ebp - 0x1c]
push eax
call fcn.10002b50
lea ecx, [ebp - 0x1d0]
call fcn.10018520
push eax
mov byte [ebp - 4], 5
call fcn.10011e60
int3