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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f637b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x54c1b4]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call fcn.00461340
call fcn.00461420
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], cx
mov dword [esp + 0xd0], edi
xor edx, edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edi
mov word [esp + 0x50], dx
and dword [esp + 0x24], 0xfffffe00
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], edi
cmp dword [ebx + 0x108], edi
mov ecx, dword [esp + 0x34]
setne al
and ecx, 0xffffff05
or ecx, 5
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
mov byte [esp + 0x2c], al
push edi
lea edx, [esp + 0x20]
push edx
mov ecx, str.quiet
mov byte [esp + 0xd8], 4
call fcn.0041bdd0
mov esi, eax
lea eax, [esp + 0x2c]
call fcn.0041aae0
lea eax, [esp + 0x2c]
mov byte [esp + 0xd0], 3
call fcn.0041aa40
lea ecx, [esp + 0x1c]
call fcn.004132a0
mov eax, dword [esp + 0x34]
and eax, 0xffffff05
or eax, 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov byte [esp + 0x2c], 1
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.userquit
mov byte [esp + 0xd8], 5
call fcn.0041bdd0
mov esi, eax
lea eax, [esp + 0x2c]
call fcn.0041aae0
lea eax, [esp + 0x2c]
mov byte [esp + 0xd0], 3
call fcn.0041aa40
test byte [0x55012c], 1
jne 0x461c95
or dword [0x55012c], 1
mov byte [esp + 0xd0], 6
call fcn.004411c0
push 0x4f70c0
call fcn.004bd58e
add esp, 4
mov byte [esp + 0xd0], 3
push 0x550130
call fcn.00442250
test al, al
jne 0x461d94
cmp dword [0x54fec0], edi
je 0x461d46
lea ecx, [esp + 0x1c]
call fcn.00413420
mov eax, dword [0x54fee0]
cmp eax, edi
je 0x461cf3
cmp dword [eax + 8], 4
mov ebx, eax
jl 0x461cf3
push 0x51be7c
push 4
push ecx
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, str._u7b_N
mov esi, 0x19c
call fcn.0042fa10
push ebx
mov ecx, esi
call fcn.0042d670
lea eax, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.0041aa40
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x461d1c
mov eax, dword [esp + 0x50]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
cmp dword [esp + 0x80], esi
jb 0x4626b4
mov edx, dword [esp + 0x6c]
push edx
jmp 0x4626ac
mov eax, dword [0x54fee0]
cmp eax, edi
je 0x461d7d
cmp dword [eax + 8], 2
mov edi, eax
jl 0x461d7d
push 0x51be7c
push 2
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov ecx, 0x51c2e8
mov esi, 0x19f
call fcn.0042fa10
push edi
mov ecx, esi
call fcn.0042d670
push 0xa
push 0x51c2e8
lea ecx, [esp + 0x74]
call fcn.00408810
xor edi, edi
jmp 0x4623d5
lea edi, [esp + 0x88]
call fcn.0040f010
lea esi, [ebx + 0xc4]
mov edi, eax
mov byte [esp + 0xd0], 7
call fcn.00407a10
mov byte [esp + 0xd0], 3
cmp dword [esp + 0x9c], 8
jb 0x461dd7
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004bb4d8
add esp, 4
lea eax, [ebx + 0xc4]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x461de9
mov eax, dword [eax]
push eax
xor edi, edi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x70]
push eax
push ebx
call fcn.004626e0
cmp dword [0x54fec0], edi
je 0x461ea0
lea ecx, [esp + 0x1c]
call fcn.00413420
mov eax, dword [0x54fee0]
cmp eax, edi
je 0x461e52
cmp dword [eax + 8], 4
mov ebx, eax
jl 0x461e52
push 0x51be7c
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, str._u7b_N
mov esi, 0x1ad
call fcn.0042fa10
push ebx
mov ecx, esi
call fcn.0042d670
lea esi, [edi + 8]
lea eax, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.0041aa40
cmp dword [esp + 0x64], esi
jb 0x461e76
mov edx, dword [esp + 0x50]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
cmp dword [esp + 0x80], esi
jb 0x4626b4
mov ecx, dword [esp + 0x6c]
push ecx
jmp 0x4626ac
test al, al
jne 0x461ee3
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x461eb5
lea eax, [esp + 0x6c]
push eax
push 0x51c300
push 0x51be7c
mov edx, 0x1b2
mov esi, 2
mov eax, 0x54fee0
call fcn.0042c610
mov dword [esp + 0x24], edi
add esp, 0xc
lea edi, [esi + 6]
jmp 0x4623b8
mov eax, dword [ebx + 0x98]
cmp eax, edi
je 0x461f09
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebx + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x98], edi
cmp dword [ebx + 0x8c], esi
lea edi, [ebx + 0x78]
jb 0x461f18
mov eax, dword [edi]
jmp 0x461f1a
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461f75
push 3
push 0x51c00c
lea ecx, [esp + 0x58]
call fcn.00408810
push 0xa
push 0x51c014
lea ecx, [esp + 0x74]
call fcn.00408810
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x461f53
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x461f64
lea eax, [esp + 0x6c]
push ecx
push eax
push 0x51c320
mov edx, 0x1c4
jmp 0x46201c
xor eax, eax
lea esi, [esp + 0xa4]
mov edx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
call fcn.0045fa20
push 0x54fec0
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
mov byte [esp + 0xdc], 8
call fcn.00402910
add esp, 0xc
test al, al
mov ecx, esi
sete byte [esp + 0x17]
mov byte [esp + 0xd0], 3
call fcn.00407bb0
cmp byte [esp + 0x17], 0
je 0x46203b
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x461fdb
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x50]
push eax
mov edx, 0x51c074
call fcn.00408960
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x461fff
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x462010
lea eax, [esp + 0x6c]
push ecx
push eax
push 0x51c368
mov edx, 0x1d1
push 0x51be7c
mov esi, 2
mov eax, 0x54fee0
call fcn.0042c610
mov dword [esp + 0x28], 0
add esp, 0x10
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x462065
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x94], 0
lea edi, [ebx + 0x5c]
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x462076
mov eax, dword [edi]
jmp 0x462078
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4620d3
push 3
push 0x51c00c
lea ecx, [esp + 0x58]
call fcn.00408810
push 7
push 0x51c0c4
lea ecx, [esp + 0x74]
call fcn.00408810
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x4620b1
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x4620c2
lea eax, [esp + 0x6c]
push ecx
push eax
push 0x51c0d4
mov edx, 0x1e7
jmp 0x46217a
xor eax, eax
lea esi, [esp + 0xa4]
mov edx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
call fcn.0045fa20
push 0x54fec0
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
mov byte [esp + 0xdc], 9
call fcn.00402910
add esp, 0xc
test al, al
mov ecx, esi
sete byte [esp + 0x17]
mov byte [esp + 0xd0], 3
call fcn.00407bb0
cmp byte [esp + 0x17], 0
je 0x462199
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x462139
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x50]
push edx
mov edx, 0x51c074
call fcn.00408960
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x46215d
lea ecx, [esp + 0x50]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x80], esi
jae 0x46216e
lea eax, [esp + 0x6c]
push ecx
push eax
push 0x51c110
mov edx, 0x1f4
push 0x51be7c
mov esi, 2
mov eax, 0x54fee0
call fcn.0042c610
mov dword [esp + 0x28], 0
add esp, 0x10
lea esi, [esp + 0xa4]
mov edx, ebx
call fcn.0045fa20
push eax
mov eax, str.dataconfig.ini
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xa
call fcn.004070c0
add esp, 4
mov esi, eax
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x54d674
mov byte [esp + 0xd4], 0xb
call fcn.00468170
mov edi, 8
add esp, 4
cmp dword [esi + 0x14], edi
jb 0x4621ec
mov esi, dword [esi]
cmp dword [eax + 0x14], edi
jb 0x4621f3
mov eax, dword [eax]
push esi
push eax
push str.channel
push 0x511624
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x40], edi
jb 0x462218
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
xor esi, esi
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], dx
cmp dword [esp + 0x9c], edi
jb 0x462246
mov eax, dword [esp + 0x88]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov byte [esp + 0xd0], 3
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], esi
mov word [esp + 0x88], cx
cmp dword [esp + 0xb8], edi
jb 0x462283
mov edx, dword [esp + 0xa4]
push edx
call fcn.004bb4d8
add esp, 4
lea esi, [esp + 0xa4]
mov edx, ebx
call fcn.0045fa20
push eax
mov eax, str.dataconfig.ini
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xc
call fcn.004070c0
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x4622b5
mov eax, dword [eax]
push eax
push str.MediaTaskMgr.dll
push str.MediaTaskMgrModule
push 0x511624
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x9c], edi
jb 0x4622e4
mov eax, dword [esp + 0x88]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov byte [esp + 0xd0], 3
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 0
mov word [esp + 0x88], cx
cmp dword [esp + 0xb8], edi
jb 0x462325
mov edx, dword [esp + 0xa4]
push edx
call fcn.004bb4d8
add esp, 4
lea esi, [esp + 0xa4]
mov edx, ebx
call fcn.0045fa20
push eax
mov eax, str.WEMediaPlatform.exe
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xd
call fcn.004070c0
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x462357
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x9c], edi
jb 0x462377
mov eax, dword [esp + 0x88]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov byte [esp + 0xd0], 3
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 0
mov word [esp + 0x88], cx
cmp dword [esp + 0xb8], edi
jb 0x4623b8
mov edx, dword [esp + 0xa4]
push edx
call fcn.004bb4d8
add esp, 4
cmp dword [ebx + 0xd8], edi
lea eax, [ebx + 0xc4]
jb 0x4623c8
mov eax, dword [eax]
push eax
call fcn.00402580
mov edi, dword [esp + 0x1c]
add esp, 4
test byte [0x55012c], 1
jne 0x462407
or dword [0x55012c], 1
mov byte [esp + 0xd0], 0xe
call fcn.004411c0
push 0x4f70c0
call fcn.004bd58e
add esp, 4
mov byte [esp + 0xd0], 3
cmp dword [0x54fec0], 0
mov byte [0x550314], 1
je 0x462480
lea ecx, [esp + 0x1c]
call fcn.00413420
lea eax, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.0041aa40
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x462449
mov eax, dword [esp + 0x50]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], cx
cmp dword [esp + 0x80], esi
jb 0x462476
mov edx, dword [esp + 0x6c]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, 1
jmp 0x4626b6
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [esp + 0x34]
and eax, 0xffffff05
or eax, 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov byte [esp + 0x2c], 0
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.userquit
mov byte [esp + 0xd8], 0xf
call fcn.0041bdd0
mov esi, eax
lea eax, [esp + 0x2c]
call fcn.0041aae0
lea eax, [esp + 0x2c]
mov byte [esp + 0xd0], 3
call fcn.0041aa40
lea ecx, [esp + 0x1c]
cmp edi, 1
jne 0x4624f3
call fcn.00413360
jmp 0x4624f8
call fcn.00413420
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x462511
push edi
push 0
push 0x4ce
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebx + 0x108], 0
je 0x46265e
call fcn.00448650
lea esi, [esp + 0xa4]
mov edi, eax
call fcn.0040ee00
push eax
mov eax, str.update.ini
lea ecx, [esp + 0x30]
mov byte [esp + 0xd4], 0x10
call fcn.004070c0
mov esi, 8
add esp, 4
cmp dword [esp + 0xb8], esi
jb 0x46256f
mov edx, dword [esp + 0xa4]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x46257d
lea eax, [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.HasQuietUpdate
push str.UpdateStep
push str.QuietUpdate
call esi
cmp byte [edi + 0x78], 0
mov ecx, str.true
jne 0x4625a5
mov ecx, 0x51bf50
mov eax, dword [esp + 0x2c]
mov edi, 8
cmp dword [esp + 0x40], edi
jae 0x4625b8
lea eax, [esp + 0x2c]
push eax
push ecx
push str.Force
push str.QuietUpdate
call esi
cmp dword [esp + 0x40], edi
jb 0x4625d6
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x4625de
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ecx
test byte [0x550018], 1
jne 0x462600
or dword [0x550018], 1
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
mov eax, dword [0x54ff84]
cmp dword [0x54ff98], edi
jae 0x462612
mov eax, 0x54ff84
mov edx, dword [esp + 0x18]
push edx
push eax
push str.OldVersion
push str.QuietUpdate
call esi
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], edi
jae 0x462632
lea eax, [esp + 0x2c]
add ebx, edi
cmp dword [ebx + 0x14], edi
jb 0x46263b
mov ebx, dword [ebx]
push eax
push ebx
push str.CurVersion
push str.QuietUpdate
call esi
cmp dword [esp + 0x40], edi
jb 0x462663
mov eax, dword [esp + 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
jmp 0x462663
mov edi, 8
lea eax, [esp + 0x1c]
mov byte [esp + 0xd0], 1
call fcn.0041aa40
cmp dword [esp + 0x64], edi
jb 0x462687
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], dx
cmp dword [esp + 0x80], edi
jb 0x4626b4
mov eax, dword [esp + 0x6c]
push eax
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret 4