Function at 0x407696
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x1c
call fcn.0040e018
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.0040e018
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4203fc
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0x89
call fcn.0040e018
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x420404
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x81
rep stosb byte es:[edi], al
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa00
call fcn.0040ffc0
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
push eax
push 0x18b
call fcn.0040e018
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4077d6
push 6
call fcn.0040e01e
add esp, 4
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0040e3b0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x407823
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x407821
imul eax, dword [edi]
jmp 0x407816
mov ecx, eax
cmp ecx, 0x101
jle 0x407830
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.0040e3b0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x40786e
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40786c
imul eax, dword [edi]
jmp 0x407861
mov ecx, eax
cmp ecx, 0x81
jle 0x40787b
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
call fcn.0040e012
add esp, 4
pop eax
xor ecx, ecx
mov eax, 0x420c7f
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0xa
jg 0x40799b
mov ebx, dword [0x420c83]
call fcn.00404d56
push ebx
push ecx
mov eax, dword [0x420c7f]
dec eax
jns 0x4078ea
push 4
call fcn.0040e01e
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4078fd
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407944
push 6
call fcn.0040e01e
add esp, 4
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [0x420c83]
call fcn.00404d56
push ebx
push ecx
mov eax, dword [0x420c7f]
dec eax
jns 0x40796b
push 4
call fcn.0040e01e
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40797e
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x407994
pop ebx
pop ecx
jmp 0x4078ba
add esp, 8
mov ebx, dword [0x420c87]
call fcn.00404d56
mov eax, 0
cmp eax, ecx
jl 0x4079bf
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
push 0x4097a3
push 1
push dword [ebp - 8]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push 1
push 0x420c8b
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
push 0x40cf32
call fcn.00405f34
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040e012
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040e012
add esp, 4
pop ebx
call fcn.0040e012
add esp, 4
mov esp, ebp
pop ebp
ret