Function at 0x1011f2a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10ac
call fcn.10212f90
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10259a9c], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x108c], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1090], esi
mov dword [ebp - 0x1088], eax
jne 0x1011f327
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x214]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x10ac]
push eax
call fcn.10185940
add esp, 4
call fcn.1015e4d0
cmp dword [0x10259a9c], 0
jne 0x1011f327
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x1098], 0
test edi, edi
mov dword [ebp - 0x10a8], 0
push ebx
setne al
lea ecx, [ebp - 0x1098]
inc eax
push ecx
push eax
mov dword [ebp - 0x10ac], eax
call fcn.101857e0
xor ebx, ebx
add esp, 8
cmp dword [ebp - 0x1098], ebx
jle 0x1011f574
mov ecx, dword [ebp - 0x108c]
lea edi, [eax + 0x14]
mov eax, dword [ebp - 0x1088]
test ecx, ecx
jne 0x1011f387
test esi, esi
jne 0x1011f387
test eax, eax
je 0x1011f561
push 0x800
lea eax, [ebp - 0x884]
push 0
push eax
call fcn.102134e7
add esp, 0xc
mov dword [ebp - 0x10a0], 0x400
lea eax, [ebp - 0x109c]
mov dword [ebp - 0x109c], 0
push eax
lea eax, [ebp - 0x10a0]
push eax
lea eax, [ebp - 0x884]
push eax
push edi
call sub.WS2_32.dll_WSCGetProviderPath
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x10a4]
push eax
call fcn.10009b10
mov ecx, dword [ebp - 0x108c]
add esp, 8
mov esi, 1
test ecx, ecx
je 0x1011f406
lea eax, [edi + 0x60]
push eax
push ecx
call fcn.102134f3
add esp, 8
neg eax
sbb eax, eax
not eax
and esi, eax
mov ecx, dword [ebp - 0x1090]
test ecx, ecx
je 0x1011f42c
mov eax, dword [ebp - 0x10a4]
cmp dword [eax - 0xc], 0
je 0x1011f42a
push eax
push ecx
call fcn.102134f3
add esp, 8
test eax, eax
je 0x1011f42c
xor esi, esi
cmp dword [ebp - 0x1088], 0
je 0x1011f478
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x40
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x1088]
call fcn.102134f3
add esp, 8
neg eax
sbb eax, eax
not eax
and esi, eax
mov edx, dword [ebp - 0x10a4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011f496
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1011f54f
push 0x800
lea eax, [ebp - 0x1084]
push 0
push eax
call fcn.102134e7
add esp, 0xc
mov dword [ebp - 0x109c], 0x400
lea eax, [ebp - 0x10a0]
mov dword [ebp - 0x10a0], 0
push eax
lea eax, [ebp - 0x109c]
push eax
lea eax, [ebp - 0x1084]
push eax
push edi
call sub.WS2_32.dll_WSCGetProviderPath
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0x1094]
push eax
call fcn.10009b10
push dword [edi + 0x10]
push dword [ebp - 0x10ac]
call fcn.1015d3e0
xor ecx, ecx
add esp, 0x10
test eax, eax
sete cl
test eax, eax
mov eax, dword [ebp - 0x1094]
mov dword [ebp - 0x10a8], ecx
jne 0x1011f537
cmp dword [eax - 0xc], 0
je 0x1011f537
push 2
push 0
push eax
call fcn.100e4770
mov eax, dword [ebp - 0x1094]
add esp, 0xc
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011f54f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1090]
mov eax, dword [ebp - 0x1088]
mov ecx, dword [ebp - 0x108c]
inc ebx
add edi, 0x274
cmp ebx, dword [ebp - 0x1098]
jl 0x1011f377
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10a8]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret