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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5107d0
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x55f43c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x16c], ecx
push 0x5355c9
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov dword [ebp - 4], 0
push 0x5355ca
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
push 0x45e
mov ecx, dword [ebp - 0x16c]
call sub.mfc100.dll_Ordinal_4790
lea ecx, [ebp - 0x24]
push ecx
push 0x45e
mov ecx, dword [ebp - 0x16c]
call sub.mfc100.dll_Ordinal_4790
push 0x5359bc
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 - 0x15c]
push edx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_11781]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x174], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x174]
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 - 0x155], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
movzx ecx, byte [ebp - 0x155]
test ecx, ecx
je 0x4acc10
push 0
push 0x10
push str.Selected_diag_cptxt_file_is_illagel
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x15d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
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 - 0x15d]
jmp 0x4ace16
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 0x4acc61
push 0
push 0x10
push str.Diag_cptxt_file_selected_is_not_exsits.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x15e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
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 - 0x15e]
jmp 0x4ace16
lea ecx, [ebp - 0x154]
call fcn.004ace60
push 0
lea edx, [ebp - 0x154]
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 0x4accc5
push 0
push 0x10
push str.Get_diag_db_file_size_failed.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x15f], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
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 - 0x15f]
jmp 0x4ace16
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
ja 0x4acd25
jb 0x4acce8
cmp dword [ebp - 0x14], 0x632ea0
jae 0x4acd25
push 0
push 0x10
push str.file_size_failed.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x160], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
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 - 0x160]
jmp 0x4ace16
push 0x5355cb
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_310]
mov byte [ebp - 4], 3
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x16c]
call fcn.004ab620
push 0
push str.DBMDB.txt
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x164]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
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 - 0x1c], eax
lea ecx, [ebp - 0x164]
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [ebp - 0x1c], 0
jne 0x4acddf
push 0
push 0x10
push str.Failed_to_Update_CPtxt_diag_TXT.
call sub.mfc100.dll_Ordinal_1982
mov byte [ebp - 0x165], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
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 0x4ace16
mov byte [ebp - 0x166], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
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 - 0x166]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00501b98
mov esp, ebp
pop ebp
ret