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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10206de0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1108
call fcn.10203e10
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov byte [edi], 0
cmp byte [ebx + 0x479c04], 0
mov dword [ebp - 0x10fc], ebx
mov dword [ebp - 0x10f8], eax
mov dword [ebp - 0x1104], edi
mov byte [ebp - 0x10f1], 1
je 0x1007a005
movzx eax, word [ebp + 8]
mov edx, dword [ebp + 0x1c]
push edx
push eax
push str.QLIB_SendSync_iRequestSize_d__iTimeout_d___simulation_mode
lea ecx, [ebx + 0xa5e4]
push 2
push ecx
mov dword [ebp - 0x1100], ecx
call fcn.10115e20
movzx eax, word [ebp + 8]
add esp, 0x14
push eax
mov eax, dword [ebp - 0x10f8]
lea ecx, [ebx + 0xa5e9]
push eax
mov dword [ebp - 0x10fc], ecx
push ecx
mov ecx, dword [ebp - 0x1100]
call fcn.10115ce0
mov ecx, dword [ebp - 0x10fc]
mov edx, dword [ebp - 0x1100]
push ecx
push str.SEND:__s
push 1
push edx
call fcn.10115e20
add esp, 0x10
lea eax, [ebp - 0x10f0]
push eax
lea ecx, [ebx + 0xd9f8]
call fcn.10144a10
mov ax, word [ebp - 0x10f0]
movzx ecx, ax
push ecx
lea edx, [ebp - 0x10ee]
push edx
push edi
mov word [esi], ax
call sub.MSVCR100.dll_memcpy
movzx eax, word [esi]
mov ebx, dword [ebp - 0x10fc]
add esp, 0xc
push eax
push edi
mov edi, dword [ebp - 0x1100]
push ebx
mov ecx, edi
call fcn.10115ce0
movzx ecx, word [esi]
push ebx
push ecx
push str.SYNC_REC__listener____d_bytes_:__s
push 1
push edi
call fcn.10115e20
add esp, 0x14
mov al, 1
jmp 0x1007a37a
mov al, byte [ebx + 0x101c]
test al, al
jne 0x1007a273
push str.QMSL_Desktop_Sequencer_Mode__QMSL_FTM_SEQUENCER_MODE_INACTIVE
lea eax, [ebx + 0xa5e4]
push 1
push eax
call fcn.10115e20
add esp, 0xc
cmp byte [ebx + 0x479bfc], 0
mov ecx, ebx
je 0x1007a1fe
call fcn.10079710
test al, al
je case.0x1007a33e.22
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 0x10f8]
push eax
lea ecx, [ebx + 0xa5e9]
push edx
push ecx
lea ecx, [ebx + 0xa5e4]
mov dword [ebp - 4], 0
call fcn.10115ce0
lea eax, [ebx + 0xa5e9]
push eax
movzx eax, word [ebp + 8]
push eax
push str.SEND___d_:__s
lea eax, [ebx + 0xa5e4]
push 1
push eax
call fcn.10115e20
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1100], eax
movzx eax, word [ebp + 8]
push eax
mov eax, dword [ebp - 0x10f8]
push eax
lea ecx, [ebx + 0xa5e4]
call fcn.10115de0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebx + 0xa5d4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x10f8]
push edi
push esi
push eax
movzx eax, word [ebp + 8]
push eax
call edx
movzx eax, word [esi]
push eax
push edi
lea eax, [ebx + 0xa5e9]
push eax
lea ecx, [ebx + 0xa5e4]
call fcn.10115ce0
movzx ecx, word [esi]
lea eax, [ebx + 0xa5e9]
push eax
push ecx
push str.REC___d_:__s
lea eax, [ebx + 0xa5e4]
push 1
push eax
call fcn.10115e20
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1100]
push eax
push str.STACK_TIME__ms_:_t_d
lea eax, [ebx + 0xa5e4]
push 1
push eax
call fcn.10115e20
mov dl, byte [ebp + 0x18]
movzx eax, word [esi]
add esp, 0x10
cmp byte [edi], dl
sete byte [ebp - 0x10f1]
test ax, ax
je 0x1007a14a
push eax
push edi
lea ecx, [ebx + 0xa5e4]
call fcn.10115df0
lea ecx, [ebx + 0xd9f8]
call fcn.101442d0
test al, al
jne 0x1007a16b
lea ecx, [ebp - 0x10f0]
push ecx
lea ecx, [ebx + 0xd9f8]
call fcn.10144a10
cmp byte [ebp - 0x10f1], 0
jne 0x1007a193
movzx edx, byte [edi]
movzx eax, byte [ebp + 0x18]
push edx
push eax
push str.SEND_SYNC_Failed:_expected__d_received__d
lea eax, [ebx + 0xa5e4]
push 1
push eax
call fcn.10115e20
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10f1], 0
jne case.0x1007a33e.22
jmp 0x1007a2e0
call fcn.10079710
test al, al
je 0x1007a26a
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 0x10f8]
push eax
push edx
lea ecx, [ebx + 0xa5e4]
call fcn.10115de0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 0x10f8]
push ecx
push edx
push edi
push esi
push eax
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebx + 0xa060]
call fcn.10145cc0
mov cl, byte [ebx + 0xa19c]
mov byte [ebx + 0xa5d8], cl
movzx edx, word [esi]
push edx
push edi
lea ecx, [ebx + 0xa5e4]
mov byte [ebp - 0x10f1], al
call fcn.10115df0
jmp 0x1007a19a
mov byte [ebp - 0x10f1], 0
jmp 0x1007a2e0
cmp al, 1
jne case.0x1007a33e.22
push 0x1000
call fcn.10203b14
mov ecx, dword [ebp - 0x10f8]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x110c], eax
lea eax, [ebp - 0x1114]
push eax
mov eax, dword [ebx + 0x1024]
push ecx
push edx
push eax
call fcn.101f5dc0
mov ebx, dword [ebp - 0x1110]
mov ecx, dword [ebp - 0x110c]
push ebx
push ecx
push edi
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x110c]
push edx
mov word [esi], bx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x24
jmp case.0x1007a33e.22
mov al, byte [edi]
test al, al
je case.0x1007a33e.22
mov ecx, 0xa
mov esi, str.DIAG_BAD_CMD_F__19__received__bad_command
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xb
mov esi, str.DIAG_BAD_PARM_F__20__received__bad_parameter
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xc
mov esi, str.DIAG_BAD_LEN_F__21__received__bad_request_length
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x11
mov esi, str.DIAG_BAD_MODE_F__24__received__command_is_invalid_for_the_current_mode
lea edi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
movzx eax, al
movsw word es:[edi], word [esi]
add eax, 0xffffffed
movsb byte es:[edi], byte [esi]
cmp eax, 5
ja case.0x1007a33e.22
jmp dword [eax*4 + 0x1007a398]
lea eax, [ebp - 0x40]
jmp 0x1007a35d
lea eax, [ebp - 0x70]
jmp 0x1007a35d
lea eax, [ebp - 0xa4]
jmp 0x1007a35d
lea eax, [ebp - 0xec]
push eax
push str.ERROR:_t_s
push 0x10
add ebx, 0xa5e4
push ebx
call fcn.10115e20
add esp, 0x10
mov al, byte [ebp - 0x10f1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x1c