Function at 0x10005980
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1664
call fcn.1000aeb0
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [ebp - 0x165a]
push ecx
mov dword [ebp - 0x1664], esi
mov word [ebp - 0x165c], ax
call fcn.1000ae30
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x1452]
push eax
mov word [ebp - 0x1454], dx
call fcn.1000ae30
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.1000ae30
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xc32]
push ecx
mov word [ebp - 0xc34], ax
call fcn.1000ae30
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.1000ae30
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x61a]
push edx
mov word [ebp - 0x61c], cx
call fcn.1000ae30
add esp, 0x48
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x124a]
push ecx
mov word [ebp - 0x124c], ax
call fcn.1000ae30
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0xa2a]
push eax
mov word [ebp - 0xa2c], dx
call fcn.1000ae30
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x822]
push edx
mov dword [ebp - 0x1660], 0
mov word [ebp - 0x824], cx
call fcn.1000ae30
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 0x24
push 0x104
add esi, 0x20c
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x11
call fcn.10028ad0
add esp, 4
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea edx, [ebp - 0x824]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10005c02
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xe3a]
push ecx
mov word [ebp - 0xe3c], ax
call fcn.1000ae30
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x1042]
push eax
mov word [ebp - 0x1044], dx
call fcn.1000ae30
add esp, 0x18
push str.Downloaded_Program_Files
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x824]
push edx
call ebx
test eax, eax
je 0x10005c02
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx eax, ax
push eax
lea ecx, [ebp - 0x824]
push ecx
push str._s_d.dat
lea edx, [ebp - 0xe3c]
push pe_nt_image_headers32
push edx
call fcn.1000c6df
add esp, 0x14
lea eax, [ebp - 0xe3c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10005c02
push 0x11
call fcn.10028ad0
push eax
lea edx, [ebp - 0x824]
push edx
push 0x10041304
lea eax, [ebp - 0x1044]
push pe_nt_image_headers32
push eax
call fcn.1000c6df
lea ecx, [ebp - 0x1044]
push ecx
lea edx, [ebp - 0xe3c]
push edx
call fcn.1000c6ac
add esp, 0x20
test eax, eax
jne 0x10005c02
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1000ae30
push pe_nt_image_headers32
lea ecx, [ebp - 0x1044]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.1000c11c
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x10005dd2
push 0x104
lea ecx, [ebp - 0xc34]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0xc34]
push eax
call ebx
test eax, eax
je 0x10005dd2
push 0x104
push esi
lea ecx, [ebp - 0xa2c]
push ecx
call edi
push 0xf
call fcn.10028ad0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 4
push eax
lea edx, [ebp - 0xa2c]
push edx
call esi
push 0x104
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [ebp - 0x61c]
push ecx
call edi
push str..sys
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0xa2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [ebp - 0x61c]
push edx
call ebx
test eax, eax
je 0x10005dd2
push 0x104
lea eax, [ebp - 0x124c]
push eax
lea ecx, [ebp - 0x61c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [ebp - 0x124c]
push edx
call ebx
test eax, eax
je 0x10005dd2
call fcn.1001d8f0
push 0x104
test eax, eax
jne 0x10005cfb
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x10005d08
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.rundll32.exe
lea edx, [ebp - 0x414]
push edx
call esi
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
jne 0x10005d3c
lea ecx, [ebp - 0x414]
push ecx
push str.rundll32_Path___s__not_find_
call fcn.1001aca0
add esp, 8
jmp 0x10005dd2
lea edx, [ebp - 0x124c]
push edx
push 0
push str._04d_s
lea eax, [ebp - 0x1454]
push 0x103
push eax
call fcn.1000c6df
lea ecx, [ebp - 0x1454]
push ecx
lea edx, [ebp - 0xc34]
push edx
push str._s_cb3__s
lea eax, [ebp - 0x165c]
push 0x103
push eax
call fcn.1000c6df
add esp, 0x28
lea ecx, [ebp - 0x1660]
push ecx
mov ecx, dword [ebp - 0x1664]
push 5
push 0x7d0
lea edx, [ebp - 0x165c]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.10004020
lea ecx, [ebp - 0x61c]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1660], 1
jne 0x10005dce
push str.InstallDll_run_patch_by_rundll32_error_____OUTTIME
call fcn.1001aca0
add esp, 4
test esi, esi
jne 0x10005ddf
push str.InstallDll_run_patch_by_rundll32_error_____return_false
call fcn.1001aca0
add esp, 4
lea edx, [ebp - 0xc34]
push 1
push edx
call fcn.1001cb20
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret