Function at 0x46bf40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50af95
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x55f43c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], 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 - 0x24]
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
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.0046f880
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 5
push str.RFCalibrationTdGoldenBoardTdGoldenBoard.txt
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp + 0xc], 0xe
jne 0x46c08a
push 0x52756c
push str.TD_Golden_Make
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
jmp 0x46c10d
cmp dword [ebp + 0xc], 0xd
jne 0x46c10d
push 0x527584
push str.TD_Golden_Loss_Set
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
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], 9
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x64]
call fcn.00448870
cmp eax, 1
jne 0x46c206
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x46c206
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x400
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.Fail_to_save_TdCableLoss:__s_to_folder_CalData:_GetLastError_d__s___SN_s.
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x18
push 0x8cc
push 0x52762c
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x90], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
lea ecx, [ebp - 0x34]
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 - 0x50], esp
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x64]
call fcn.004735f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x664], 1
jne 0x46c2ac
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x524737
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
push str.TdCableLossDataBase_Failed.csv
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 - 0x5c], esp
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x64]
call fcn.00470800
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 - 0x18]
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 - 0x24]
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 8