Function at 0x42a0d8
Capabilities:
Check for time delay via gettickcount
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 1], 0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x45b51c]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.00424700
mov byte [ebp - 0x26], al
lea eax, [ebp - 0x58]
push eax
push esi
call sub.kernel32.dll_GetCommState
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov eax, dword [0x45b09c]
sub eax, 0x20
je 0x42a13b
sub eax, 0xa
je 0x42a147
sub eax, 0x16
je 0x42a153
jmp 0x42a317
mov dword [ebp - 0x30], 0x10
jmp 0x42a317
mov dword [ebp - 0x30], 0x15
jmp 0x42a317
mov dword [ebp - 0x30], 0x20
jmp 0x42a317
push 1
call sub.kernel32.dll_Sleep
cmp dword [0x45b098], 0
jne 0x42a187
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call sub.kernel32.dll_ClearCommError
test eax, eax
je 0x42a328
jmp 0x42a1a4
lea eax, [ebp - 0x2c]
push eax
push 0x4004667f
push esi
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x42a328
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x42a1f0
cmp dword [ebp - 0xc], 0
jne 0x42a1bd
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0xc], eax
jmp 0x42a317
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x45b554]
mov edx, dword [edx]
add edx, dword [ebp - 0xc]
cmp eax, edx
jbe 0x42a317
xor eax, eax
mov al, byte [ebp - 0x26]
imul eax, eax, 0x422
mov dword [eax*8 + 0x4dd3d0], 8
jmp 0x42a328
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42a286
push 0x3e8
lea eax, [ebp - 0x25]
push eax
push esi
call fcn.00429cf4
test al, al
je 0x42a286
cmp byte [ebp - 0x25], 0xa
jbe 0x42a25d
cmp ebx, 6
jne 0x42a241
mov edx, 0x42a334
mov ecx, 4
mov eax, edi
call fcn.00408640
test eax, eax
jne 0x42a241
mov byte [edi + ebx - 2], 0
mov byte [ebp - 1], 1
jmp 0x42a328
mov al, byte [edi + ebx - 2]
mov edx, dword [0x45b354]
cmp al, byte [edx]
jne 0x42a25d
mov byte [edi + ebx - 2], 0
mov byte [ebp - 1], 1
jmp 0x42a328
dec dword [ebp - 0x38]
xor eax, eax
mov al, byte [ebp - 0x25]
imul dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x18], eax
inc ebx
mov al, byte [ebp - 0x25]
mov byte [edi], al
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov eax, dword [0x45b51c]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0x3e8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x38]
push eax
lea eax, [edi + ebx]
push eax
push esi
call sym.FRDrive.dll_ReadText
test al, al
je 0x42a2ac
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x38]
jne 0x42a2ac
add ebx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x18]
jb 0x42a317
cmp byte [edi], 0
jne 0x42a2c2
cmp byte [edi + 1], 0
jne 0x42a2c2
mov byte [ebp - 1], 1
jmp 0x42a328
cmp dword [ebp - 0x18], 0
jbe 0x42a328
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, ebx
sub eax, 2
test eax, eax
jb 0x42a2ee
inc eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
movzx edx, byte [edi + edx]
add dword [ebp - 0x1c], edx
inc dword [ebp - 8]
dec eax
jne 0x42a2de
xor eax, eax
mov al, byte [edi + ebx - 1]
sub dword [ebp - 0x1c], eax
test byte [ebp - 0x1c], 0xff
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x42a328
push 0
push 0x42a33c
push esi
call sym.FRDrive.dll_WriteEcho
mov byte [ebp - 1], al
jmp 0x42a328
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jb 0x42a15f
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8