Function at 0x100a0df0
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 0x10189901
mov eax, dword fs:[0]
push eax
mov eax, 0x1738
call fcn.10128a30
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1738], eax
mov dword [ebp - 0x1734], ecx
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x100a0e42
xor eax, eax
jmp 0x100a124e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x100a0e3b
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100a12ed
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1744], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10150460
push 0x208
lea eax, [ebp - 0x720]
push 0
push eax
call fcn.10150460
add esp, 0x18
lea eax, [ebp - 0x720]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x720]
push 0x104
push eax
call fcn.10163b62
mov eax, dword [ebp - 0x1738]
add esp, 8
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x100a12f7
movzx eax, word [eax]
push eax
call fcn.10163687
movzx eax, ax
add esp, 4
cmp word [ebp - 0x720], ax
jne 0x100a0f02
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x100a0f5c
mov eax, dword [ebp - 0x1738]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x100a1301
movzx eax, word [eax]
push eax
push str._c:.temp
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10073890
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x100a0f5c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100a130b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1740], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x100a0f9d
movzx eax, ax
lea ecx, [ebp - 0x1740]
push eax
call fcn.100183a0
jmp 0x100a0fc8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a0fa6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1740]
call fcn.10020080
mov edi, dword [ebp - 0x1740]
mov byte [ebp - 4], 2
cmp dword [edi - 0xc], 0x104
jg 0x100a119f
push 0x800
lea eax, [ebp - 0x1720]
push 0
push eax
call fcn.10150460
push 0x800
lea eax, [ebp - 0xf20]
push 0
push eax
call fcn.10150460
push edi
lea eax, [ebp - 0x1720]
push 0x400
push eax
call fcn.10160e4d
push 0xfe
lea eax, [ebp - 0x316]
push 0
push eax
call fcn.10150460
add esp, 0x30
mov dword [ebp - 0x173c], 0
nop word [eax + eax]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x318], 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.10150460
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.100a0db0
lea eax, [ebp - 0x518]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a10e6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x318]
push 0x80
push eax
call fcn.101639da
add esp, 0x10
lea eax, [ebp - 0x318]
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.1016389a
add esp, 0xc
lea eax, [ebp - 0xf20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a116e
mov eax, dword [ebp - 0x173c]
inc eax
mov dword [ebp - 0x173c], eax
cmp eax, 0xa
jl 0x100a1040
jmp 0x100a119f
lea ecx, [ebp - 0xf20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a1177
sub ecx, edx
lea eax, [ebp - 0xf20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1744]
call fcn.10020080
mov esi, dword [ebp - 0x1744]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a11bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1738]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x100a1222
mov eax, dword [ebp - 0x1738]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a1269
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100a1222
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a1222
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x100a1217
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100a1222
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x1734], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x100a1248
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1734]
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.10128191
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1734]
lea ecx, [esi - 0x10]
mov edi, dword [edx]
sub edi, 0x10
cmp ecx, edi
je 0x100a12db
cmp dword [edi + 0xc], 0
jl 0x100a12d0
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x100a12d0
push ecx
call fcn.1001d450
add esp, 4
mov dword [ebp - 0x173c], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100a12b3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x173c]
mov ecx, dword [ebp - 0x1734]
add eax, 0x10
mov dword [ebp - 0x1734], 1
or edi, 0xffffffff
mov dword [ecx], eax
jmp 0x100a122c
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.10020080
mov dword [ebp - 0x1734], 1
or edi, 0xffffffff
jmp 0x100a122c
push 0x80004005
call fcn.10017a40
push 0x80070057
call fcn.10017a40
push 0x80070057
call fcn.10017a40
push 0x80004005
call fcn.10017a40
int3