Function at 0x697415
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x704
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x10
mov dword [ebp - 0x128], ebx
jle 0x6975c2
mov ecx, dword [esi + 8]
cmp dword [ecx + 4], ebx
je 0x697470
inc dword [ebp - 8]
cmp dword [ebp - 0x128], 0x40
jae 0x697470
mov edi, dword [ebp - 0x128]
mov edx, dword [ecx]
mov dword [ebp + edi*4 - 0x124], edx
inc dword [ebp - 0x128]
add ecx, 0x1c
dec eax
jne 0x69744a
cmp dword [ebp - 8], ebx
jle 0x6975c2
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x128]
push ebx
push eax
push 0x40
call sub.wsock32.dll_select
cmp eax, 0xffffffff
je 0x6975c2
cmp eax, ebx
je 0x6975c2
cmp dword [esi + 0x6c], ebx
mov dword [ebp + 8], ebx
jle 0x6975c2
xor edi, edi
mov eax, dword [esi + 8]
add eax, edi
cmp dword [eax + 4], ebx
je 0x6975b0
lea ecx, [ebp - 0x128]
push ecx
push dword [eax]
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x6975b0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x704]
push 0x5db
push eax
mov eax, dword [esi + 8]
push dword [edi + eax]
call sub.wsock32.dll_recvfrom
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x20]
add ecx, edi
cmp edx, dword [ecx + 0x10]
jne 0x6975b0
mov dx, word [ebp - 0x22]
cmp dx, word [ecx + 0xe]
jne 0x6975b0
cmp eax, 0xffffffff
je 0x6976e8
and byte [ebp + eax - 0x704], 0
lea eax, [ebp - 0x704]
push str._final_
push eax
call fcn.006a1c40
mov ebx, eax
mov eax, dword [esi + 8]
neg ebx
mov eax, dword [edi + eax + 4]
pop ecx
sbb ebx, ebx
pop ecx
neg ebx
cmp word [eax + 6], 0x270f
mov dword [ebp - 4], eax
jne 0x697570
call sub.kernel32.dll_GetTickCount
mov ecx, dword [esi + 8]
sub ax, word [edi + ecx + 8]
mov ecx, dword [ebp - 4]
mov word [ecx + 6], ax
mov eax, ecx
lea ecx, [ebp - 0x704]
push ecx
push eax
call fcn.006983a1
pop ecx
test ebx, ebx
pop ecx
je 0x6975ae
push dword [esi + 4]
call fcn.006977aa
mov ecx, eax
mov eax, dword [esi + 0x70]
imul eax, eax, 0x64
cdq
idiv ecx
push eax
push dword [ebp - 4]
push dword [esi + 0x7c]
push 2
push esi
call dword [esi + 0x78]
mov eax, dword [esi + 8]
add esp, 0x18
and dword [edi + eax + 4], 0
xor ebx, ebx
inc dword [ebp + 8]
add edi, 0x1c
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x6c]
jl 0x6974b2
cmp dword [esi + 0x6c], ebx
mov dword [ebp + 8], ebx
jle 0x697600
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 8]
cmp dword [edi + eax + 4], ebx
je 0x6975ec
add edi, eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [edi + 8]
cmp eax, 0xbb8
jbe 0x6975ec
mov dword [edi + 4], ebx
inc dword [ebp + 8]
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, 0x1c
cmp eax, dword [esi + 0x6c]
mov dword [ebp - 4], edi
jl 0x6975cf
cmp dword [esi + 0x74], ebx
jne 0x6976f0
push dword [esi + 4]
call fcn.006977aa
cmp dword [esi + 0x70], eax
pop ecx
jl 0x697620
cmp dword [ebp - 8], ebx
je 0x6976f0
cmp dword [esi + 0x6c], ebx
mov dword [ebp + 8], ebx
jle 0x697700
xor edi, edi
mov eax, dword [esi + 0x70]
push dword [esi + 4]
mov dword [ebp - 4], eax
call fcn.006977aa
cmp dword [ebp - 4], eax
pop ecx
jge 0x697700
mov eax, dword [esi + 8]
cmp dword [edi + eax + 4], ebx
jne 0x6976d4
push dword [ebp - 4]
push dword [esi + 4]
call fcn.0069975d
mov ebx, dword [eax]
mov eax, dword [esi + 8]
inc dword [esi + 0x70]
push ebx
mov dword [edi + eax + 4], ebx
mov eax, dword [esi + 8]
mov word [edi + eax + 0xc], 2
call fcn.00698461
add esp, 0xc
push eax
call sub.wsock32.dll_inet_addr
mov ecx, dword [esi + 8]
push ebx
mov dword [edi + ecx + 0x10], eax
call fcn.0069846d
pop ecx
push eax
call sub.wsock32.dll_htons
mov ecx, dword [esi + 8]
push 0x10
mov word [edi + ecx + 0xe], ax
mov eax, dword [esi + 8]
lea ecx, [edi + eax]
mov eax, dword [ebx + 8]
shl eax, 2
lea edx, [ecx + 0xc]
push edx
push 0
push dword [eax + 0x6b565c]
push dword [eax + 0x6d49b8]
push dword [ecx]
call sub.wsock32.dll_sendto
call sub.kernel32.dll_GetTickCount
mov ecx, dword [esi + 8]
xor ebx, ebx
mov dword [edi + ecx + 8], eax
inc dword [ebp + 8]
add edi, 0x1c
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x6c]
jl 0x69762e
jmp 0x697700
mov dword [ecx + 4], ebx
jmp 0x6975b0
push esi
call fcn.00697707
push ebx
push esi
call fcn.00696bc0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret