Function at 0x4652c0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a4b3
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x55f43c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x138], ecx
push 4
mov ecx, dword [ebp - 0x138]
call fcn.00452120
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 4
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x138]
call fcn.0046f880
lea ecx, [ebp - 0xa4]
call fcn.00456640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
push ecx
call fcn.004b82c0
mov ecx, eax
call fcn.004ba4d0
mov ecx, dword [ebp - 0x138]
call fcn.004487e0
cmp eax, 1
jne 0x46542b
cmp dword [ebp + 8], 1
jne 0x46542b
push str.TdCal:_Write_nvm_to_reliable_data
push 0x525254
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0xe4], esp
push 0x525268
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x138]
call fcn.00473670
mov dword [ebp - 0x140], eax
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x46540b
mov dword [ebp + 8], 0
push str.TdCal:__Fail_to_send_command_to_write_nvm_to_reliable_data.
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
push 0x5252b4
push 0x5252bc
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x46542b
push str.TdCal:__Send_command_to_write_nvm_to_reliable_data_OK.
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
push 0x525304
push 0x52530c
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
cmp dword [ebp + 8], 1
jne 0x4657c9
push str.RFCalibrationTdCaliResultdefaultTdCalData.nvm
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x148], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x148]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
push 0x525350
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xec]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0xac], 1
jne 0x4654ed
push str.Save_TdCalData.nvm_to_folder_CalData_OK.
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
jmp 0x465619
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
push 0
push 0
lea eax, [ebp - 0xb0]
push eax
push 0x400
mov ecx, dword [ebp - 0xb4]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0xb4]
push eax
push 0x52538c
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xf0]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x154]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0x5253b0
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf0]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0x279
push 0x5253f8
push ecx
mov ecx, esp
mov dword [ebp - 0xf4], esp
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x158], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0xf8], esp
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x138]
call fcn.004735f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x50], 0
je 0x4657b9
push 0
push 0x525408
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xfc]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0xfc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0xac], 1
jne 0x46568d
push str.Save_Log_TdCalData.nvm_to_folder_CalData_OK.
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
jmp 0x4657b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc0], eax
push 0
push 0
lea eax, [ebp - 0xbc]
push eax
push 0x400
mov ecx, dword [ebp - 0xc0]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0xc4]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp - 0xc0]
push eax
push str.TdCalData.nvm
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
push eax
push str.Fail_to_copy_TdCalData.nvm:_source:__s__destination:_s__err_d__s_._n
lea ecx, [ebp - 0xc4]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x100]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0x297
push 0x5254a0
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x16c], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0xc4]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x108], esp
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x138]
call fcn.004735f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xb
push str.TdResultPathName
lea ecx, [ebp - 0x10c]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x394]
call sub.Micl.dll_public:_int___thiscall_CTestEngine::GetBatchParameter_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char____const___class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0x5254b0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x110]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x138]
call fcn.00448870
cmp eax, 1
jne 0x465af6
push 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x46599f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd0], eax
push 0
push 0
lea edx, [ebp - 0xcc]
push edx
push 0x400
mov eax, dword [ebp - 0xd0]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x2b5
push str.__d___Fail_to_save__s_to_folder_CalData:_GetLastError_d__SN_s.
lea ecx, [ebp - 0xd4]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x2b6
push 0x52551c
push ecx
mov ecx, esp
mov dword [ebp - 0x114], esp
lea edx, [ebp - 0xd4]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x17c], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x118], esp
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x138]
call fcn.004735f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x50], 0
je 0x465af6
push 0
push str.Td_Calibration.txt
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x11c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0xc8], 0
jne 0x465af6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xdc], eax
push 0
push 0
lea eax, [ebp - 0xd8]
push eax
push 0x400
mov ecx, dword [ebp - 0xdc]
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0xe0]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x2cd
push str.__d___Fail_to_save__Log__s_to_folder_CalData:_GetLastError_d__s___SN_s.
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x1c
push 0x2ce
push 0x525594
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x188], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0xe0]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x138]
call fcn.004735f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe0]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x138]
cmp dword [ecx + 0x664], 1
jne 0x465bad
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x194], eax
mov byte [ebp - 4], 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
push str.Td_Calibration_Failed.txt
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
mov dword [ebp - 0x19c], ecx
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x134], esp
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x138]
call fcn.00470800
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.004566b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4