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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xd8
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rbp - 9], rax
mov byte [rbp - 0x71], r9b
mov word [rbp - 0x6f], r8w
movzx edi, dx
mov rsi, rcx
mov r13, qword [rbp + 0x6f]
mov qword [rbp - 0x31], r13
mov r15, qword [rbp + 0x7f]
mov qword [rbp - 0x21], r15
mov r12, qword [rbp + 0x8f]
mov qword [rbp - 0x29], r12
mov rax, qword [rbp + 0xaf]
mov qword [rbp - 0x59], rax
add rcx, 0x10d8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14032d8f0]
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov r14d, edi
imul r14, r14, 0x408
add r14, rsi
cmp byte [r14 + 0xae8], 0
jne 0x14018d39d
lea rdx, str.Try_to_connect_mes
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x69]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
lea rcx, [rsi + 0x1150]
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]
test rbx, rbx
je 0x14018d39d
mov r8b, 1
mov rdx, qword [rbx + 0x40]
mov rcx, rsi
call fcn.14018c700
cmp byte [r14 + 0xae8], 1
je 0x14018d430
cmp byte [0x14034e76d], 1
je 0x14018d430
mov dword [rsi + Ordinal_4411], 0xffffffff
lea rcx, [rsi + 0x1140]
lea rdx, str.Cannot_connect_xNetAgent
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rdx, str.uploadCombineInspResultFromBUF__Cannot_connect_xNetAgent.___1_
lea rcx, [rbp - 0x69]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
mov rdx, rax
lea rcx, [rsi + 0x1150]
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]
lea rcx, [rsi + reloc.mfc110u.dll_Ordinal_4296]
mov rax, qword [rcx]
call qword [rax + gethostname]
nop
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, r13
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, r15
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, r12
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
xor al, al
jmp 0x14018d726
movzx eax, word [rbp - 0x6f]
movzx ecx, di
mov dword [rbp - 0x61], ecx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov eax, dword [rbp + 0x87]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov eax, dword [rbp + 0x97]
mov dword [rsp + 0x20], eax
mov r9, qword [r12]
mov r8, qword [r15]
lea rdx, str.uploadCombineInspResultFromBUF__Send_combine_final_decision_:__Path:_s____s____Slot:_d__d____Result:_d__d___Lane:_d__Active:_d_
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x69]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
lea rcx, [rsi + 0x1150]
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 rdx, r12
cmp byte [0x14034e76d], 1
jne 0x14018d535
lea rax, [rbp - 0x11]
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rdi, rax
mov rdx, r15
lea rcx, [rbp - 0x61]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rbx, rax
mov rdx, r13
lea rcx, [rbp - 0x49]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
nop
mov rcx, qword [rbp - 0x59]
mov qword [rsp + 0x58], rcx
mov ecx, dword [rbp + 0xa7]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rbp + 0x97]
mov dword [rsp + 0x40], ecx
movzx ecx, word [rbp - 0x6f]
mov word [rsp + 0x38], cx
mov qword [rsp + 0x30], rdi
mov ecx, dword [rbp + 0x87]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x77]
mov r8, rax
movzx edx, byte [rbp - 0x71]
call fcn.14005f170
jmp 0x14018d6ee
lea rax, [rbp - 0x59]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x11]
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x59]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rdi, rax
mov rdx, r15
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rbx, rax
mov rdx, r13
lea rcx, [rbp - 0x51]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
lea r10, [r14 + 0x880]
mov qword [rbp - 0x69], r10
mov ecx, dword [rbp + 0xa7]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rbp + 0x97]
mov dword [rsp + 0x40], ecx
movzx ecx, word [rbp - 0x6f]
mov word [rsp + 0x38], cx
mov qword [rsp + 0x30], rdi
mov edi, dword [rbp + 0x87]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x77]
mov r8, rax
movzx edx, byte [rbp - 0x71]
mov rcx, r10
call fcn.14005e2f0
cmp byte [rbp + 0xb7], 1
jne 0x14018d6ee
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor edx, edx
mov rcx, qword [r14 + 0x8b0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14018d63a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov ecx, dword [rsi + 0x1148]
add ecx, ecx
cmp eax, ecx
ja 0x14018d61a
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [r14 + 0x8b0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14018d5e6
jmp 0x14018d63a
mov dword [rsi + Ordinal_4411], 0xffffffff
lea rcx, [rsi + 0x1140]
lea rdx, str.Mes_Time_Over..
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
jmp 0x14018d687
lea rdx, [0x140224a18]
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
mov rdx, qword [rbp - 0x69]
mov ebx, dword [rdx + 0x50]
add rdx, 0x58
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc110u.dll_Ordinal_1492]
mov dword [rsi + Ordinal_4411], ebx
lea rcx, [rsi + 0x1140]
lea rdx, [rbp - 0x11]
call qword [sym.imp.mfc110u.dll_Ordinal_1492]
nop
lea rcx, [rbp - 0x11]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
test ebx, ebx
je 0x14018d6ee
movzx edx, byte [rbp - 0x71]
mov r8d, dword [rsi + 0x1148]
add r8d, r8d
mov rax, qword [r12]
mov qword [rsp + 0x50], rax
mov rax, qword [r15]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], edi
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
movzx eax, word [rbp - 0x6f]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x61]
lea rdx, str.uploadCombineInspResultFromBUF__send_time_out__d_ms__:_lane:_d__active:_d__barcode:_s__finalRst:_d__1stRst:_d__2ndRst:_d_1stpath:_s__2ndpath:_s
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x51]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
jmp 0x14018d3e3
lea rcx, [rsi + reloc.mfc110u.dll_Ordinal_4296]
mov rax, qword [rcx]
call qword [rax + gethostname]
nop
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, r13
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, r15
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, r12
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov al, 1
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401e3980
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret