Function at 0x46d520
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b2f1
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x55f43c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.0046f880
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 6
push str.LteNstResultFilePathName
lea ecx, [ebp - 0x4c]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x7c]
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], 6
lea ecx, [ebp - 0x4c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push str.LteAntennaTestResult.txt
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x7c]
call fcn.00448870
cmp eax, 1
jne 0x46d733
push 0
lea ecx, [ebp - 0x18]
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 - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x46d733
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push 0x400
mov eax, dword [ebp - 0x34]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push str.Fail_to_save_LteAntenna:__s_to_folder_CalData:_GetLastError_d__s___SN_s.
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x9ce
push 0x527b64
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x88], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0x38]
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 - 0x58], esp
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x7c]
call fcn.004735f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push str.LteNstcsvFilePathName
lea ecx, [ebp - 0x5c]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 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 - 0x5c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push str.LTEAntennaTestResult.csv
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x60]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x7c]
call fcn.00448870
cmp eax, 1
jne 0x46d8a9
push 0
lea ecx, [ebp - 0x10]
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 - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x46d8a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0x400
mov edx, dword [ebp - 0x44]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x24]
push eax
push str.Fail_to_save_LteAntennaTest:__s_to_folder_CalData:_GetLastError_d__s___SN_s.
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x9eb
push 0x527c30
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x98], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0x48]
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 - 0x68], esp
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x7c]
call fcn.004735f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x664], 1
jne 0x46d94f
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x5247dd
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0xd
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
push str.LteAntennaTestResult_Failed.txt
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7c]
call fcn.00470800
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
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