Function at 0x1401a74a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x140
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rbp + 0x108], rbx
mov qword [rbp + 0x110], rsi
mov qword [rbp + reloc.mfc110u.dll_Ordinal_280], rdi
mov rax, qword [0x140324030]
xor rax, rbp
mov qword [rbp + 0xc8], rax
mov rsi, rcx
mov qword [rbp], rcx
lea rax, vtable.CStrings.0
mov qword [rbp + 0xa8], rax
xor r15d, r15d
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], r15
mov qword [rbp + 0xc0], r15
lea rcx, [rbp + 0x88]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, str.PanelIndex_s__Barcode_s__Def_Type_I64d__Decision_d__TB_d__ModelName_s__Lane_s__Active_s__MachineUID_s__Slot_s__Lot_ID__s
lea rcx, [rbp + 0xa0]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rax, [rsi + 0xf370]
mov qword [rbp + 0x68], rax
mov rcx, rax
call qword [sym.imp.MSVCP110.dll__Mtx_lock]
test eax, eax
je 0x1401a7554
mov ecx, eax
call qword [sym.imp.MSVCP110.dll_void___cdecl_std::_Throw_C_error_int_]
mov byte [rbp + 0x70], 1
mov ebx, r15d
mov dword [rbp + 0x80], ebx
lea rdi, [rsi + 0x700]
mov qword [rbp + 8], rdi
mov rcx, rdi
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRows____ptr64___cdecl_CXTPReportControl::GetRows_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_int___cdecl_CXTPReportRows::GetCount_void_const___ptr64]
test eax, eax
jle 0x1401a785f
movabs rsi, 0xffffffffffffff0
mov rcx, rdi
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecords____ptr64___cdecl_CXTPReportControl::GetRecords_void_const___ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecord____ptr64___cdecl_CXTPReportRecords::GetAt_int_const___ptr64]
mov rcx, rax
mov dword [rsp + 0x20], r15d
lea r9, [0x140326b68]
lea r8, [0x140326b90]
xor edx, edx
call sub.MSVCR110.dll___RTDynamicCast
mov r13, rax
mov r14, qword [rax + 0xe0]
mov qword [rbp + 0x40], r14
test r14, r14
je 0x1401a7839
lea r8, [r14 + 0xc]
test r8, r8
je 0x1401a764c
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [r8 + rcx], 0
jne 0x1401a75e5
inc ecx
cmp ecx, 0x3fffffff
jg 0x1401a764c
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x1401a760b
mov rdx, rsi
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1401ea950
sub rsp, rdx
lea rbx, [rsp + 0x70]
test rbx, rbx
je 0x1401a764c
mov word [rbx], r15w
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
cmove rbx, r15
mov qword [rbp + 0x78], rbx
jmp 0x1401a7650
mov qword [rbp + 0x78], r15
mov edx, 1
mov rcx, r13
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecordItem____ptr64___cdecl_CXTPReportRecord::GetItem_int_const___ptr64]
mov rbx, rax
mov edx, 0xa
mov rcx, r13
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecordItem____ptr64___cdecl_CXTPReportRecord::GetItem_int_const___ptr64]
mov rdi, rax
mov edx, 9
mov rcx, r13
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecordItem____ptr64___cdecl_CXTPReportRecord::GetItem_int_const___ptr64]
mov rsi, rax
mov edx, 8
mov rcx, r13
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecordItem____ptr64___cdecl_CXTPReportRecord::GetItem_int_const___ptr64]
mov r15, rax
mov edx, 4
mov rcx, r13
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecordItem____ptr64___cdecl_CXTPReportRecord::GetItem_int_const___ptr64]
mov r12, rax
mov edx, 3
mov rcx, r13
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRecordItem____ptr64___cdecl_CXTPReportRecord::GetItem_int_const___ptr64]
mov qword [rbp + 0x38], rax
lea rdx, [r14 + 0x3ab]
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov qword [rbp + 0x30], rax
mov r8, qword [rbx]
lea rdx, [rbp + 0x58]
mov rcx, rbx
call qword [r8 + 0x100]
mov r13, rax
mov r8, qword [rdi]
lea rdx, [rbp + 0x48]
mov rcx, rdi
call qword [r8 + 0x100]
mov r14, rax
mov r8, qword [rsi]
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [r8 + 0x100]
mov rsi, rax
mov r8, qword [r15]
lea rdx, [rbp + 0x18]
mov rcx, r15
call qword [r8 + 0x100]
mov rbx, rax
mov r8, qword [r12]
lea rdx, [rbp + 0x10]
mov rcx, r12
call qword [r8 + 0x100]
mov rdi, rax
mov rax, qword [rbp + 0x38]
mov r8, qword [rax]
lea rdx, [rbp + 0x28]
mov rcx, rax
call qword [r8 + 0x100]
mov r8, qword [rax]
mov r9, qword [rbp + 0x40]
movzx edx, word [r9 + 0x1d2]
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
mov qword [rsp + 0x60], rcx
mov rcx, qword [r13]
mov qword [rsp + 0x58], rcx
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x50], rax
mov rcx, qword [r14]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsi]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
mov eax, dword [r9 + 0x1d8]
mov dword [rsp + 0x28], eax
mov rax, qword [r9 + 0x1ca]
mov qword [rsp + 0x20], rax
mov r9, qword [rdi]
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0x88]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x50]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0xa8]
mov rax, qword [rbp + 0xa8]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, dword [rbp + 0x80]
mov rdi, qword [rbp + 8]
xor r15d, r15d
movabs rsi, 0xffffffffffffff0
inc ebx
mov dword [rbp + 0x80], ebx
mov rcx, rdi
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_class_CXTPReportRows____ptr64___cdecl_CXTPReportControl::GetRows_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.ToolkitPro1631vc110x64U.dll_public:_int___cdecl_CXTPReportRows::GetCount_void_const___ptr64]
cmp ebx, eax
jl 0x1401a7590
mov rsi, qword [rbp]
lea rcx, [rsi + 0xf370]
call qword [sym.imp.MSVCP110.dll__Mtx_unlock]
test eax, eax
je 0x1401a7878
mov ecx, eax
call qword [sym.imp.MSVCP110.dll_void___cdecl_std::_Throw_C_error_int_]
lea rdx, [0x140222d84]
lea rcx, [rbp]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
mov r8, rax
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x98]
call fcn.1401d1a80
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, [rbp + 8]
lea rcx, [0x14034e310]
call fcn.14003a6e0
nop
lea r8, str.OfflinePanelLoadInfo__d.dat
mov rdx, rax
lea rcx, [rbp]
call fcn.14003a710
nop
mov r8d, dword [rsi + 0xf388]
mov rdx, qword [rax]
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
nop
lea rcx, [rbp]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov rdx, qword [rbp + 0x90]
lea rcx, [rbp + 0x80]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
mov rdx, qword [rbp + 0x98]
lea rcx, [rbp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x14026a5b0]
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1401a7974
mov rcx, qword [rbp + 0x78]
movsxd rbx, dword [rcx - 0x10]
lea rcx, [rbp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_4831]
mov rcx, rax
mov r9, rdi
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.MSVCR110.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_fclose]
nop
lea rcx, [rbp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp + 0x80]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x98]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0xa0]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp + 0x88]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rbx, qword [rbp + 0xb0]
test rbx, rbx
je 0x1401a7a02
mov rdi, qword [rbp + 0xb8]
cmp rbx, rdi
je 0x1401a79f9
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
add rbx, 8
cmp rbx, rdi
jne 0x1401a79e0
mov rbx, qword [rbp + 0xb0]
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rbp + 0xc8]
xor rcx, rbp
call fcn.1401e3980
mov rbx, qword [rbp + 0x108]
mov rsi, qword [rbp + 0x110]
mov rdi, qword [rbp + reloc.mfc110u.dll_Ordinal_280]
lea rsp, [rbp + 0xd0]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret