Function at 0x414820
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43f114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x954
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, ecx
push str.SierraUpRestarter.exe
call edi
push 0x441d10
call edi
mov ecx, esi
call fcn.00412310
lea eax, [esp + 0x20]
push 0x2372
push eax
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x96c], ebx
jne 0x414885
mov eax, 0x44167c
push eax
push esi
call fcn.0040f300
add esp, 8
or ebp, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x96c], ebp
push 1
call fcn.00417e30
push ebx
push 1
call sub.SierraPt.dll_SP_CheckForPatch
mov edi, eax
add esp, 8
cmp edi, 0xfffffffa
jne 0x4148c7
mov ecx, dword [esp + 0x974]
xor al, al
mov byte [ecx], 1
jmp 0x414da6
cmp edi, ebx
jge 0x414a6b
cmp edi, 0xfffffffc
jne 0x414a1e
lea edx, [esp + 0x10]
mov ecx, 0x44f200
push edx
call fcn.00416560
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 1
cmp eax, ebx
mov ebx, 0x44167c
je 0x414900
mov ebx, eax
lea eax, [esp + 0x40]
mov ecx, 0x44f200
push eax
call fcn.00416560
mov eax, dword [eax + 4]
mov byte [esp + 0x96c], 2
test eax, eax
mov ebp, 0x44167c
je 0x414925
mov ebp, eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x44f200
call fcn.004166a0
mov edi, dword [eax + 4]
mov byte [esp + 0x96c], 3
test edi, edi
jne 0x414948
mov edi, 0x44167c
lea edx, [esp + 0x20]
push 0x2374
push edx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
test eax, eax
jne 0x414968
mov eax, 0x44167c
push ebx
push ebp
push edi
push eax
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x20]
push 1
call fcn.00417e30
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x970], 2
call fcn.00417e30
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x970], 1
call fcn.00417e30
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x970], 0xffffffff
call fcn.00417e30
lea ecx, [esp + 0x164]
push ecx
push esi
call fcn.0040f300
add esp, 8
lea edx, [esp + 0x10]
mov ecx, 0x44f200
push 0x235f
push edx
call fcn.00402690
mov eax, dword [eax + 4]
test eax, eax
jne 0x4149f5
mov eax, 0x44167c
mov ecx, dword [esi + 0x1c]
push 0
push eax
lea eax, [esp + 0x16c]
push eax
push ecx
call sub.SierraPt.dll_SP_MessageBox
add esp, 0x10
lea ecx, [esp + 0x10]
push 1
call fcn.00417e30
xor al, al
jmp 0x414da6
lea edx, [esp + 0x10]
push 0x235f
push edx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 4
cmp eax, ebx
jne 0x414a49
mov eax, 0x44167c
push eax
push edi
mov ecx, esi
call fcn.00413df0
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x970], ebp
call fcn.00417e30
xor al, al
jmp 0x414da6
je 0x414d34
lea eax, [esp + 0x10]
push 0x2360
push eax
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 5
cmp eax, ebx
jne 0x414a9c
mov eax, 0x44167c
push eax
push esi
call fcn.0040f300
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x96c], ebp
push 1
call fcn.00417e30
call sub.SierraPt.dll_SP_DownloadPatch
mov edi, eax
cmp edi, 0xfffffffa
jne 0x414ad5
mov ecx, dword [esp + 0x974]
xor al, al
mov byte [ecx], 1
jmp 0x414da6
cmp edi, ebx
jge 0x414b71
lea edx, [esp + 0x10]
push 0x2361
push edx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 6
cmp eax, ebx
jne 0x414b08
mov eax, 0x44167c
push eax
push esi
call fcn.0040f300
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x96c], ebp
push 1
call fcn.00417e30
lea eax, [esp + 0x10]
push 0x2361
push eax
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 7
cmp eax, ebx
jne 0x414b4f
mov eax, 0x44167c
push eax
push edi
mov ecx, esi
call fcn.00413df0
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x970], ebp
call fcn.00417e30
xor al, al
jmp 0x414da6
lea ecx, [esp + 0x10]
push 0x2362
push ecx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 8
cmp eax, ebx
jne 0x414b9c
mov eax, 0x44167c
push eax
push esi
call fcn.0040f300
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x96c], ebp
push 1
call fcn.00417e30
lea edx, [esp + 0x60]
push 0x104
push edx
call sub.SierraPt.dll_SP_GetPatchFile
add esp, 8
lea eax, [esp + 0x10]
mov ecx, 0x44f200
push 0x2360
push eax
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 9
cmp eax, ebx
mov edi, 0x44167c
je 0x414bf7
mov edi, eax
lea ecx, [esp + 0x20]
push 0x2373
push ecx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x414c17
mov eax, 0x44167c
mov edx, dword [esi + 0x1c]
push 1
push edi
push eax
push edx
call sub.SierraPt.dll_SP_MessageBox
add esp, 0x10
cmp eax, 2
mov eax, dword [esp + 0x24]
sete bl
xor edi, edi
cmp eax, edi
je 0x414c50
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414c47
dec al
mov byte [ecx], al
jmp 0x414c50
push ecx
call fcn.00439dae
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edi
cmp eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x96c], ebp
je 0x414c84
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414c7b
dec al
mov byte [ecx], al
jmp 0x414c84
push ecx
call fcn.00439dae
add esp, 4
test bl, bl
je 0x414cfc
lea eax, [esp + 0x60]
push eax
push str.User_downloaded_but_skipped_application_of_update_file:__s__n
call fcn.00406da0
add esp, 8
lea ecx, [esp + 0x10]
push 0x2361
push ecx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 0xa
cmp eax, edi
jne 0x414cc5
mov eax, 0x44167c
push eax
push 0xfffffffffffffffe
mov ecx, esi
call fcn.00413df0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x414cf5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414cec
dec al
mov byte [ecx], al
xor al, al
jmp 0x414da6
push ecx
call fcn.00439dae
add esp, 4
xor al, al
jmp 0x414da6
mov ecx, esi
call fcn.00412820
mov ecx, esi
call fcn.00412aa0
test al, al
je 0x414da6
lea edx, [esp + 0x60]
mov ecx, esi
push edx
call fcn.00412c80
test al, al
je 0x414da6
mov eax, dword [esp + 0x974]
mov byte [eax], 1
xor al, al
jmp 0x414da6
lea ecx, [esp + 0x30]
push 0x2371
push ecx
mov ecx, 0x44f200
call fcn.00402690
mov eax, dword [eax + 4]
mov dword [esp + 0x96c], 0xb
cmp eax, ebx
jne 0x414d5f
mov eax, 0x44167c
push eax
push esi
call fcn.0040f300
mov eax, dword [esp + 0x3c]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x96c], ebp
je 0x414d91
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414d88
dec al
mov byte [ecx], al
jmp 0x414d91
push ecx
call fcn.00439dae
add esp, 4
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00412560
mov al, 1
mov ecx, dword [esp + 0x964]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x960
ret 4