Function at 0x463180
Capabilities:
Check if file exists
Copy file
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a0bb
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x55f43c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108], ecx
lea ecx, [ebp - 0x30]
call fcn.00456710
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.004b82c0
mov ecx, eax
call fcn.004bb1a0
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 4
call fcn.004b82c0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004b8540
add esp, 4
push 0x5c
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_11744]
push eax
lea edx, [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_7487]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf0]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push str.BatteryCalLogPath
lea ecx, [ebp - 0xf4]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 6
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0x108]
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], 4
lea ecx, [ebp - 0xf4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push str.BatteryCalLogName
lea ecx, [ebp - 0xf8]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 7
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x108]
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], 4
lea ecx, [ebp - 0xf8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp + 8], 0
je 0x4632f8
mov dword [ebp - 0x114], 0x52492c
jmp 0x463302
mov dword [ebp - 0x114], 0x524934
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0x394]
mov ecx, dword [eax + 0x2a4]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0x52493c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x1c
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.MSVCR100.dll_rename]
add esp, 8
push 0x52461a
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc4]
call fcn.00456640
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc4]
push ecx
call fcn.004b82c0
mov ecx, eax
call fcn.004ba4d0
cmp dword [ebp - 0x70], 0
je 0x4636df
push 0x52495c
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0xfc]
push eax
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100.dll_Ordinal_1313]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xfc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x463466
push 0
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
jne 0x463466
lea ecx, [ebp - 0xdc]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x34]
push eax
push 0x524968
lea ecx, [ebp - 0xdc]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0xc
lea ecx, [ebp - 0xdc]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xdc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0x52461b
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 0xc
cmp dword [ebp + 8], 0
je 0x46348d
mov dword [ebp - 0x120], str.PASS
jmp 0x463497
mov dword [ebp - 0x120], str.FAIL
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0x394]
mov ecx, dword [eax + 0x2a4]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push str._sCalDataBattCal__d__s__s__s
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x1c
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46355e
push 0
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
jne 0x46355e
lea ecx, [ebp - 0xe4]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xd4]
push ecx
push 0x5249c8
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0xc
lea ecx, [ebp - 0xe4]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xe4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0xd0]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x5249f8
lea edx, [ebp - 0xd0]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x10
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
push str._s_s.txt
lea edx, [ebp - 0xc8]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x10
push 0
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0xd0]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x4636af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0xe8
push str.__d___Fail_to_save__s_to_folder_CalData:_GetLastError_d.
lea edx, [ebp - 0xec]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x14
lea ecx, [ebp - 0xec]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
push 0xea
push 0x524a4c
push ecx
mov ecx, esp
mov dword [ebp - 0x100], esp
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x124], eax
push 1
push 0
call sub.Micl.dll_MiclAddDebugLogString
add esp, 0x14
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
lea edx, [ebp - 0xec]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x108]
call fcn.004735f0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xec]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xd0]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc4]
call fcn.004566b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00456770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4