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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085964
mov eax, dword fs:[0]
push eax
sub esp, 0x5ac
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x100185f4
test ebx, ebx
je 0x100185f4
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10059fd0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10059fd0
push 0x104
push ebx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.10060e17
add esp, 0x28
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100184a2
call fcn.1002d0c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10018113
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], al
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
call fcn.1000f590
mov byte [ebp - 4], 1
call fcn.1002d0c0
push ebx
push 0x1008d958
mov edi, eax
lea eax, [ebp - 0x424]
push 1
push eax
call fcn.1002cf80
add esp, 0x10
push 0x57
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x520]
call fcn.10006090
mov esi, eax
mov ecx, dword [ebp - 0x424]
mov edx, 0x1008ce68
test ecx, ecx
mov byte [ebp - 4], 3
cmovne edx, ecx
push edx
push esi
call fcn.10004420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x520]
call fcn.100071f0
mov edx, dword [ebp - 0x424]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100180f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x440]
call fcn.10006a30
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xffffffff
call fcn.10006a30
push ebx
call fcn.1007f580
add esp, 4
test eax, eax
jne 0x100184a2
call fcn.1002d0c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10018234
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], al
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 4
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.1000f590
mov byte [ebp - 4], 5
call fcn.1002d0c0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Delete_File__s_Failed__error___d
lea eax, [ebp - 0x424]
push 2
push eax
call fcn.1002cf80
add esp, 0x14
push 0x5c
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x520]
call fcn.10006090
mov esi, dword [edi]
lea ecx, [ebp - 0x424]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.100043c0
push eax
mov ecx, edi
call dword [esi + 0x1c]
lea ecx, [ebp - 0x520]
call fcn.100071f0
lea ecx, [ebp - 0x424]
call fcn.10006960
lea ecx, [ebp - 0x458]
call fcn.10006a30
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
call fcn.10006a30
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1008c564
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10018612
call fcn.1002d0c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10018382
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], al
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 8
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.1000f590
mov byte [ebp - 4], 9
call fcn.1002d0c0
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push ebx
push str.Rename_File__s_to__s_success
lea eax, [ebp - 0x424]
push 2
push eax
call fcn.1002cf80
add esp, 0x14
push 0x68
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x520]
call fcn.10006090
mov esi, dword [edi]
lea ecx, [ebp - 0x424]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.100043c0
push eax
mov ecx, edi
call dword [esi + 0x1c]
lea ecx, [ebp - 0x520]
call fcn.100071f0
lea ecx, [ebp - 0x424]
call fcn.10006960
lea ecx, [ebp - 0x458]
call fcn.10006a30
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
call fcn.10006a30
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.1002d0c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100184a2
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], al
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.1000f590
mov byte [ebp - 4], 0xd
call fcn.1002d0c0
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push str.delete_by_pending_file:_s
lea eax, [ebp - 0x424]
push 1
push eax
call fcn.1002cf80
add esp, 0x10
push 0x6c
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x520]
call fcn.10006090
mov esi, dword [edi]
lea ecx, [ebp - 0x424]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.100043c0
push eax
mov ecx, edi
call dword [esi + 0x1c]
lea ecx, [ebp - 0x520]
call fcn.100071f0
lea ecx, [ebp - 0x424]
call fcn.10006960
lea ecx, [ebp - 0x458]
call fcn.10006a30
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
call fcn.10006a30
mov esi, dword [ebp - 0x428]
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1001884a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
call fcn.1002d0c0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x100185f4
push 0x82
mov dword [ebp - 0x478], ecx
mov byte [ebp - 0x488], cl
lea ecx, [ebp - 0x488]
push 0x1008d8d0
mov dword [ebp - 0x474], 0xf
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x470]
mov dword [ebp - 4], 0x18
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0xf
mov byte [ebp - 0x470], 0
call fcn.1000f590
mov byte [ebp - 4], 0x19
call fcn.1002d0c0
push dword [ebp - 0x424]
mov edi, eax
lea eax, [ebp - 0x428]
push ebx
push esi
push str.Copy_From__s_to__s_Failed_Error_Code___d
push 3
push eax
call fcn.1002cf80
add esp, 0x18
push 0x7e
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x5b8]
call fcn.10006090
mov esi, eax
mov ecx, dword [ebp - 0x428]
mov eax, 0x1008ce68
test ecx, ecx
mov byte [ebp - 4], 0x1b
cmovne eax, ecx
push eax
push esi
call fcn.10004420
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x5b8]
call fcn.100071f0
mov edx, dword [ebp - 0x428]
or eax, 0xffffffff
mov byte [ebp - 4], 0x19
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100185de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x470]
call fcn.10006a30
lea ecx, [ebp - 0x488]
call fcn.10006a30
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002ef19
mov esp, ebp
pop ebp
ret
call fcn.1002d0c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001871b
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], al
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.1000f590
mov byte [ebp - 4], 0x11
call fcn.1002d0c0
push ebx
push str.Rename_File__s_failed__replace_until_reboot
mov edi, eax
lea eax, [ebp - 0x424]
push 1
push eax
call fcn.1002cf80
add esp, 0x10
push 0x6e
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x520]
call fcn.10006090
mov esi, dword [edi]
lea ecx, [ebp - 0x424]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.100043c0
push eax
mov ecx, edi
call dword [esi + 0x1c]
lea ecx, [ebp - 0x520]
call fcn.100071f0
lea ecx, [ebp - 0x424]
call fcn.10006960
lea ecx, [ebp - 0x458]
call fcn.10006a30
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
call fcn.10006a30
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.1002d0c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001884a
push 0x82
push 0x1008d8d0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], al
call fcn.1000f590
push 3
push 0x1008cdb8
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
call fcn.1000f590
mov byte [ebp - 4], 0x15
call fcn.1002d0c0
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push esi
push str.copy__s_to__s__replace_until_reboot
lea eax, [ebp - 0x424]
push 2
push eax
call fcn.1002cf80
add esp, 0x14
push 0x74
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x520]
call fcn.10006090
mov esi, dword [edi]
lea ecx, [ebp - 0x424]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.100043c0
push eax
mov ecx, edi
call dword [esi + 0x1c]
lea ecx, [ebp - 0x520]
call fcn.100071f0
lea ecx, [ebp - 0x424]
call fcn.10006960
lea ecx, [ebp - 0x458]
call fcn.10006a30
lea ecx, [ebp - 0x440]
call fcn.10006a30
mov eax, 1
jmp 0x100185f6