Function at 0x41d72c
Capabilities:
Check if file exists
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa50
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 8], edi
je 0x41de05
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], edi
jl 0x41d75b
mov dword [ebp - 0x38], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d76d
mov ecx, dword [0x43c4ec]
push eax
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
call fcn.00423a6f
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], edi
jl 0x41d784
mov dword [ebp - 0x34], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d796
mov ecx, dword [0x43c4ec]
push eax
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
call fcn.00423a6f
mov edi, 0x4642b0
push ebx
lea eax, [ebp - 0x38]
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418486
push dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
lea eax, [ebp - 0x34]
push edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00418486
push dword [ebp - 0x44]
call ebx
mov eax, dword [0x43c4ec]
and word [ebp - 0x250], 0
mov dword [ebp - 0x30], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x24e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
lea eax, [ebp - 0x250]
push 0x17
push eax
push 0
call edi
test eax, eax
je 0x41d81f
lea eax, [ebp - 0x250]
push 0x46429c
push eax
lea eax, [ebp - 0x30]
push 0x43d538
push eax
call fcn.00409c93
add esp, 0x10
lea eax, [ebp - 0x30]
push 0x4642b0
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418486
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404768
lea ecx, [ebp - 0xc]
call fcn.00404beb
push dword [ebp - 0x1c]
call ebx
push 0
lea eax, [ebp - 0x250]
push 2
push eax
push 0
call edi
test eax, eax
je 0x41d877
lea eax, [ebp - 0x250]
push 0x46429c
push eax
lea eax, [ebp - 0x30]
push 0x43d538
push eax
call fcn.00409c93
add esp, 0x10
lea eax, [ebp - 0x30]
push 0x4642b0
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418486
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404768
lea ecx, [ebp - 0xc]
call fcn.00404beb
push dword [ebp - 0x1c]
call ebx
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
jl 0x41d8b7
mov dword [ebp - 0x20], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d8c9
mov ecx, dword [0x43c4ec]
push eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
call fcn.00423a6f
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
jl 0x41d8e1
mov dword [ebp - 8], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d8f3
mov ecx, dword [0x43c4ec]
push eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
call fcn.00423a6f
cmp dword [esi + 0x14ac], 0
mov ebx, 0x469c5c
mov edi, 0x464280
je 0x41dc1d
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00418486
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418486
push dword [ebp + 8]
mov ecx, esi
call fcn.0041d5df
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d94d
push dword [ebp - 0x20]
mov dword [ebp + 8], 1
call fcn.004245e4
pop ecx
push dword [ebp - 8]
call fcn.004244cb
cmp word [0x469c5c], 0
pop ecx
je 0x41db45
mov eax, dword [0x43c4ec]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x43caa8
push eax
call fcn.00409c93
and word [ebp - 0xa50], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa4e]
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push str.Software360360se5
push 0x464260
lea eax, [ebp - 0xa50]
push 0x3ff
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
lea eax, [ebp - 0xa50]
push 0x464254
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, 0x464248
lea eax, [ebp - 8]
push edi
push ebx
push 0x43f45c
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418486
lea ecx, [ebp - 0x2c]
call fcn.00404beb
lea ecx, [ebp - 4]
call fcn.00404beb
push 0
push dword [ebp - 0x14]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
lea eax, [ebp - 8]
push 0x464230
push ebx
push 0x43f45c
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418486
lea ecx, [ebp - 4]
call fcn.00404beb
lea ecx, [ebp - 0x2c]
call fcn.00404beb
push 0x464228
push dword [ebp - 0x28]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
lea eax, [ebp - 8]
push edi
push ebx
push 0x464220
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00418486
lea ecx, [ebp - 4]
call fcn.00404beb
lea ecx, [ebp - 0x2c]
call fcn.00404beb
lea edi, [esi + 0x4c]
push 0x4641fc
lea eax, [ebp - 4]
push edi
push eax
call fcn.00418486
mov eax, dword [eax]
push 0
push dword [ebp - 0x24]
push eax
call fcn.00424fb7
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00404beb
lea eax, [ebp - 8]
push 0x4641e4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00418486
push 0x4641d0
lea eax, [ebp - 4]
push edi
push eax
call fcn.00418486
mov eax, dword [eax]
push 0x4641c0
push dword [ebp - 0x10]
push eax
call fcn.00424fb7
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00404beb
lea ecx, [ebp - 0x10]
call fcn.00404beb
lea ecx, [ebp - 0x24]
call fcn.00404beb
lea ecx, [ebp - 0x28]
call fcn.00404beb
lea ecx, [ebp - 0x14]
call fcn.00404beb
lea ecx, [ebp - 0x18]
call fcn.00404beb
mov edi, 0x464280
jmp 0x41dc0d
push 0
push dword [ebp - 0xc]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
lea eax, [ebp - 8]
push 0x464198
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00418486
push 0x464228
push dword [ebp - 0x24]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
lea eax, [ebp - 8]
push 0x464178
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418486
lea eax, [esi + 0x4c]
push 0x4641fc
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
mov eax, dword [eax]
push 0
push dword [ebp - 0x28]
push eax
call fcn.00424fb7
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00404beb
lea eax, [ebp - 8]
push 0x4641e4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418486
lea eax, [esi + 0x4c]
push 0x4641d0
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
mov eax, dword [eax]
push 0x4641c0
push dword [ebp - 0x14]
push eax
call fcn.00424fb7
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00404beb
lea ecx, [ebp - 0x14]
call fcn.00404beb
lea ecx, [ebp - 0x28]
call fcn.00404beb
lea ecx, [ebp - 0x24]
call fcn.00404beb
lea ecx, [ebp - 0xc]
call fcn.00404beb
lea ecx, [ebp - 0x3c]
call fcn.00404beb
cmp dword [esi + 0x14b8], 0
je 0x41dd14
lea eax, [esi + 0x20]
push 0x464158
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00418486
lea eax, [esi + 0x20]
push edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00418486
lea eax, [esi + 0x24]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418486
cmp dword [ebp + 8], 0
jne 0x41dc7c
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41dc7c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dcfc
cmp word [0x469c5c], 0
je 0x41dcdc
push 0x464248
push ebx
lea eax, [esi + 0x24]
push 0x43f45c
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00418486
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418486
lea ecx, [ebp - 0x3c]
call fcn.00404beb
lea ecx, [ebp - 4]
call fcn.00404beb
push 0
push dword [ebp - 0xc]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00404beb
jmp 0x41dcec
push 0
push dword [ebp - 0x14]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
push dword [ebp - 0x10]
call ebx
lea ecx, [ebp - 0x14]
call fcn.00404beb
lea ecx, [ebp - 0x18]
call fcn.00404beb
lea ecx, [ebp - 0x10]
call fcn.00404beb
lea ebx, [esi + 0x28]
push 0x464158
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00418486
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00418486
push dword [ebp - 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dd57
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x48]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
cmp dword [esi + 4], 9
jge 0x41ddbc
cmp dword [esi + 0x14bc], 0
je 0x41ddbc
push 0x464158
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00418486
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00418486
cmp dword [ebp + 8], 0
jne 0x41dd93
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ddac
push 0
push dword [ebp - 0x10]
push dword [esi + 0x48]
call fcn.00424fb7
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.00404beb
lea ecx, [ebp - 0xc]
call fcn.00404beb
lea ecx, [ebp - 0x48]
call fcn.00404beb
lea ecx, [ebp - 0x40]
call fcn.00404beb
lea ecx, [ebp - 8]
call fcn.00404beb
lea ecx, [ebp - 0x20]
call fcn.00404beb
lea ecx, [ebp - 0x30]
call fcn.00404beb
lea ecx, [ebp - 0x44]
call fcn.00404beb
lea ecx, [ebp - 0x1c]
call fcn.00404beb
lea ecx, [ebp - 0x34]
call fcn.00404beb
lea ecx, [ebp - 0x38]
call fcn.00404beb
pop ebx
pop edi
pop esi
leave
ret 4