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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0eb0
mov eax, dword fs:[0]
push eax
sub esp, 0xcc4
mov eax, dword [0x100d07a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.10075650
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Logpop.log
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call fcn.10069430
push 1
call fcn.1004c6c0
add esp, 4
call fcn.10040a70
mov ecx, dword [0x100d32b0]
test ecx, ecx
jne 0x100417fe
push 0x100cf03c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100d32b0], 0
jne 0x100417ed
push 0x14
call fcn.1006a12b
add esp, 4
test eax, eax
je 0x100417db
mov ecx, eax
call fcn.1002f460
jmp 0x100417dd
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0xcd0]
lock or dword [ecx], edx
mov dword [0x100d32b0], eax
push 0x100cf03c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100d32b0]
call fcn.1002f7a0
test eax, eax
je 0x10041b1c
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
lea ecx, [ebp - 0xc94]
mov dword [ebp - 0xcbc], 0
mov dword [ebp - 0xcac], 0
mov dword [ebp - 0xca8], 0
mov dword [ebp - 0xca4], 0
mov dword [ebp - 0xca0], eax
mov dword [ebp - method.CTaskbarProcess.virtual_0], vtable.CTaskbarProcess.0
mov dword [ebp - 0xc9c], 0
mov dword [ebp - method.LdsCommon::CCommandLine.virtual_0], vtable.LdsCommon::CCommandLine.0
mov dword [ebp - 0xc94], 0
mov dword [ebp - 0xc90], 0
call fcn.100411d0
mov dword [ebp - 0xc94], eax
lea ecx, [ebp - 0xc18]
xor eax, eax
mov dword [ebp - 0xc6c], 0
mov word [ebp - 0xc7c], ax
xorps xmm0, xmm0
mov dword [ebp - 0xc54], eax
mov word [ebp - 0xc64], ax
mov dword [ebp - 0xc3c], eax
mov word [ebp - 0xc4c], ax
mov dword [ebp - 0xc24], eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0x910]
push eax
movups xmmword [ebp - 0xc8c], xmm0
mov dword [ebp - 0xc68], 7
mov dword [ebp - 0xc50], 7
mov dword [ebp - 0xc38], 7
mov dword [ebp - 0xc20], 7
call fcn.10038620
lea ecx, [ebp - 0x910]
call fcn.10013fd0
push 0x84
call fcn.1006a12b
add esp, 4
test eax, eax
je 0x10041924
mov ecx, eax
call fcn.1003edc0
jmp 0x10041926
xor eax, eax
push dword [ebp - 0xcd0]
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x838], 0
push eax
mov dword [ebp - 0x834], 0
call fcn.10013a80
push edi
lea ecx, [ebp - 0xcc0]
call fcn.10040630
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10075650
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push str.RunDll.exe
push esi
call fcn.1008466c
add esp, 8
test eax, eax
je 0x10041b0c
push str.32.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x100419c9
push str.taskpop.exe
push esi
call fcn.1008466c
add esp, 8
test eax, eax
jne 0x10041b0c
push 0x100a8e20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x100419fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push edi
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [ebp - 0xcc8], eax
call esi
mov dword [ebp - 0xcc4], eax
jmp 0x10041a04
mov eax, dword [ebp - 0xcc4]
mov ecx, dword [ebp - 0xcc8]
test ecx, ecx
je 0x10041a1b
test eax, eax
je 0x10041a1b
lea eax, [ebp - 0xccc]
push eax
call ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
cmp dword [ebp - 0xcc8], 0
mov dword [ebp - 4], 0
je 0x10041a4c
mov ecx, dword [ebp - 0xcc4]
test ecx, ecx
je 0x10041a4c
push dword [ebp - 0xccc]
call ecx
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10041b0c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10041b0c
push 0x208
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.10075650
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10075650
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.100847e1
add esi, eax
lea eax, [ebp - 0x830]
push esi
push eax
push str._slds__u.tmp
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.100240b0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x628]
add esp, 0x14
push 1
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 4
test eax, eax
lea eax, [ebp - 0x628]
push 0
jne 0x10041b09
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.1004cab0
lea ecx, [ebp - 0xcc0]
call fcn.1003f120
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.1006a4da
mov esp, ebp
pop ebp
ret 4