Function at 0x1000a060
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008631d
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x100bb758]
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 edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
je 0x1000a0a8
mov eax, 1
jmp 0x1000a3c4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a09e
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000a0ca
push edi
call ebx
test eax, eax
jne 0x1000a09e
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100609f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100609f0
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1006eafd
add esp, 0x24
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1008e9f8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call ebx
call fcn.10006430
mov ecx, eax
test ecx, ecx
je 0x1000a3e0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x454], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x1000a27a
push edi
lea eax, [ebp - 0x454]
push 0x1008ea00
push eax
call fcn.10006340
add esp, 0x10
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000a394
push 4
push str.FILE
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], al
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 1
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
call fcn.1000afb0
mov byte [ebp - 4], 2
call fcn.10054f50
mov ebx, eax
lea ecx, [ebp - 0x4ec]
push 0xd3
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.100083a0
mov edi, eax
mov esi, dword [ebp - 0x454]
mov ecx, 0x1008e984
test esi, esi
mov byte [ebp - 4], 3
cmovne ecx, esi
push ecx
push edi
call fcn.10007c20
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x4ec]
call fcn.10009260
lea ecx, [ebp - 0x438]
call fcn.10005f50
lea ecx, [ebp - 0x450]
call fcn.10005f50
xor edi, edi
jmp 0x1000a3a3
call ebx
test eax, eax
jne 0x1000a39e
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x454]
push 0x1008ea38
push eax
call fcn.10006340
add esp, 0xc
call fcn.10054f50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000a394
push 4
push str.FILE
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], al
call fcn.1000afb0
push 3
push 0x1008ea34
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 4
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0xf
mov byte [ebp - 0x450], 0
call fcn.1000afb0
mov byte [ebp - 4], 5
call fcn.10054f50
mov ebx, eax
lea ecx, [ebp - 0x4ec]
push 0xdc
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.100083a0
mov edi, eax
mov esi, dword [ebp - 0x454]
mov ecx, 0x1008e984
test esi, esi
mov byte [ebp - 4], 6
cmovne ecx, esi
push ecx
push edi
call fcn.10007c20
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x4ec]
call fcn.10009260
lea ecx, [ebp - 0x450]
call fcn.10005f50
lea ecx, [ebp - 0x438]
call fcn.10005f50
xor edi, edi
jmp 0x1000a3a3
mov esi, dword [ebp - 0x454]
xor edi, edi
jmp 0x1000a3a3
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a3c2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.100561dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100060c0
int3