Function at 0x10066d30
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x10163b2d
mov eax, dword fs:[0]
push eax
sub esp, 0x3e0
mov eax, dword [0x101b629c]
xor eax, esp
mov dword [esp + 0x3dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b629c]
xor eax, esp
push eax
lea eax, [esp + 0x3f4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x404]
mov edi, dword [esp + 0x40c]
xor ebp, ebp
push 0x1ff
lea eax, [esp + 0x1f5]
push ebp
mov dword [esp + 0x1c], ebp
push eax
mov dword [esp + 0x48], esi
mov byte [esp + 0x1fc], 0
call fcn.10100160
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
push 0x202
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ax, word [esp + 0x40]
cmp al, 2
jne 0x10066fb0
cmp ah, al
jne 0x10066fb0
lea ecx, [esp + 0x28]
call fcn.100f1440
mov dword [esp + 0x3fc], 1
push ebp
lea edx, [esp + 0x2c]
push edx
push 0x1016a58c
push edi
call fcn.1004a900
mov ebx, eax
add esp, 0x10
xor edi, edi
cmp ebx, ebp
jle 0x10066e3a
cmp edi, ebp
jl 0x10066fab
cmp edi, dword [esp + 0x30]
jge 0x10066fab
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + edi*4]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.1005d950
add esp, 8
test eax, eax
jne 0x10066e3a
add edi, 1
cmp edi, ebx
jl 0x10066e08
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dl, 0x25
mov al, 0x64
mov cl, 0x30
mov byte [esp + 0x1d0], dl
mov byte [esp + 0x1d5], dl
mov byte [esp + 0x1da], dl
mov byte [esp + 0x1df], dl
mov byte [esp + 0x1e4], dl
mov byte [esp + 0x1e9], dl
movzx edx, word [esp + 0x24]
push edx
movzx edx, word [esp + 0x22]
mov byte [esp + 0x1d7], al
mov byte [esp + 0x1dc], al
mov byte [esp + 0x1e1], al
mov byte [esp + 0x1e6], al
mov byte [esp + 0x1eb], al
mov byte [esp + 0x1f0], al
movzx eax, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x22]
mov byte [esp + 0x1d9], cl
mov byte [esp + 0x1de], cl
mov byte [esp + 0x1e3], cl
mov byte [esp + 0x1e8], cl
mov byte [esp + 0x1ed], cl
mov byte [esp + 0x1f2], cl
movzx ecx, word [esp + 0x28]
push ecx
movzx ecx, word [esp + 0x24]
push edx
push eax
push ecx
mov bl, 0x32
lea edx, [esp + 0x1e8]
push edx
lea eax, [esp + 0x20c]
push eax
mov byte [esp + 0x1f2], 0x34
mov byte [esp + 0x1f4], 0x2d
mov byte [esp + 0x1f7], bl
mov byte [esp + 0x1f9], 0x2d
mov byte [esp + 0x1fc], bl
mov byte [esp + 0x1fe], 0x20
mov byte [esp + 0x201], bl
mov byte [esp + 0x203], 0x3a
mov byte [esp + 0x206], bl
mov byte [esp + 0x208], 0x3a
mov byte [esp + 0x20b], bl
mov byte [esp + 0x20d], 0
call fcn.10100f40
lea eax, [esp + 0x210]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebp
add esp, 0x20
mov byte [esi + 4], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10066f75
sub eax, ecx
push eax
lea ecx, [esp + 0x1f4]
push ecx
mov ecx, esi
call fcn.100099d0
mov dword [esp + 0x14], 1
mov byte [esp + 0x3fc], 0
lea ecx, [esp + 0x28]
call fcn.100f1788
jmp 0x10066ffa
jmp fcn.100ee1d6
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x1f0]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebp
mov byte [esi + 4], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10066fd0
sub eax, edx
push eax
lea edx, [esp + 0x1f4]
push edx
mov ecx, esi
call fcn.100099d0
mov dword [esp + 0x3fc], ebp
mov dword [esp + 0x14], 1
mov eax, esi
mov ecx, dword [esp + 0x3f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3dc]
xor ecx, esp
call fcn.100ff704
add esp, 0x3ec
ret