Function at 0x405f20
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
mov dword [0x419444], eax
mov eax, dword [0x419eb8]
test eax, eax
jne 0x405f4a
mov eax, dword [0x419eb4]
test eax, eax
jne 0x405f4a
mov ecx, dword [0x419eac]
push ecx
jmp 0x405f4c
push 0
call fcn.00406bd0
mov eax, dword [0x419eb8]
add esp, 4
test eax, eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
push esi
push edi
je 0x405f7f
mov edx, dword [0x419448]
push 0x40000
push str.NovaLogic_Update_Wizard_v1.0.09v
push str.An_error_occured_during_the_update_process.__Please_correct_the_problem_and_re_run_Update.exe.
push edx
call ebx
mov eax, dword [0x419664]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x405fcf
mov eax, dword [0x419eec]
test eax, eax
jne 0x405fcf
mov eax, dword [0x419eb4]
test eax, eax
jne 0x405fcf
mov eax, dword [0x419eb8]
test eax, eax
jne 0x405fcf
mov eax, dword [0x419ed4]
test eax, eax
jne 0x405fcf
mov eax, dword [0x41944c]
test eax, eax
jne 0x405fcf
mov eax, dword [0x419448]
push 0x40000
push str.NovaLogic_Update_Wizard_v1.0.09v
push str.No_update_needed.
push eax
call ebx
mov eax, dword [0x419ec0]
test eax, eax
je 0x40600b
mov eax, dword [0x419eb8]
test eax, eax
jne 0x40600b
mov eax, dword [0x419eb4]
test eax, eax
jne 0x40600b
test byte [0x419ee8], 8
jne 0x40600b
mov eax, dword [0x41944c]
test eax, eax
jne 0x40600b
push 0
push 0x419888
call fcn.00402540
add esp, 8
mov eax, dword [0x419ed4]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov edi, 1
je 0x40602c
push 0x419688
call esi
mov dword [0x419444], edi
mov eax, dword [0x419eb4]
test eax, eax
je 0x40603b
mov dword [0x419444], edi
mov eax, dword [0x419eb8]
test eax, eax
je 0x40604e
mov dword [0x419444], 2
push str._tmpfile.___
call esi
push str._tmpexec.___
call esi
push str.update.lst
call esi
mov eax, dword [0x41944c]
test eax, eax
je 0x4061c5
cmp dword [0x419664], ebp
je 0x40616d
push str.This_process_will_attempt_to_close__s_if_open.
lea ecx, [esp + 0x14]
push 0x415074
push ecx
call fcn.004080ec
push 0x419908
lea edx, [esp + 0x20]
push 0x419908
push edx
push 0x419340
call fcn.004080ec
push 0x419340
push str.A_new_version_of_the_Update_Wizard_has_been_downloaded.__The_new_Update_Wizard_will_now_run.
lea eax, [esp + 0x34]
push str._s__s
push eax
call fcn.004080ec
mov edx, dword [0x419448]
add esp, 0x2c
lea ecx, [esp + 0x10]
push 0x40000
push str.NovaLogic_Update_Wizard_v1.0.09v
push ecx
push edx
call ebx
mov eax, dword [0x419664]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
mov esi, 5
mov ecx, dword [0x419664]
push ecx
call ebp
test eax, eax
je 0x40611e
push 0xbb8
call edi
dec esi
jne 0x406107
mov edx, dword [0x419664]
push edx
call ebp
test eax, eax
je 0x406185
push str.Attempts_to_close_down__s_have_failed._Please_close_down__s.
lea eax, [esp + 0x14]
push 0x415074
push eax
call fcn.004080ec
push 0x419908
lea ecx, [esp + 0x20]
push 0x419908
push ecx
push 0x419340
call fcn.004080ec
add esp, 0x1c
push 0
push str.NovaLogic_Update_Wizard_v1.0.09v
push 0x419340
push 0
call ebx
jmp 0x406102
mov edx, dword [0x419448]
push 0x40000
push str.NovaLogic_Update_Wizard_v1.0.09v
push str.A_new_version_of_the_Update_Wizard_has_been_downloaded.__The_new_Update_Wizard_will_now_run.
push edx
call ebx
test byte [0x419ee8], 0x10
jne 0x4061b1
push 0x419460
lea eax, [esp + 0x14]
push str.revupdat.exe__RUN__s
push eax
call fcn.004080ec
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00402540
add esp, 0x14
push 0
call fcn.00406bd0
add esp, 4
mov dword [0x419444], 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret