Function at 0x46a9a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50adbc
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
push esi
mov eax, dword [0x55f43c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
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 9
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x144]
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
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 6
push str.TdNstResultFilePathName
lea ecx, [ebp - 0xec]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 7
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x144]
mov ecx, dword [ecx + 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], 6
lea ecx, [ebp - 0xec]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
mov esi, eax
push 0x2e
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_11744]
sub esi, eax
sub esi, 1
push esi
lea edx, [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xf0]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea edx, [ebp - 0x14]
push edx
push 0x527080
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xf4]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x154], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x154]
push eax
lea ecx, [ebp - 0xf8]
push ecx
call fcn.004206a0
add esp, 0xc
mov dword [ebp - 0x158], eax
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xf4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x144]
call fcn.00448870
cmp eax, 1
jne 0x46ae64
push 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x46acd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xb4], eax
push 0
push 0
lea ecx, [ebp - 0xb0]
push ecx
push 0x400
mov edx, dword [ebp - 0xb4]
push edx
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], 0xc
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x527090
lea ecx, [ebp - 0xb8]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x797
push 0x5270d8
push ecx
mov ecx, esp
mov dword [ebp - 0xfc], esp
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x160], 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 - 0x100], esp
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x144]
call fcn.004735f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x50], 0
je 0x46ae64
push 0
lea ecx, [ebp - 0x14]
push ecx
push str.TdNstResult.
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x16c]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.004206a0
add esp, 0xc
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x10]
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 - 0x108]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x104]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0xac], 0
jne 0x46ae64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc0], eax
push 0
push 0
lea ecx, [ebp - 0xbc]
push ecx
push 0x400
mov edx, dword [ebp - 0xc0]
push edx
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], 0xe
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x5270f8
lea ecx, [ebp - 0xc4]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x7b0
push 0x527144
push ecx
mov ecx, esp
mov dword [ebp - 0x10c], esp
lea edx, [ebp - 0xc4]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x174], 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 - 0x110], esp
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x144]
call fcn.004735f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0x527154
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_2617]
test eax, eax
jne 0x46b231
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0x10
push 0x527158
push 0x2e
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_11744]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], edx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x180]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x188], edx
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x188]
push eax
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x114]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0x527160
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x190]
push ecx
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x11c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x144]
call fcn.00448870
cmp eax, 1
jne 0x46b211
push 0
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x46b0b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd8], eax
push 0
push 0
lea edx, [ebp - 0xd4]
push edx
push 0x400
mov eax, dword [ebp - 0xd8]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0xdc]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
push str.Fail_to_save_TdNst:__s_to_folder_CalData:_GetLastError_d__s___SN_s.
lea edx, [ebp - 0xdc]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x7cf
push 0x5271d0
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x194], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0xdc]
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 edx, [ebp - 0xdc]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x144]
call fcn.004735f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xdc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x50], 0
je 0x46b211
push 0
push str.TdNstResult.txt
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xd0], eax
lea ecx, [ebp - 0x128]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0xd0], 0
jne 0x46b211
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe4], eax
push 0
push 0
lea edx, [ebp - 0xe0]
push edx
push 0x400
mov eax, dword [ebp - 0xe4]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0xe8]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
push str.Fail_to_save_TdNst_Log:__s_to_folder_CalData:_GetLastError_d__s___SN_s.
lea edx, [ebp - 0xe8]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x7e8
push 0x52722c
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1a0], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0xe8]
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 - 0x130], esp
lea edx, [ebp - 0xe8]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x144]
call fcn.004735f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xe8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, dword [ebp - 0x144]
cmp dword [eax + 0x664], 1
jne 0x46b2ef
push ecx
mov ecx, esp
mov dword [ebp - 0x134], esp
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 0x16
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
lea edx, [ebp - 0x14]
push edx
push str.TdNstResult_Failed.
push ecx
call fcn.0042c680
add esp, 0xc
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 0x17
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 0x18
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x144]
call fcn.00470800
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
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 - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4