Function at 0x66b970
Capabilities:
Check for time delay via gettickcount
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
xor edi, edi
cmp esi, edi
jne 0x66b991
or ebx, 0xffffffff
mov ebp, 0x960020
mov dword [0x960020], ebx
jmp 0x66b9a5
push 0x118
call fcn.0068661b
add esp, 4
mov dword [esi], eax
mov ebp, eax
or ebx, 0xffffffff
call sub.KERNEL32.dll_GetTickCount
push eax
call fcn.00686545
mov eax, dword [esp + 0x64]
lea edx, [ebp + 4]
add esp, 4
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x66b9c0
mov eax, dword [esp + 0x64]
lea edx, [ebp + 0x44]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x66b9d3
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x88]
mov dword [ebp + 0xc0], eax
mov eax, dword [esp + 0x70]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x74]
mov dword [ebp + 0x114], edx
mov edx, dword [esp + 0x78]
mov dword [ebp + 0x88], eax
mov eax, dword [esp + 0x7c]
mov dword [ebp + 0x8c], ecx
mov ecx, dword [esp + 0x80]
mov dword [ebp + 0x90], edx
mov edx, dword [esp + 0x84]
mov dword [ebp + 0x94], eax
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x98], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0xac], edi
mov dword [ebp + 0xb0], edi
mov dword [ebp + 0xb8], 1
mov dword [ebp + 0x9c], edx
mov dword [ebp + 0xa0], edi
mov dword [ebp + 0xa4], edi
mov dword [ebp + 0xdc], edi
mov dword [ebp + 0xbc], eax
mov dword [ebp + 0xc4], edi
mov dword [ebp + 0xc8], ecx
mov dword [ebp + 0x10c], edi
mov word [ebp + 0x110], di
mov dword [ebp + 0xa8], edi
mov dword [ebp + 0xb4], edi
xor esi, esi
lea ebx, [ebx]
call fcn.00686552
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 4
mov byte [esi + ebp + 0x83], dl
jl 0x66baa0
cmp dword [0x798c20], edi
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0xe4], ebx
mov dword [ebp + 0xe8], ebx
mov dword [ebp + 0xec], ebx
mov dword [ebp + 0xf0], ebx
mov dword [ebp + 0xf4], ebx
mov dword [ebp + 0xf8], ebx
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x100], ebx
mov dword [ebp + 0x104], ebx
mov dword [ebp + 0x108], edi
jne 0x66bb34
call fcn.00674930
cmp eax, edi
je 0x66bb34
xor ecx, ecx
mov dword [0x798c20], ecx
mov edx, dword [eax + 0xc]
mov edx, dword [edx + ecx*4]
cmp edx, edi
je 0x66bb2e
mov edx, dword [edx]
mov dword [ecx*4 + 0x798b08], edx
inc ecx
cmp ecx, 5
jl 0x66bb15
mov dword [0x798c20], ecx
cmp dword [esp + 0x68], edi
je 0x66bbcf
movsx eax, byte [0x95ffe0]
cmp eax, edi
jne 0x66bb8a
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x14]
push str._s.master.codeusa.net
push ecx
call fcn.006864ed
add esp, 0xc
lea ebx, [esp + 0x10]
push 0x6cfc
mov word [ebp + 0xcc], 2
call sub.WSOCK32.dll_htons
cmp ebx, edi
mov word [ebp + 0xce], ax
jne 0x66bb91
mov dword [ebp + 0xd0], edi
jmp 0x66bb9d
mov ebx, 0x95ffe0
jmp 0x66bb64
push ebx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp + 0xd0], eax
cmp dword [ebp + 0xd0], 0xffffffff
jne 0x66bbcf
mov edi, 0x6ec3f8
mov esi, ebx
mov ecx, 0x10
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x66bbcf
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x66bbd9
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp + 0xd0], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x40
ret