Function at 0x40a3b0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x410373
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x38]
xor esi, esi
push 0x12c
push eax
mov dword [esp + 0x174], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call fcn.0040a2c0
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x18]
cmp eax, esi
mov dword [esp + 0x14], esi
mov ebx, 1
jle 0x40a7aa
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
lea esi, [ecx*4]
mov ecx, dword [edi + 0x14]
mov edx, esi
add edx, ecx
push edx
push eax
call fcn.00401390
mov ecx, dword [esp + 0x1c]
push 0x41567c
push ecx
mov byte [esp + 0x180], bl
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x10
test eax, eax
je 0x40a483
mov edx, dword [esp + 0x14]
push 0x415678
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40a483
mov eax, dword [esp + 0x14]
push 0x415674
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40a784
cmp dword [esp + 0x28], 6
jle 0x40a5dd
mov edx, dword [edi + 0x14]
mov ecx, esi
push str._WindowsXP_
add ecx, edx
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40a738
mov ecx, dword [esp + 0x14]
push 0x41567c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40a513
mov ecx, dword [edi + 0x14]
mov edx, esi
add edx, ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00401340
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x20]
push str._sinf_s
push eax
mov byte [esp + 0x188], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], bl
call fcn.0040e8b6
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x10]
push 0
push edx
mov eax, dword [esi + ecx]
push eax
call ebp
mov eax, dword [esp + 0x14]
push 0x415678
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40a57e
mov eax, dword [edi + 0x14]
mov ecx, esi
add ecx, eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00401340
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_system32drivers_s
push edx
mov byte [esp + 0x188], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], bl
call fcn.0040e8b6
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov eax, dword [esi + eax]
push eax
call ebp
mov edx, dword [esp + 0x14]
push 0x415674
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40a738
mov edx, dword [edi + 0x14]
mov eax, esi
add eax, edx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00401340
mov edx, dword [eax]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_system_s
push ecx
mov byte [esp + 0x188], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x38]
jmp 0x40a723
mov edx, dword [edi + 0x14]
mov ecx, esi
push str._Windows2000_
add ecx, edx
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40a738
mov edx, dword [esp + 0x14]
push 0x41567c
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40a662
mov edx, dword [edi + 0x14]
mov eax, esi
add eax, edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00401340
mov edx, dword [eax]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x20]
push str._sinf_s
push ecx
mov byte [esp + 0x188], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], bl
call fcn.0040e8b6
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov eax, dword [esi + edx]
push eax
call ebp
mov edx, dword [esp + 0x14]
push 0x415678
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40a6cd
mov edx, dword [edi + 0x14]
mov eax, esi
add eax, edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00401340
mov edx, dword [eax]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_system32drivers_s
push ecx
mov byte [esp + 0x188], 6
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], bl
call fcn.0040e8b6
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov eax, dword [esi + edx]
push eax
call ebp
mov edx, dword [esp + 0x14]
push 0x415674
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40a738
mov edx, dword [edi + 0x14]
mov eax, esi
add eax, edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00401340
mov edx, dword [eax]
lea eax, [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_system_s
push ecx
mov byte [esp + 0x188], 7
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x2c]
call fcn.0040e8b6
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov eax, dword [esi + edx]
push eax
call ebp
mov ecx, dword [edi + 0x14]
lea edx, [esp + 0x34]
add esi, ecx
push esi
push edx
call fcn.00401340
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
mov byte [esp + 0x188], 8
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0x170], bl
call fcn.0040e8b6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.0040e8b6
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40a416
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0xffffffff
call fcn.0040e8b6
mov ecx, dword [esp + 0x164]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret