Function at 0x4270d0
Capabilities:
Check for time delay via queryperformancecounter
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba725
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8c], edi
mov eax, dword [edi + 0x778]
xorps xmm0, xmm0
mov esi, dword [ebx + 8]
movlpd qword [ebp - 0x28], xmm0
test eax, eax
je 0x427132
lock inc dword [eax + 4]
mov eax, dword [edi + 0x774]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x778]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
movq xmm0, qword [esi + 0x50]
movups xmm1, xmmword [esi + 0x40]
mov eax, dword [esi + 0x58]
movq qword [ebp - 0x4c], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x44], eax
movups xmmword [ebp - 0x5c], xmm1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 1
movaps xmm0, xmm1
mov eax, dword [edi + 0x6b4]
mov dword [ebp - 0x80], eax
movd eax, xmm1
psrldq xmm0, 4
mov byte [ebp - 0x75], 0
shr eax, 0x10
push eax
movd dword [ebp - 0x7c], xmm0
mov dword [ebp - 0x88], eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
cmp eax, 0x50
je 0x4271cd
mov ecx, 0x1bb
cmp ax, cx
je 0x4271cd
xor cl, cl
jmp 0x4271cf
mov cl, 1
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], 0
test edx, edx
je 0x427288
mov eax, dword [esi + 0x14c]
cmp eax, 3
je 0x427288
cmp eax, 2
je 0x4275b0
test eax, eax
jne 0x427209
cmp byte [edx + 0x100], al
jne 0x4275b0
cmp eax, 1
jne 0x427288
test cl, cl
jne 0x427236
push ecx
push dword [ebp - 0x88]
mov ecx, edx
push dword [ebp - 0x7c]
call fcn.00451b50
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x80]
test al, al
jne 0x42728b
mov dword [esi + 0x10], 1
jmp 0x42728b
lea eax, [ebp - 0x5c]
push eax
push ecx
mov ecx, edi
call fcn.004287e0
test al, al
je 0x42725f
push str.127.0.0.1
mov dword [esi + 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp - 0x18]
mov edi, eax
jmp 0x42728b
lea eax, [ebp - 0x75]
push eax
lea eax, [ebp - 0x5c]
push eax
push ecx
mov ecx, edi
call fcn.00428aa0
test al, al
je 0x42743f
xor eax, eax
cmp byte [ebp - 0x75], al
setne al
add eax, 3
mov dword [esi + 0x10], eax
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x80]
cmp dword [esi + 0x10], 0
jne 0x4272c2
cmp dword [esi + 0x14c], 0
jne 0x4272c2
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x770], 3
jne 0x4272c2
push ecx
push dword [ebp - 0x5a]
mov ecx, edx
push dword [ebp - 0x58]
call fcn.00451b50
test al, al
jne 0x4272c2
mov dword [esi + 0x10], 1
push edi
call fcn.00467c30
mov edi, eax
add esp, 4
mov dword [ebp - 0x7c], edi
test edi, edi
je 0x42771b
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp eax, 1
je 0x4272ef
cmp eax, 4
jne 0x42765d
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x790]
cmp byte [eax + 0xa90], 0
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
movzx ecx, word [eax + 0x78e]
mov dword [ebp - 0x88], ecx
je 0x4273c1
cmp dword [esi + 0xc], 2
jne 0x4273c1
cmp dword [esi + 0x10], 1
jne 0x4273c1
movzx eax, word [esi + 0x42]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x8c]
movzx eax, ax
add ecx, 0xa94
push eax
push dword [esi + 0x44]
call fcn.0043c5d0
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x4273c1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x84], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42737b
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x5c]
push dword [ebp - 0x7c]
push eax
push edi
push dword [esi + 0xc]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.00427770
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4273ba
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x42742d
lea eax, [ebp - 0x38]
mov dword [ebp - 0x84], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4273e3
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
lea eax, [ebp - 0x5c]
push dword [ebp - 0x80]
push eax
push edi
push dword [esi + 0xc]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.00427770
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x427422
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x427622
mov eax, dword [ebp - 0x24]
mov byte [esi + 8], 1
mov dword [ebp - 0x84], eax
jmp 0x4276a1
mov edi, dword [ebp - 0x18]
push ecx
push dword [ebp - 0x88]
mov ecx, edi
push dword [ebp - 0x7c]
call fcn.00451b50
test al, al
jne 0x427285
cmp dword [esi + 0xc], 2
mov byte [ebp - 0x75], al
jne 0x427506
push dword [ebp - 0x88]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push dword [ebp - 0x7c]
mov ecx, edi
movlpd qword [ebp - 0x20], xmm0
push eax
call fcn.0045fa00
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x4274d7
mov byte [ebp - 0x75], 1
mov dword [esi + 0x10], 0
test edi, edi
je 0x4274a1
lock inc dword [edi + 4]
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x78], eax
mov dword [ebp - 0x88], ecx
mov dword [esi + 0x7c], edi
test ecx, ecx
je 0x4274d7
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4274d7
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x88]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x4274d7
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4274fc
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4274fc
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4274fc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x75], 0
jne 0x427285
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xbc]
mov edi, ecx
mov eax, dword [ecx + 4]
mov cl, byte [eax + 0xd]
mov byte [ebp - 0x75], cl
test cl, cl
jne 0x42752a
mov ecx, eax
mov edi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x427520
cmp byte [edi + 0xd], 0
jne 0x427536
cmp dword [edi + 0x10], 0
jbe 0x4275a4
cmp byte [ebp - 0x75], 0
mov edi, dword [edx + 0xbc]
mov ecx, edi
jne 0x42756a
mov edi, dword [edx + 0xe8]
nop word [eax + eax]
cmp dword [eax + 0x10], edi
jae 0x42755a
mov eax, dword [eax + 8]
jmp 0x42755e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x427550
mov edi, dword [edx + 0xbc]
cmp byte [ecx + 0xd], 0
jne 0x42758e
mov eax, dword [edx + 0xe8]
cmp eax, dword [ecx + 0x10]
jb 0x42758e
cmp ecx, edi
je 0x42758e
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x4275a4
cmp eax, dword [edx + 0xec]
je 0x4275a4
push ecx
push dword [ebp - 0x7c]
mov ecx, edx
call fcn.00452080
mov edx, dword [ebp - 0x18]
test al, al
je 0x427288
mov dword [esi + 0x10], 1
jmp 0x427288
test cl, cl
je 0x427288
lea eax, [ebp - 0x5c]
push eax
push ecx
mov ecx, edi
call fcn.004287e0
test al, al
je 0x4275e4
push str.127.0.0.1
mov dword [esi + 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp - 0x18]
mov edi, eax
jmp 0x42728b
lea eax, [ebp - 0x75]
push eax
lea eax, [ebp - 0x5c]
push eax
push ecx
mov ecx, edi
call fcn.00428aa0
test al, al
jne 0x427277
push ecx
push dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x18]
call fcn.00452080
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x80]
test al, al
je 0x42728b
mov dword [esi + 0x10], 1
jmp 0x42728b
push edi
mov byte [esi + 8], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x8c]
push dword [eax + 0x6b4]
call fcn.00467c30
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x84], eax
test edi, edi
je 0x42771b
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x427671
lea eax, [ebp - 0x30]
push eax
call edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
sub esp, 8
call fcn.00427bd0
mov byte [ebp - 0x75], al
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x427698
lea eax, [ebp - 0x30]
push eax
call edi
cmp byte [ebp - 0x75], 0
mov edi, dword [ebp - 0x7c]
je 0x427710
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x18]
push 4
push eax
push 0x1002
push 0xffff
push edi
mov dword [ebp - 0x18], 0x1400000
mov dword [ebp - 0x3c], 0x1400000
call esi
push 4
lea eax, [ebp - 0x3c]
push eax
push 0x1001
push 0xffff
push edi
call esi
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 0x40]
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x40], 1
call esi
test eax, eax
js 0x427710
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x8004667e
push edi
call esi
cmp eax, 0xffffffff
jne 0x42771d
test edi, edi
je 0x42771b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor edi, edi
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x427748
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x427748
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x427748
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004830fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4