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

Disassembly:
push 0xffffffffffffffff
push 0x4ab972
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xcc]
mov edi, ecx
mov esi, dword [edi + 4]
xor ebx, ebx
cmp esi, dword [edi + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
jbe 0x4163f7
call fcn.00484029
mov ebp, edi
mov dword [esp + 0x54], esi
lea ecx, [ecx]
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x41640d
call fcn.00484029
cmp ebp, ebx
je 0x416415
cmp ebp, edi
je 0x41641a
call fcn.00484029
cmp dword [esp + 0x54], esi
je 0x416a4d
cmp ebp, ebx
jne 0x41642d
call fcn.00484029
mov ecx, dword [esp + 0x54]
cmp ecx, dword [ebp + 8]
jb 0x41643b
call fcn.00484029
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
mov edx, dword [eax]
call fcn.00413d80
mov ebp, 8
mov dword [esp + 0xc4], ebx
cmp dword [eax + 0x18], ebp
jb 0x416465
mov edx, dword [eax + 4]
jmp 0x416468
lea edx, [eax + 4]
mov edi, 7
mov eax, edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
lea esi, [eax + 2]
jmp 0x416490
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416490
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x84]
call fcn.00406d50
mov byte [esp + 0xc4], 2
cmp dword [esp + 0x4c], ebp
jb 0x4164c8
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x94], ebp
mov eax, dword [esp + 0x80]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jae 0x4164ec
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4166db
cmp dword [esp + 0x94], ebp
mov eax, dword [esp + 0x80]
jae 0x416512
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41652b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
cmp dword [esp + 0xd0], ebx
jne 0x4165bd
cmp dword [esp + 0x94], ebp
mov edx, dword [esp + 0x80]
jae 0x41654f
lea edx, [esp + 0x80]
mov eax, edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416561
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x68]
call fcn.00406d50
mov ecx, esi
mov byte [esp + 0xc4], 3
call fcn.00419a20
test eax, eax
je 0x4169ea
cmp dword [esp + 0x78], ebp
mov eax, dword [esp + 0x64]
jae 0x4165a0
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00419500
cmp dword [esp + 0x78], ebp
jb 0x4165bd
mov edx, dword [esp + 0x64]
push edx
call fcn.004692b1
add esp, 4
cmp byte [esp + 0xd4], bl
jne 0x41664a
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x64], 1
jne 0x41664a
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x84]
lea ecx, [esp + 0x68]
mov byte [esp + 0xcc], 4
call fcn.00406430
push 0x5c
push 0x2f
lea edi, [esp + 0x68]
call fcn.00401c00
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xcc]
mov ecx, dword [esp + 0x6c]
add esp, 8
cmp dword [esp + 0x78], ebp
jae 0x416624
lea ecx, [esp + 0x64]
add eax, 0x70
push eax
mov edx, str.Files
call fcn.0042cd70
cmp dword [esp + 0x78], ebp
jb 0x416645
mov edx, dword [esp + 0x64]
push edx
call fcn.004692b1
add esp, 4
mov edi, 7
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x64], 2
jne 0x4166db
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov esi, dword [esp + 0x20]
mov byte [esp + 0xc4], 5
mov edi, dword [esp + 0x54]
mov eax, esi
cmp edi, dword [eax + 8]
jb 0x416681
call fcn.00484029
mov eax, dword [edi]
push 0xffffffffffffffff
add eax, 0x2c
push ebx
lea ecx, [esp + 0x68]
call fcn.00406430
push 0x5c
push 0x2f
lea edi, [esp + 0x68]
call fcn.00401c00
mov eax, esi
mov esi, dword [esp + 0x5c]
add esp, 8
cmp esi, dword [eax + 8]
jb 0x4166b2
call fcn.00484029
mov ecx, dword [esi]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x64]
push edx
call fcn.00420400
cmp dword [esp + 0x78], ebp
jb 0x4166d6
mov eax, dword [esp + 0x64]
push eax
call fcn.004692b1
add esp, 4
mov edi, 7
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
mov byte [esp + 0xc4], 7
push 1
push 0x4b3a90
lea esi, [esp + 0x68]
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00406d50
mov ecx, esi
push ecx
lea esi, [esp + 0x28]
mov byte [esp + 0xc8], 8
call fcn.004062b0
mov byte [esp + 0xc4], 7
cmp dword [esp + 0x78], ebp
jb 0x416754
mov edx, dword [esp + 0x64]
push edx
call fcn.004692b1
add esp, 4
lea eax, [esp + 0x7c]
push eax
lea esi, [esp + 0x28]
call fcn.004062b0
cmp dword [esp + 0x18], 1
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
lea esi, [esp + 0x60]
jne 0x4167ae
push edi
push str.success
call fcn.00406d50
mov ecx, esi
push ecx
lea esi, [esp + 0x28]
mov byte [esp + 0xc8], 9
call fcn.004062b0
mov byte [esp + 0xc4], 7
cmp dword [esp + 0x78], ebp
jb 0x4167eb
mov edx, dword [esp + 0x64]
push edx
jmp 0x4167e3
push 5
push str.error
call fcn.00406d50
lea eax, [esp + 0x60]
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0xc8], 0xa
call fcn.004062b0
mov byte [esp + 0xc4], 7
cmp dword [esp + 0x78], ebp
jb 0x4167eb
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004692b1
add esp, 4
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
call fcn.004451b0
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0xc8], 0xb
call fcn.004062b0
mov byte [esp + 0xc4], 7
cmp dword [esp + 0x4c], ebp
jb 0x416825
mov edx, dword [esp + 0x38]
push edx
call fcn.004692b1
add esp, 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call fcn.0043e6a0
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xcc], 0xc
call fcn.00406430
mov byte [esp + 0xc4], 7
cmp dword [esp + 0x4c], ebp
jb 0x416868
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004692b1
add esp, 4
cmp byte [esp + 0xd4], bl
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
lea esi, [esp + 0x34]
jne 0x4168c0
push 0xf
push str.DELETE_SHORTCUT
call fcn.00406d50
mov byte [esp + 0xc4], 0xd
push 2
push 0x4b3ac8
lea esi, [esp + 0x68]
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00406d50
mov byte [esp + 0xc4], 0xe
jmp 0x4168fc
push 0x16
push str.UPDATE_SHORTCUT_DELETE
call fcn.00406d50
mov byte [esp + 0xc4], 0xf
push 2
push 0x4b3ac8
lea esi, [esp + 0x68]
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00406d50
mov byte [esp + 0xc4], 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x64]
call fcn.004444d0
add esp, 4
cmp dword [esp + 0x78], ebp
jb 0x416927
mov eax, dword [esp + 0x64]
push eax
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x4c], ebp
mov word [esp + 0x64], bx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edi
jb 0x416947
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0xb0], ebp
jb 0x416960
mov edx, dword [esp + 0x9c]
push edx
call fcn.004692b1
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
je 0x41699c
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
push ecx
call fcn.00408440
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.004692b1
add esp, 4
mov dword [esp + 0xc4], 0xffffffff
cmp dword [esp + 0x94], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jb 0x4169cc
mov eax, dword [esp + 0x80]
push eax
call fcn.004692b1
add esp, 4
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
cmp ecx, dword [ebp + 8]
jb 0x4169de
call fcn.00484029
add dword [esp + 0x54], 4
mov edi, ebp
jmp 0x416400
cmp dword [esp + 0x78], ebp
jb 0x4169fd
mov edx, dword [esp + 0x64]
push edx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x94], ebp
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
jb 0x416a23
mov eax, dword [esp + 0x80]
push eax
call fcn.004692b1
add esp, 4
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00483bf3
add esp, 0xb4
ret 0xc
cmp dword [esp + 0x18], ebx
jne 0x416a23
lea ecx, [esp + 0x50]
call fcn.00483c47
push 0x4c04d0
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], vtable.CUpdaterException.0
mov dword [esp + 0x64], 0xffffffff
call fcn.0048aacb
int3