Function at 0x1004abb0
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 0x101f3b67
mov eax, dword fs:[0]
push eax
mov eax, 0x1734
call fcn.10170840
mov eax, dword [0x10283a3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1740], eax
mov dword [ebp - 0x173c], esi
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x1004ac02
xor eax, eax
jmp 0x1004af87
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x1004abfb
call fcn.1002dc00
mov ecx, eax
test ecx, ecx
je 0x1004afbb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1734], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x318]
push 0x208
push 0
push eax
call fcn.101be270
push 0x208
lea eax, [ebp - 0x720]
push 0
push eax
call fcn.101be270
add esp, 0x18
lea eax, [ebp - 0x720]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x720]
push eax
call fcn.101d5716
mov eax, dword [esi]
add esp, 4
cmp dword [eax - 0xc], 0
jl 0x1004afc5
movzx eax, word [eax]
push eax
call fcn.101cf650
movzx eax, ax
add esp, 4
cmp word [ebp - 0x720], ax
jne 0x1004acb7
lea eax, [ebp - 0x318]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1004ad0b
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x1004afcf
movzx eax, word [eax]
push eax
push str._c:.temp
lea eax, [ebp - 0x318]
push 0x104
push eax
call fcn.100278d0
add esp, 0x10
lea eax, [ebp - 0x318]
push eax
call edi
test eax, eax
jne 0x1004ad0b
lea eax, [ebp - 0x318]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x1738]
call fcn.100281c0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1738]
cmp dword [esi - 0xc], 0x104
jg 0x1004aed3
push 0x800
lea eax, [ebp - 0x1720]
push 0
push eax
call fcn.101be270
push 0x800
lea eax, [ebp - 0xf20]
push 0
push eax
call fcn.101be270
push esi
lea eax, [ebp - 0x1720]
push 0x400
push eax
call fcn.101cf6ef
push 0xfe
lea eax, [ebp - 0x10e]
push 0
push eax
call fcn.101be270
add esp, 0x30
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x1730]
push eax
movups xmmword [ebp - 0x1730], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.101be270
movzx eax, byte [ebp - 0x1721]
push eax
movzx eax, byte [ebp - 0x1722]
push eax
movzx eax, byte [ebp - 0x1723]
push eax
movzx eax, byte [ebp - 0x1724]
push eax
movzx eax, byte [ebp - 0x1725]
push eax
movzx eax, byte [ebp - 0x1726]
push eax
movzx eax, byte [ebp - 0x1727]
push eax
movzx eax, byte [ebp - 0x1728]
push eax
movzx eax, word [ebp - 0x172a]
push eax
movzx eax, word [ebp - 0x172c]
push eax
push dword [ebp - 0x1730]
lea eax, [ebp - 0x518]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.10043be0
lea eax, [ebp - 0x518]
add esp, 0x40
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004ae30
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.101cec12
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x1720]
push eax
lea eax, [ebp - 0xf20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [ebp - 0xf20]
push 0x400
push eax
call fcn.101cf680
add esp, 0xc
lea eax, [ebp - 0xf20]
push eax
call edi
test eax, eax
je 0x1004aea8
inc esi
cmp esi, 0xa
jl 0x1004ad84
jmp 0x1004aed3
lea ecx, [ebp - 0xf20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004aeb1
sub ecx, edx
lea eax, [ebp - 0xf20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1734]
call fcn.1002b150
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x1738]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004aef7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x173c]
push dword [ebp - 0x1734]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1004af61
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004afa2
mov esi, dword [ebp - 0x1734]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1004af61
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004af61
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1004af56
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1004af61
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1734]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1004af85
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1017034a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1740]
lea eax, [ebp - 0x1734]
push eax
call fcn.100291c0
mov esi, 1
jmp 0x1004af63
push 0x80004005
call fcn.100253e0
push 0x80070057
call fcn.100253e0
push 0x80070057
call fcn.100253e0
int3