Function at 0x41d57f
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 0x41dc58
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], edi
jl 0x41d5ae
mov dword [ebp - 0x38], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d5c0
mov ecx, dword [0x43b4ec]
push eax
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
call fcn.0042366b
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], edi
jl 0x41d5d7
mov dword [ebp - 0x34], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d5e9
mov ecx, dword [0x43b4ec]
push eax
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
call fcn.0042366b
mov edi, str.360
push ebx
lea eax, [ebp - 0x38]
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418311
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.00418311
push dword [ebp - 0x44]
call ebx
mov eax, dword [0x43b4ec]
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 0x41d672
lea eax, [ebp - 0x250]
push 0x463330
push eax
lea eax, [ebp - 0x30]
push 0x43c530
push eax
call fcn.00409be5
add esp, 0x10
lea eax, [ebp - 0x30]
push str.360
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418311
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 0x41d6ca
lea eax, [ebp - 0x250]
push 0x463330
push eax
lea eax, [ebp - 0x30]
push 0x43c530
push eax
call fcn.00409be5
add esp, 0x10
lea eax, [ebp - 0x30]
push str.360
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418311
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 0x41d70a
mov dword [ebp - 0x20], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d71c
mov ecx, dword [0x43b4ec]
push eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
call fcn.0042366b
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
jl 0x41d734
mov dword [ebp - 8], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d746
mov ecx, dword [0x43b4ec]
push eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
call fcn.0042366b
cmp dword [esi + 0x14a8], 0
mov ebx, 0x468c2c
mov edi, 0x463314
je 0x41da70
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00418311
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418311
push dword [ebp + 8]
mov ecx, esi
call fcn.0041d432
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d7a0
push dword [ebp - 0x20]
mov dword [ebp + 8], 1
call fcn.004241da
pop ecx
push dword [ebp - 8]
call fcn.004240c1
cmp word [0x468c2c], 0
pop ecx
je 0x41d998
mov eax, dword [0x43b4ec]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x43baa0
push eax
call fcn.00409be5
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 str._sdefaultmain
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 str.title
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, 0x4632dc
lea eax, [ebp - 8]
push edi
push ebx
push 0x43e5b4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418311
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.00424bad
add esp, 0xc
lea eax, [ebp - 8]
push 0x4632c4
push ebx
push 0x43e5b4
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418311
lea ecx, [ebp - 4]
call fcn.00404beb
lea ecx, [ebp - 0x2c]
call fcn.00404beb
push 0x4632bc
push dword [ebp - 0x28]
push dword [esi + 0x48]
call fcn.00424bad
add esp, 0xc
lea eax, [ebp - 8]
push edi
push ebx
push 0x4632b4
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00418311
lea ecx, [ebp - 4]
call fcn.00404beb
lea ecx, [ebp - 0x2c]
call fcn.00404beb
lea edi, [esi + 0x4c]
push str.UnInst360SE.exe
lea eax, [ebp - 4]
push edi
push eax
call fcn.00418311
mov eax, dword [eax]
push 0
push dword [ebp - 0x24]
push eax
call fcn.00424bad
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00404beb
lea eax, [ebp - 8]
push 0x463278
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00418311
push str._seup.exe
lea eax, [ebp - 4]
push edi
push eax
call fcn.00418311
mov eax, dword [eax]
push str._manual
push dword [ebp - 0x10]
push eax
call fcn.00424bad
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, 0x463314
jmp 0x41da60
push 0
push dword [ebp - 0xc]
push dword [esi + 0x48]
call fcn.00424bad
add esp, 0xc
lea eax, [ebp - 8]
push 0x46322c
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00418311
push 0x4632bc
push dword [ebp - 0x24]
push dword [esi + 0x48]
call fcn.00424bad
add esp, 0xc
lea eax, [ebp - 8]
push 0x46320c
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418311
lea eax, [esi + 0x4c]
push str.UnInst360SE.exe
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418311
mov eax, dword [eax]
push 0
push dword [ebp - 0x28]
push eax
call fcn.00424bad
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00404beb
lea eax, [ebp - 8]
push 0x463278
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418311
lea eax, [esi + 0x4c]
push str._seup.exe
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418311
mov eax, dword [eax]
push str._manual
push dword [ebp - 0x14]
push eax
call fcn.00424bad
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 + 0x14b0], 0
je 0x41db67
lea eax, [esi + 0x20]
push 0x4631ec
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00418311
lea eax, [esi + 0x20]
push edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00418311
lea eax, [esi + 0x24]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00418311
cmp dword [ebp + 8], 0
jne 0x41dacf
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41dacf
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41db4f
cmp word [0x468c2c], 0
je 0x41db2f
push 0x4632dc
push ebx
lea eax, [esi + 0x24]
push 0x43e5b4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00418311
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418311
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.00424bad
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00404beb
jmp 0x41db3f
push 0
push dword [ebp - 0x14]
push dword [esi + 0x48]
call fcn.00424bad
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 0x4631ec
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00418311
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00418311
push dword [ebp - 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dbaa
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x48]
push dword [esi + 0x48]
call fcn.00424bad
add esp, 0xc
cmp dword [esi + 4], 9
jge 0x41dc0f
cmp dword [esi + 0x14b4], 0
je 0x41dc0f
push 0x4631ec
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00418311
push edi
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00418311
cmp dword [ebp + 8], 0
jne 0x41dbe6
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dbff
push 0
push dword [ebp - 0x10]
push dword [esi + 0x48]
call fcn.00424bad
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