Function at 0x4aaaf0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5103d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x55f43c]
xor eax, ebp
mov dword [ebp - 0x34], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x194], ecx
push 0x535545
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov dword [ebp - 4], 0
push 0x535546
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push 0x45c
mov ecx, dword [ebp - 0x194]
call sub.mfc100.dll_Ordinal_4790
lea ecx, [ebp - 0x30]
push ecx
push 0x45d
mov ecx, dword [ebp - 0x194]
call sub.mfc100.dll_Ordinal_4790
push 0x53557c
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
mov esi, eax
push 0x2e
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_11744]
sub esi, eax
sub esi, 1
push esi
lea edx, [ebp - 0x164]
push edx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x19c]
call dword [sym.imp.mfc100.dll_Ordinal_7832]
mov ecx, eax
call dword [sym.imp.mfc100.dll_Ordinal_2611]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x15d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call dword [sym.imp.mfc100.dll_Ordinal_901]
movzx ecx, byte [ebp - 0x15d]
test ecx, ecx
je 0x4aac30
push 0
push 0x10
push 0x535580
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x165], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x165]
jmp 0x4ab092
push 0x5355a4
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_5207]
mov esi, eax
push 0x2e
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_11744]
sub esi, eax
sub esi, 1
push esi
lea edx, [ebp - 0x16c]
push edx
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1a4]
call dword [sym.imp.mfc100.dll_Ordinal_7832]
mov ecx, eax
call dword [sym.imp.mfc100.dll_Ordinal_2611]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x166], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x16c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
movzx ecx, byte [ebp - 0x166]
test ecx, ecx
je 0x4aacef
push 0
push 0x10
push str.Selected_diag_db_file_is_illagel
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x16d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x16d]
jmp 0x4ab092
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4aad40
push 0
push 0x10
push str.Diag_db_file_selected_is_not_exsits.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x16e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x16e]
jmp 0x4ab092
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4aad91
push 0
push 0x10
push str.Nvm_db_file_selected_is_not_exsits.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x16f], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x16f]
jmp 0x4ab092
lea ecx, [ebp - 0x15c]
call fcn.004ace60
push 0
lea edx, [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.mfc100.dll_Ordinal_14116
test eax, eax
jne 0x4aadf5
push 0
push 0x10
push 0x535618
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x170], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x170]
jmp 0x4ab092
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x10], ecx
push 0
lea edx, [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.mfc100.dll_Ordinal_14116
test eax, eax
jne 0x4aae60
push 0
push 0x10
push str.Get_nvm_db_file_size_failed.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x171], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x171]
jmp 0x4ab092
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x20], ecx
push 0x535547
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x194]
call fcn.004ab620
push 0
push str.DBUE_Commands.mdb
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
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
lea ecx, [ebp - 0x178]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x28], 0
jne 0x4aaf2f
push 0
push 0x10
push str.Failed_to_Update_CP_diag_db.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x179], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x179]
jmp 0x4ab092
push 0
push str.DBNVM.mdb
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x180]
push eax
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x180]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x28], 0
jne 0x4aafcb
push 0
push 0x10
push str.Failed_to_Update_CP_nvm_db.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x181], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x181]
jmp 0x4ab092
mov ecx, dword [ebp - 0x194]
add ecx, 0x108
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x188], esp
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 5
push 0
call fcn.004b82c0
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004bf4d0
mov ecx, dword [ebp - 0x194]
add ecx, 0x94
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x18c], esp
lea edx, [ebp - 0x30]
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], 6
push 1
call fcn.004b82c0
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004bf4d0
mov byte [ebp - 0x18d], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov al, byte [ebp - 0x18d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00501b98
mov esp, ebp
pop ebp
ret