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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [0x14032d8f0]
mov edx, 5
add rcx, 0x3cc10
movaps xmmword [rsp + 0x40], xmm6
movaps xmm6, xmm2
call qword [sym.imp.mfc110u.dll_Ordinal_13685]
mov rcx, rbx
mov byte [rbx + reloc.mfc110u.dll_Ordinal_468], 1
call fcn.1401d7d40
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rbx + 0x1a0]
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401d6e84
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xbb8
ja 0x1401d6e77
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x1a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401d6e48
jmp 0x1401d6e84
mov rcx, qword [rbx + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
movzx eax, byte [rbx + 0x1d2]
cmp al, 1
jne 0x1401d6e96
mov byte [rbx + 0x1d2], 0
test al, al
jne 0x1401d6ee8
mov byte [rbx + 0x1d3], al
mov rcx, qword [0x14032d8f0]
xor edx, edx
add rcx, 0x3cc10
call qword [sym.imp.mfc110u.dll_Ordinal_13685]
lea rdx, str.Achat5_Machine_empty_NOK..
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
lea rcx, [rbx + 0x160]
mov rdx, rax
call qword [sym.imp.LogMsgInterface.dll_public:_void___cdecl_CLogMsgInterface::writeLogData_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64]
mov rbx, qword [rsp + 0x68]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
mov dl, 1
mov rcx, rbx
call fcn.1401d7f90
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x1d3], 0
jne 0x1401d6f7e
cmp byte [rbx + reloc.mfc110u.dll_Ordinal_468], 1
jne 0x1401d6f7e
mov rcx, rbx
call fcn.1401d7ed0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rbx + 0x1a8]
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401d6f5f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xbb8
ja 0x1401d6f5f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x1a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401d6f32
cmp byte [rbx + 0x1d3], 1
je case.default.0x1401d701e
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 0x1d3], 0
je 0x1401d6f06
cmp byte [rbx + 0x1d3], 1
jne 0x1401d6fd6
mov eax, dword [0x14034ee6c]
movzx r9d, word [0x14034ee62]
movzx r8d, word [0x14034ee60]
movaps xmm1, xmm6
mov dword [rsp + 0x38], eax
movzx eax, word [0x14034ee68]
lea rcx, [0x14034f348]
mov word [rsp + 0x30], ax
movzx eax, word [0x14034ee66]
mov word [rsp + 0x28], ax
movzx eax, word [0x14034ee64]
mov word [rsp + 0x20], ax
call fcn.140039860
jmp 0x1401d6ff8
lea rdx, str.ACHAT5_Model_Change_NOK..
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
lea rcx, [rbx + 0x160]
mov rdx, rax
call qword [sym.imp.LogMsgInterface.dll_public:_void___cdecl_CLogMsgInterface::writeLogData_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64]
mov byte [rbx + 0x1d3], 0
mov rcx, qword [0x14032d8f0]
xor edx, edx
add rcx, 0x3cc10
mov rbx, qword [rsp + 0x68]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
jmp qword [sym.imp.mfc110u.dll_Ordinal_13685]