Function at 0x40aa00
Capabilities:
Copy file
Delete file
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x41403c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x104
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.00401050
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push 0x104
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceFileLocationA]
test eax, eax
je 0x40aa87
movsx eax, byte [ebp - 0x228]
test eax, eax
je 0x40aa74
push 0x41206c
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40aae7
lea ecx, [ebp - 0x228]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x228]
push ecx
call fcn.0040d370
test eax, eax
jne 0x40aae7
mov edx, dword [ebp + 0xc]
push edx
push str._r_n_e__Error_in_preparing_for_copy_SYS_file___s_._r_n_e__This_INF_file_is_bad._Parsing_stopped._r_n_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
xor eax, eax
jmp 0x40afdf
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 4]
push eax
push 0x104
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoExA]
push 0x416238
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40afaf
push 0x80
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040124a
add esp, 8
test eax, eax
je 0x40ad7c
mov eax, dword [0x4272ec]
add eax, 1
mov dword [0x4272ec], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._r_nDuplicated_SYS_file___s__found_r_n_i__SYS_file___s__renamed_to___s__r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x18
push 0x415a00
call fcn.004061a0
movzx ecx, byte [0x4272c9]
test ecx, ecx
je 0x40ad7c
push 0x104
push 0
lea edx, [ebp - 0x338]
push edx
call fcn.00401050
add esp, 0xc
push 0x5c
lea eax, [ebp - 0x228]
push eax
call fcn.00401020
add esp, 8
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
je 0x40ac5d
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea eax, [ebp - 0x338]
push eax
call fcn.00401020
add esp, 8
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
je 0x40ac4c
mov ecx, dword [ebp - 0x340]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x33c]
add edx, 1
mov dword [ebp - 0x33c], edx
jmp 0x40ac69
lea eax, [ebp - 0x228]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x33c]
push eax
call fcn.00401373
add esp, 0xc
test eax, eax
jne 0x40ad7c
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x338]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x2e
mov eax, dword [ebp - 0x33c]
push eax
call fcn.00401020
add esp, 8
push eax
push 0x2e
lea ecx, [ebp - 0x338]
push ecx
call fcn.00401020
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea edx, [ebp - 0x338]
push edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push str.UnDo.cmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0xffffffff
je 0x40ad7c
push 2
push 0
push 0
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [ebp - 0x338]
push edx
push str.DEL__F__Q__s_r_n
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0
push 0x4272d4
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409e40
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 4
ja case.default.0x40ada9
mov edx, dword [ebp - 0x348]
jmp dword [edx*4 + 0x40aff0]
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x40ae7d
movzx ecx, byte [0x4272c8]
test ecx, ecx
je 0x40adf7
mov edx, dword [ebp + 0xc]
push edx
push str._r_n_i__SYS_file___s__is_Unclassified_MiniPort_driver__Win_All__r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 5
jmp 0x40afdf
push 5
push str.iaSto
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401373
add esp, 0xc
test eax, eax
je 0x40ae4b
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp + 0xc]
push edx
push str._r_n_e__SYS_file___s__is_not_SCSIPORT_STORPORT_based_MiniPort_driver_r_n_r_n_e__Parsing_stopped._r_n_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 7
jmp 0x40afdf
mov eax, dword [ebp + 0xc]
push eax
push str._r_n_i__SYS_file___s__is_Intel_iaStor_iaAHCI_MiniPort_driver__Win_All__r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 5
jmp 0x40afdf
mov ecx, dword [ebp + 0xc]
push ecx
push str._r_n_i__SYS_file___s__is_Unclassified_System_Bus_Extender_driver_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 6
jmp 0x40afdf
mov edx, dword [ebp + 0xc]
push edx
push str._r_n_i__SYS_file___s__is_SCSIPORT_based_MiniPort_driver__Win_All__r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 1
jmp 0x40afdf
cmp dword [0x414b84], 1
jne 0x40af23
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0xc]
push ecx
push str._r_n_e__SYS_file___s__is_STORPORT_based__Windows_2003_only__r_n_e__but_Target_OS__Windows_XP_r_n_r_n_e__Parsing_stopped._r_n_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 7
jmp 0x40afdf
mov edx, dword [ebp + 0xc]
push edx
push str._r_n_i__SYS_file___s__is_STORPORT_based_MiniPort_driver__Windows_2003__r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 2
jmp 0x40afdf
mov eax, dword [ebp + 0xc]
push eax
push str._r_n_i__SYS_file___s__is_PCIIDEX_based_System_Bus_Extender_driver_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 3
jmp 0x40afdf
mov ecx, dword [ebp + 0xc]
push ecx
push str._r_n_i__SYS_file___s__is_CLASSPNP_based_System_Bus_Extender_driver_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
mov eax, 4
jmp 0x40afdf
jmp 0x40afdd
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._r_n_e__Error_in_copying_SYS_file___s_._Error_code___i_r_n_r_n_e__Parsing_stopped._r_n_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0x415a00
call fcn.004061a0
xor eax, eax
jmp 0x40afdf
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00401035
mov esp, ebp
pop ebp
ret 0x10