Function at 0x4aaa70
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x54c3d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x440]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, 4
push 0x617d8c
push eax
mov dword [esp + 0x434], ebx
call esi
add esp, 8
test eax, eax
jne 0x4aaaf6
lea ecx, [esp + 0xc]
push ecx
call fcn.00402536
add esp, 4
push eax
lea ecx, [esp + 0x444]
mov byte [esp + 0x430], 5
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x444]
push 0x617d8c
push edx
call esi
add esp, 8
test eax, eax
jne 0x4aab20
lea eax, [esp + 0x440]
lea ecx, [esp + 0x444]
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0xc]
push ecx
call fcn.00401c08
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 0x440]
push eax
push str.WindowsDir_
mov byte [esp + 0x434], 6
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
push edx
call fcn.004025cc
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 0x440]
push eax
push str.SystemDir_
mov byte [esp + 0x434], 7
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
push eax
call fcn.00402536
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 0x440]
push eax
push str.TempDir_
mov byte [esp + 0x434], 8
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
push ecx
call fcn.00401c08
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 0x444]
push eax
push str.WindowsDir_
mov byte [esp + 0x434], 9
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
push edx
call fcn.004025cc
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 0x444]
push eax
push str.SystemDir_
mov byte [esp + 0x434], 0xa
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
push eax
call fcn.00402536
add esp, 4
mov eax, dword [eax]
lea ecx, [esp + 0x444]
push eax
push str.TempDir_
mov byte [esp + 0x434], 0xb
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x44c]
mov byte [esp + 0x42c], 0xc
test eax, eax
je 0x4aaca8
lea ecx, [esp + 0x438]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_3
jmp 0x4aae05
mov edx, dword [esp + 0x43c]
push 0x617d8c
push edx
call esi
add esp, 8
test eax, eax
je 0x4aacf0
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x438]
push ecx
push edx
lea ecx, [edi + 0x1c]
call sub.MFC42.DLL_CMapStringToString::operator__
mov ecx, eax
call fcn.0044fce0
jmp 0x4aae05
mov ecx, dword [esp + 0x438]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CMapStringToString::Lookup
test eax, eax
jne 0x4aae05
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
call ebp
cdq
mov ecx, 5
xor esi, esi
idiv ecx
mov edi, edx
add edi, 3
test edi, edi
jle 0x4aad3e
call ebp
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [esp + esi + 0x28], dl
inc esi
cmp esi, edi
jl 0x4aad28
lea ecx, [esp + 0x10]
mov byte [esp + esi + 0x28], 0
call sub.MFC42.DLL_CString::CString_4
push 0x2e
lea ecx, [esp + 0x440]
mov byte [esp + 0x434], 0xd
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
test esi, esi
jle 0x4aad87
lea edx, [esp + 0x43c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_3
push esi
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Delete
jmp 0x4aad95
push 0x617d8c
lea ecx, [esp + 0x14]
call fcn.0044fce0
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0044fce0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x43c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call sub.MFC42.DLL_CMapStringToString::operator__
mov ecx, eax
call fcn.0044fce0
lea ecx, [esp + 0x10]
mov byte [esp + 0x430], 0xc
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
pop ebp
lea eax, [esp + 0x438]
lea ecx, [esp + 0x440]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x444]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x438], 0xe
call sub.MFC42.DLL_operator_1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x434], 0xf
call esi
add esp, 8
test eax, eax
je 0x4aae6b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x448]
test eax, eax
je 0x4aae81
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x434]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x438]
mov byte [esp + 0x42c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x43c]
mov byte [esp + 0x42c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x440]
mov byte [esp + 0x42c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x444]
mov byte [esp + 0x42c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret 0x1c