Function at 0x41ad30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d0b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x562494]
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 esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x41af67
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41af71
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.00405fe0
mov edi, dword [ebp - 0x14]
add esp, 4
test eax, eax
je 0x41af03
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov ecx, esi
call fcn.0041abe0
test eax, eax
je 0x41af03
call fcn.00409bb0
mov ecx, eax
test ecx, ecx
je 0x41af78
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41af82
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.00405fe0
mov esi, dword [ebp - 0x18]
add esp, 4
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
push 0
call ebx
cmp dword [ebp + 0xc], 0
je 0x41ae82
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ae23
push esi
push eax
call ebx
push 0
push esi
push edi
call fcn.004b22a0
test eax, eax
je 0x41ae9d
xor ebx, ebx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41af05
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41af89
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41af89
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x41af0b
test edi, edi
je 0x41ae30
test esi, esi
je 0x41ae30
push esi
push 0x41afa0
push 0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
test eax, eax
je 0x41ae30
mov ebx, dword [ebp - 0x1c]
lea edx, [esi - 0x10]
mov ecx, dword [ebx]
sub ecx, 0x10
mov dword [ebp - 0x20], ecx
cmp edx, ecx
je 0x41aef2
cmp dword [ecx + 0xc], 0
jl 0x41aee7
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x41aee7
push edx
call fcn.00409170
mov ecx, dword [ebp - 0x20]
add esp, 4
mov ebx, eax
call fcn.00409890
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + 0x10]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
jmp 0x41ae32
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.00408a10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
jmp 0x41ae32
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41af47
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41af90
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41af90
push 0
push dword [ecx + 4]
call esi
mov eax, ebx
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.004affa8
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040a130
call edx
jmp 0x41ad89
push 0x80004005
call fcn.0040a130
call edx
jmp 0x41adea
call edx
jmp 0x41af05
call edx
jmp 0x41af47