Function at 0x413390
Capabilities:
Copy file
Delete file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4fa300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
call fcn.00413150
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, edi
call fcn.00413150
mov esi, eax
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x4c], esi
jle 0x41381c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString_3
cmp esi, ebp
mov byte [esp + 0x58], 2
jle 0x4136ae
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov ecx, edi
call fcn.00413210
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x20]
push ecx
push ebp
push edx
mov ecx, edi
call fcn.00413210
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x78], 5
call fcn.00412fe0
test eax, eax
je 0x41375f
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x413565
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov esi, dword [esp + 0x20]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4134df
test cl, cl
je 0x4134db
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4134df
add eax, 2
add esi, 2
test cl, cl
jne 0x4134b7
xor eax, eax
jmp 0x4134e4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x30]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x413517
push 0x541374
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x413677
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
test eax, eax
je 0x41362d
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4135a6
mov eax, ebp
mov ecx, 0xff
cdq
idiv ecx
push 0x54180c
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x74]
push edx
push str._06X_02X._s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
mov byte [esp + 0x64], 6
call sub.MFC42.DLL_operator_3
mov esi, dword [eax]
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x20]
lea edx, [esp + 0x3c]
push eax
push ecx
push edx
mov byte [esp + 0x64], 7
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea ecx, [esp + 0x3c]
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41362d
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Empty
push 0x541374
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x413677
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x48]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x4c]
inc ebp
cmp ebp, esi
jl 0x413409
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x7c]
call fcn.004c830a
mov edx, dword [edi + 0x6c]
lea ecx, [esp + 0x28]
add edx, 0x38
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x58], 9
cmp esi, eax
jge 0x4137e1
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
mov ecx, edi
call fcn.00413210
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x413751
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x74]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
lea ecx, [esp + 0x70]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x413786
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x4136dd
jmp 0x4137e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x18]
jmp 0x4137ab
mov esi, dword [esp + 0x60]
push 0xcb
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x413821
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x20