Function at 0x76dfd8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x54
xor edx, edx
call fcn.00407bac
mov eax, dword [ebp - 4]
mov byte [eax + 0x51], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x76e014
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x76e3d8
call fcn.00407bac
jmp 0x76e3c6
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
call fcn.00407c38
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x76e053
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x76e424
call fcn.00407bac
jmp 0x76e3c6
push ebx
call sub.kernel32.dll_GetFileType_1
cmp eax, 2
je 0x76e079
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x76e464
call fcn.00407bac
jmp 0x76e3c6
push 0x1000
push 0x1000
push ebx
call sub.kernel32.dll_SetupComm
test eax, eax
jne 0x76e0c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x76e4b4
call fcn.00407bac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov dl, 1
mov eax, dword [0x76d450]
call fcn.0041c948
call fcn.004061c4
mov edx, dword [ebp - 4]
mov eax, ebx
mov dword [edx + 0x3c], eax
push 0xf
push eax
call sub.kernel32.dll_PurgeComm
mov eax, dword [ebp - 4]
mov byte [eax + 0x50], 1
mov eax, dword [ebp - 4]
call fcn.0076e9dc
mov eax, dword [ebp - 4]
call fcn.0076e8ac
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], ebx
test ebx, ebx
jne 0x76e129
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x76e4f4
call fcn.00407bac
jmp 0x76e3c6
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], ebx
test ebx, ebx
jne 0x76e177
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x76e4f4
call fcn.00407bac
jmp 0x76e3c6
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x48], ebx
test ebx, ebx
jne 0x76e1d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x76e4f4
call fcn.00407bac
jmp 0x76e3c6
xor eax, eax
push ebp
push 0x76e1fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x76d6b8]
call fcn.004484bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x76e249
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [eax + 0x44], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x40]
mov dword [eax + 0x48], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
mov dword [eax + 0x40], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x5e]
mov word [eax + 0x52], dx
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x5c]
mov word [eax + 0x50], dx
mov dl, 5
call fcn.00448814
xor eax, eax
push ebp
push 0x76e2bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov dl, 1
mov eax, dword [0x76d74c]
call fcn.004484bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x76e310
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov dword [eax + 0x44], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x40]
mov dword [eax + 0x48], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
mov dword [eax + 0x40], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp - 4]
add edx, 0x50
mov dword [eax + 0x50], edx
mov dl, 4
call fcn.00448814
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00448b64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.00448b64
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [0x8e0da0]
mov eax, dword [eax]
call fcn.0051ba00
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x76e397
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x76e3ae
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
ja 0x76e3ae
push 1
call sub.kernel32.dll_Sleep_2
jmp 0x76e367
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret