Function at 0x1010dda0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10ac
call fcn.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1025ab6c], 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 0x1010de27
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.10174a60
add esp, 4
call fcn.1014f520
cmp dword [0x1025ab6c], 0
jne 0x1010de27
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
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.10174900
xor ebx, ebx
add esp, 8
cmp dword [ebp - 0x1098], ebx
jle 0x1010e072
mov ecx, dword [ebp - 0x108c]
lea edi, [eax + 0x14]
mov eax, dword [ebp - 0x1088]
test ecx, ecx
jne 0x1010de87
test esi, esi
jne 0x1010de87
test eax, eax
je 0x1010e05f
push 0x800
lea eax, [ebp - 0x884]
push 0
push eax
call sub.msvcrt.dll_memset
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.10008d60
mov ecx, dword [ebp - 0x108c]
add esp, 8
mov esi, 1
test ecx, ecx
je 0x1010df06
lea eax, [edi + 0x60]
push eax
push ecx
call sub.msvcrt.dll__wcsicmp
add esp, 8
neg eax
sbb eax, eax
not eax
and esi, eax
mov ecx, dword [ebp - 0x1090]
test ecx, ecx
je 0x1010df2c
mov eax, dword [ebp - 0x10a4]
cmp dword [eax - 0xc], 0
je 0x1010df2a
push eax
push ecx
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x1010df2c
xor esi, esi
cmp dword [ebp - 0x1088], 0
je 0x1010df78
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call sub.msvcrt.dll_memset
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 sub.msvcrt.dll__wcsicmp
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 0x1010df96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1010e04d
push 0x800
lea eax, [ebp - 0x1084]
push 0
push eax
call sub.msvcrt.dll_memset
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.10008d60
push dword [edi + 0x10]
push dword [ebp - 0x10ac]
call fcn.1014e3d0
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 0x1010e035
cmp dword [eax - 0xc], 0
je 0x1010e035
push 1
push eax
call fcn.100d9c10
mov eax, dword [ebp - 0x1094]
add esp, 8
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1010e04d
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 0x1010de77
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10a8]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret