Function at 0x10007983
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
push edi
mov dword [ebp - 0x2e8], ecx
mov byte [ebp - 0x2d0], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x2cf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
call fcn.1000eaf0
add esp, 4
cmp eax, 0x100
jae 0x100079d3
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000eaf0
add esp, 4
mov dword [ebp - 0x2ec], eax
jmp 0x100079dd
mov dword [ebp - 0x2ec], 0xff
mov edx, dword [ebp - 0x2ec]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2d0]
push ecx
call fcn.1000e9f0
add esp, 0xc
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c4], 0
jmp 0x10007a4b
mov edx, dword [ebp - 0x1c4]
add edx, 1
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x1c4]
movsx ecx, byte [ebp + eax - 0x2d0]
test ecx, ecx
je 0x10007b03
mov edx, dword [ebp - 0x1c4]
movsx eax, byte [ebp + edx - 0x2d0]
cmp eax, 0x20
jne 0x10007afe
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1c4]
add edx, 1
mov dword [ebp - 0x1c8], edx
jmp 0x10007ab3
mov eax, dword [ebp - 0x1c8]
add eax, 1
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1cc]
add ecx, 1
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1c8]
movsx eax, byte [ebp + edx - 0x2d0]
test eax, eax
je 0x10007ae1
mov ecx, dword [ebp - 0x1cc]
mov edx, dword [ebp - 0x1c8]
mov al, byte [ebp + edx - 0x2d0]
mov byte [ebp + ecx - 0x2d0], al
jmp 0x10007a95
mov ecx, dword [ebp - 0x1cc]
mov byte [ebp + ecx - 0x2d0], 0
mov edx, dword [ebp - 0x1c4]
sub edx, 1
mov dword [ebp - 0x1c4], edx
jmp 0x10007a3c
mov eax, dword [ebp + 8]
push eax
call fcn.1000eaf0
add esp, 4
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000df20
add esp, 0xc
lea edx, [ebp - 0x2d0]
push edx
call fcn.1000eaf0
add esp, 4
push eax
lea eax, [ebp - 0x2d0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1000e9f0
add esp, 0xc
mov word [ebp - 0x2e4], 0x202
mov edx, dword [ebp + 8]
push edx
push str._IPV6__compare_ip_:__s
call fcn.1000de0c
add esp, 8
lea eax, [ebp - 0x1b8]
push eax
mov cx, word [ebp - 0x2e4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10007c40
push 0x20
push 0
lea edx, [ebp - 0x28]
push edx
call fcn.1000df20
add esp, 0xc
mov dword [ebp - 0x24], 0x17
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.10007d00
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10007bbb
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x10007cc0
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 4], eax
jmp 0x10007bcf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10007c2e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x17
jne 0x10007c2c
push 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
add edx, 8
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.1000e490
add esp, 0xc
mov ecx, dword [ebp - 0x2df]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x2e0]
and edx, 0xff
push edx
push str._IPV6__Covert_to_BINARY_form__compare_ip_:__x___x
call fcn.1000de0c
add esp, 0xc
mov dword [ebp - 0x1bc], 1
jmp 0x10007c2e
jmp 0x10007bc6
mov eax, dword [ebp - 0x1d0]
push eax
call fcn.10008ab0
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [ebp - 0x1bc], 0
jne 0x10007c4d
xor eax, eax
jmp 0x10007cc0
mov dword [ebp - 0x1c4], 0
jmp 0x10007c68
mov ecx, dword [ebp - 0x1c4]
add ecx, 1
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x1c4]
cmp eax, dword [edx + 0x2f84]
jge 0x10007cbe
push 0x10
mov ecx, dword [ebp - 0x1c4]
shl ecx, 4
mov edx, dword [ebp - 0x2e8]
lea eax, [edx + ecx + 0x2f88]
push eax
lea ecx, [ebp - 0x2e0]
push ecx
call fcn.1000e7d0
add esp, 0xc
test eax, eax
jne 0x10007cbc
push str._IPV6__find__
call fcn.1000de0c
add esp, 4
mov eax, 1
jmp 0x10007cc0
jmp 0x10007c59
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4