Function at 0x405783
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Get file attributes
Log keystrokes via polling
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x274
push ebx
push esi
push edi
push 0x40444e
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401d39
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x406dae
cmp dword [ebp - 0x1fc], 2
jne 0x406dae
cmp dword [ebp - 0x208], 5
jb 0x406dae
or dword [ebp - 0x2c], 0xffffffff
or dword [ebp - 0x28], 0xffffffff
lea ecx, [ebp - 0x3c]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x3c], 0x4166ac
xor edi, edi
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x63], 0
mov byte [ebp + 0x64], 0
call fcn.0040145c
lea ecx, [ebp - 0x84]
call fcn.0040145c
push 0x20
pop esi
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], 4
mov dword [ebp + 0x1c], 0x4163e0
call fcn.00404494
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call fcn.00404989
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402813
lea eax, [ebp - 0x6c]
push eax
call fcn.00402e47
mov ebx, dword [ebp - 0x6c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.004043e2
cmp eax, edi
pop ecx
pop ecx
je 0x4058b9
cmp word [eax], 0x3a
jne 0x4058b9
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x4058a3
mov word [0x4197d0], ax
jmp 0x4058a3
inc ebx
inc ebx
cmp word [ebx], si
ja 0x4058a1
jmp 0x4058b1
cmp ax, si
ja 0x4058b9
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x4058aa
call fcn.0040484b
push str.sfxversion
push ebx
call fcn.004043e2
test eax, eax
pop ecx
pop ecx
je 0x405903
call fcn.00404d8b
xor esi, esi
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x1c]
call fcn.004044e1
push dword [ebp - 0x84]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, esi
jmp 0x406dc5
push str.sfxwaitall
push ebx
call fcn.004043e2
cmp eax, edi
pop ecx
pop ecx
je 0x40591f
push eax
call fcn.004051c1
pop ecx
mov esi, eax
jmp 0x4058d6
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.004043e2
cmp eax, edi
pop ecx
pop ecx
je 0x40594b
mov byte [ebp + 0x65], 1
jmp 0x405941
cmp cx, si
ja 0x405949
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x40593a
mov ebx, eax
mov esi, 0x208
cmp dword [0x419880], esi
jg 0x405963
push esi
mov ecx, 0x419878
call fcn.00401176
push esi
push dword [0x419878]
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x405987
xor esi, esi
inc esi
push 6
push esi
call fcn.00408e1c
pop ecx
pop ecx
jmp 0x4058d6
mov esi, dword [0x419878]
push esi
call fcn.00401162
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41987c], eax
call fcn.004043e2
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405b45
cmp word [esi], 0x3a
je 0x4059c3
push 0x64
pop esi
jmp 0x4058d6
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405ac8
dec eax
dec eax
je 0x405ab4
dec eax
je 0x405a33
sub eax, 0xb
je 0x4059f7
sub eax, 7
jne 0x4059bb
mov esi, 0x47ba
jmp 0x4058d6
cmp word [esi + 4], 0x3a
jne 0x4058d4
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x405a2b
dec eax
je 0x405a27
dec eax
je 0x405a23
dec eax
je 0x405a1f
dec eax
jne 0x4058d4
push 7
jmp 0x4059bd
push 0x7f
jmp 0x4059bd
push 0x1f
jmp 0x4059bd
push 0x37
jmp 0x4059bd
xor esi, esi
inc esi
jmp 0x4058d6
cmp cx, 0x44
jne 0x405a74
cmp word [esi + 4], 0x3a
jne 0x4059bb
add esi, 6
jmp 0x405a5f
cmp ax, 0x3a
je 0x405a67
movzx eax, ax
push eax
mov ecx, 0x4198b8
call fcn.0040152a
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x405a49
cmp dword [0x4198bc], edi
jne 0x405a77
jmp 0x4059bb
add esi, 4
mov dword [0x4198b0], edi
cmp word [esi], 0x3a
jne 0x405a9e
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x4198b0], eax
ja 0x405a9e
cmp eax, edi
jne 0x405aa8
mov dword [0x4198b0], 0xa
mov dword [0x4198b4], 1
jmp 0x405ad6
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x4198b4], eax
jmp 0x405ad6
mov dword [0x4198b4], 2
jmp 0x405ad6
inc esi
inc esi
cmp word [esi], bx
ja 0x405ad4
jmp 0x405ae4
cmp ax, bx
ja 0x405aec
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405add
push str.sfxconfig
push esi
mov ebx, esi
call fcn.004043e2
cmp eax, edi
pop ecx
pop ecx
je 0x405b45
cmp word [eax], 0x3a
jne 0x405b0f
jmp 0x405b0d
cmp cx, 0x20
ja 0x405b17
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405b07
mov ecx, dword [ebp - 0x3c]
mov word [ecx], di
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.00404989
cmp dword [0x4198b4], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405b45
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x419878
call fcn.004013ad
mov esi, 0x419878
push esi
mov ecx, 0x41983c
call fcn.004013ad
mov edi, 0x419848
push esi
mov ecx, edi
call fcn.004013ad
push esi
call fcn.00403138
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405bfd
mov ecx, dword [0x41983c]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x419840], eax
mov eax, dword [0x419878]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401374
mov eax, dword [0x419878]
lea eax, [esi + eax + 2]
mov esi, 0x419860
push eax
mov ecx, esi
call fcn.00401374
push 0x2e
mov ecx, esi
call fcn.00402849
test eax, eax
jle 0x405bca
mov ecx, dword [0x419860]
and word [ecx + eax*2], 0
mov dword [0x419864], eax
push esi
mov esi, 0x419854
mov ecx, esi
call fcn.004013ad
push 4
call fcn.0040219f
pop ecx
push eax
mov ecx, esi
call fcn.00402813
mov eax, dword [0x419860]
mov dword [0x419800], eax
mov eax, dword [0x419854]
mov dword [0x419808], eax
xor esi, esi
call fcn.004023b8
push eax
mov ecx, 0x41986c
call fcn.00401374
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405c25
mov ecx, eax
call fcn.004046bd
mov dword [ebp + 0x58], eax
jmp 0x405c28
mov dword [ebp + 0x58], esi
push dword [ebp + 0x58]
lea ecx, [ebp + 0x5c]
call fcn.0040ef7a
push dword [0x419878]
mov ecx, dword [ebp + 0x58]
call fcn.0040cf8f
test al, al
jne 0x405c6b
push dword [0x419878]
push 7
push 1
call fcn.00408e1c
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, esi
je 0x405c64
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x4059bd
lea ecx, [ebp + 0x30]
call fcn.00402874
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x30]
push eax
push edi
call fcn.00403d03
test al, al
pop ecx
pop ecx
jne 0x405caa
push 9
push esi
call fcn.00408e1c
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405ca3
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x4059bd
cmp dword [0x4198b4], esi
jne 0x405d3c
push str.sfxconfig
push ebx
call fcn.004043e2
cmp eax, esi
pop ecx
pop ecx
je 0x405d3c
cmp word [eax], 0x3a
jne 0x405ccf
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405d20
cmp cx, 0x20
ja 0x405ce7
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405cd7
cmp word [eax], si
je 0x405d20
lea ecx, [ebp + 0x30]
push ecx
push eax
call fcn.00405506
test al, al
pop ecx
pop ecx
jne 0x405d20
push 0xa
push esi
call fcn.00408e1c
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405d19
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x4059bd
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x4058d4
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4058d4
lea ecx, [ebp + 0x1c]
call fcn.0040ce00
cmp dword [ebp + 0x34], esi
je 0x405d69
push esi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00403471
add esp, 0xc
test al, al
jne 0x405d69
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405d0f
cmp dword [0x4198b4], 4
je 0x405d20
mov eax, dword [0x419090]
mov esi, 0x419090
jmp 0x405ddf
push eax
lea eax, [ebp - 0xf8]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.0040145c
lea ecx, [ebp - 0x48]
call fcn.0040145c
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401374
push dword [esi]
call fcn.0040219f
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401374
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4193cc
call fcn.0040334a
lea ecx, [ebp - 0x54]
add esi, 0x10
call fcn.00402703
mov eax, dword [esi]
test eax, eax
jne 0x405d7e
lea eax, [ebp + 0x1c]
push eax
call fcn.004049f8
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x18], ebx
cmp word [ebx], di
jbe 0x405e0d
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405dfa
jmp 0x405e0a
cmp ax, di
ja 0x405e15
inc ebx
inc ebx
mov dword [ebp + 0x18], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405e03
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405e28
cmp ax, 0x2d
jne 0x40606d
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x406067
push 0x4168f4
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405e92
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405e58
cmp ax, 0x39
jbe 0x405e70
cmp ax, 0x61
jb 0x405e64
cmp ax, 0x7a
jbe 0x405e70
cmp ax, 0x41
jb 0x405e80
cmp ax, 0x5a
ja 0x405e80
mov dword [ebp + 0x3c], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405df5
cmp ax, di
ja 0x40606d
mov dword [ebp + 0x3c], 0x4166ac
jmp 0x405e73
push 0x4168ec
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405eb5
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405ffb
push 0x4168e4
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405ef9
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40606d
cmp cx, 0x32
ja 0x40606d
cmp word [ebx + 8], di
ja 0x40606d
lea ecx, [ebp + 0x1c]
push ecx
push eax
push str.GUIMode
jmp 0x405ffb
push 0x4168dc
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405f1c
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405ffb
push 0x4168d4
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405f3f
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405ffb
push 0x4168cc
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405f7c
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405f66
cmp cx, 0x31
jne 0x40606d
cmp word [ebx + 8], di
ja 0x40606d
lea ecx, [ebp + 0x1c]
push ecx
push eax
push str.SelfDelete
jmp 0x405ffb
push 0x4168c4
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405fa0
cmp word [ebx + 6], di
ja 0x40606d
mov byte [ebp + 0x63], 1
jmp 0x405df5
push 0x4168bc
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x405fdd
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40606d
cmp cx, 0x39
ja 0x40606d
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4193a0], eax
jmp 0x405df5
push 0x4168b4
push esi
call fcn.00404205
test eax, eax
pop ecx
pop ecx
je 0x406008
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.00404c42
add esp, 0xc
jmp 0x405df5
movzx eax, word [esi]
cmp ax, 0x79
je 0x406017
cmp ax, 0x59
jne 0x406026
cmp word [ebx + 4], di
ja 0x406026
mov byte [ebp + 0x66], 1
jmp 0x405df5
cmp ax, 0x3f
je 0x406038
cmp ax, 0x68
je 0x406038
cmp ax, 0x48
jne 0x406047
cmp word [ebx + 4], di
ja 0x406047
mov byte [ebp + 0x64], 1
jmp 0x405df5
lea eax, [ebp + 0x1c]
push eax
push esi
call fcn.004045c2
test eax, eax
pop ecx
pop ecx
je 0x40606d
cmp eax, 1
je 0x4061ab
mov ebx, eax
jmp 0x405df2
add ebx, 4
mov dword [ebp + 0x18], ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.004049f8
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x4061fe
test byte [0x419810], 4
je 0x4061fe
call fcn.00402466
test eax, eax
jne 0x4061fe
lea ecx, [ebp - 8]
call fcn.0040145c
lea ecx, [ebp + 0x4c]
call fcn.0040145c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call fcn.00404989
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004027da
lea eax, [ebp - 0x24]
push eax
push edi
push str.sfxelevation
push 0x416718
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push 0x22
push eax
call fcn.004047f1
add esp, 0xc
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040482d
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401555
add esp, 0xc
push eax
lea ecx, [ebp + 0x4c]
call fcn.004013ad
push dword [ebp - 0x60]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
xor esi, esi
push esi
push 2
push dword [ebp + 0x4c]
call fcn.00404e88
add esp, 0xc
test eax, eax
push dword [ebp - 0x24]
jne 0x4061c8
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, esi
je 0x4061a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x4059bd
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
je 0x4061c1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x4058d6
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, esi
je 0x4058d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4058d6
lea eax, [ebp + 8]
push eax
mov ebx, str.SetEnvironment
lea eax, [ebp + 0x1c]
push ebx
xor esi, esi
push eax
mov dword [ebp + 8], esi
call fcn.00402719
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x4062bc
push edi
lea ecx, [ebp + 0x4c]
call fcn.004027da
push 0
push 0x3d
lea ecx, [ebp + 0x4c]
call fcn.00402a21
test eax, eax
jle 0x4062b1
mov ecx, dword [ebp + 0x4c]
lea esi, [eax + eax]
and word [esi + ecx], 0
lea ecx, [ebp - 0x54]
mov dword [ebp + 0x50], eax
call fcn.0040145c
lea ecx, [ebp - 0x48]
call fcn.0040145c
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004013ad
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401374
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4193cc
call fcn.0040334a
inc dword [ebp + 8]
lea ecx, [ebp - 0x54]
call fcn.00402703
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.00402719
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406223
jmp 0x4062ba
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
call fcn.00405459
cmp dword [0x419394], 0xffffffff
jne 0x4062d0
mov dword [0x419394], esi
cmp byte [ebp + 0x64], 0
je 0x406342
push esi
lea eax, [ebp + 0x1c]
push str.HelpText
push eax
call fcn.00402719
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x4062f8
push 0x18
call fcn.0040219f
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf0]
call fcn.004041ec
push esi
push edi
push dword [0x419800]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.00407d45
lea ecx, [ebp - 0xf0]
call fcn.00407ab8
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, esi
pop ecx
je 0x4058d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4058d4
cmp byte [ebp + 0x66], 0
je 0x406352
and dword [0x419394], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x1c]
push str.InstallPath
push eax
call fcn.00402719
add esp, 0xc
cmp eax, esi
mov edi, 0x419830
je 0x40637c
push eax
mov ecx, edi
call fcn.00401374
push edi
call fcn.004053db
push esi
lea eax, [ebp + 0x1c]
push str.BeginPromptTimeout
push eax
call fcn.00402719
add esp, 0x10
cmp eax, esi
je 0x4063a5
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41981c], eax
cmp dword [0x4198bc], esi
je 0x4063cb
lea eax, [ebp + 0x1c]
push eax
call fcn.00408fde
push dword [ebp + 0x30]
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
pop ecx
cmp eax, esi
jmp 0x4061b8
cmp dword [0x4198b4], 3
jne 0x4063df
lea eax, [ebp + 0x1c]
push eax
call fcn.00408f11
jmp 0x4063b6
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x1c]
push str.BeginPrompt
push eax
call fcn.00402719
add esp, 0xc
cmp eax, edi
je 0x406440
cmp byte [ebp + 0x66], 0
jne 0x406440
push eax
push dword [0x419800]
call fcn.004084be
test eax, eax
pop ecx
pop ecx
je 0x406564
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40642e
mov byte [ebp + 0x67], 1
cmp dword [0x41989c], edi
je 0x406440
and dword [0x419394], 0xffffff7f
lea ecx, [ebp + 0x40]
call fcn.0040145c
cmp byte [ebp + 0x67], 0
je 0x4064ca
mov edi, dword [ebp + 0x3c]
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401374
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040152a
push 0
push dword [ebp + 0x40]
lea eax, [ebp + 0x1c]
push eax
call fcn.00402719
add esp, 0xc
test eax, eax
je 0x406581
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x406494
cmp ax, 0x39
jbe 0x406451
cmp ax, 0x61
jb 0x4064a0
cmp ax, 0x7a
jbe 0x406451
cmp ax, 0x41
jb 0x4064ac
cmp ax, 0x5a
jbe 0x406451
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401374
mov eax, dword [ebp + 0x3c]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040152a
xor edi, edi
cmp dword [ebp + 0x44], edi
mov byte [ebp + 0x65], 0
jne 0x406512
push edi
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.00402719
add esp, 0xc
test eax, eax
je 0x4064f7
push ebx
lea ecx, [ebp + 0x40]
call fcn.00401374
cmp dword [ebp + 0x44], edi
mov byte [ebp + 0x65], 1
jne 0x406512
push edi
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.00402719
add esp, 0xc
test eax, eax
je 0x406512
push esi
lea ecx, [ebp + 0x40]
call fcn.00401374
cmp byte [ebp + 0x67], 0
jne 0x4065c4
cmp byte [ebp + 0x66], 0
jne 0x4065c4
mov eax, dword [0x419394]
and ax, 0xc0
cmp al, 0x80
jne 0x4065c4
push dword [0x4197f4]
push dword [0x4197f8]
call fcn.0040853c
test eax, eax
pop ecx
pop ecx
jne 0x4065c4
cmp byte [0x419820], al
push dword [ebp + 0x40]
je 0x4065b4
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4063eb
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
je 0x40657a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x4059bd
push dword [ebp + 0x40]
push 0xe
push 0
call fcn.00408e1c
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x4065ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x4059bd
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40656c
cmp dword [0x419834], edi
jne 0x4065fa
lea eax, [ebp - 0x78]
push str.7ZipSfx._03x
push eax
call fcn.00404513
pop ecx
pop ecx
mov esi, 0x419830
push eax
mov ecx, esi
call fcn.004013ad
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x4197e4], 0
jmp 0x406631
mov esi, 0x419830
push esi
lea ecx, [ebp + 0x4c]
call fcn.00401342
lea eax, [ebp + 0x4c]
push eax
call fcn.004053db
cmp dword [ebp + 0x50], edi
pop ecx
jne 0x406622
lea eax, [ebp + 0x4c]
push eax
mov ecx, esi
call fcn.004013ad
push dword [ebp + 0x4c]
mov byte [0x4197e4], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x419830]
pop ecx
mov ecx, dword [0x419834]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x40664e
cmp dx, 0x2f
jne 0x406659
dec ecx
mov word [eax + ecx*2], di
mov dword [0x419834], ecx
cmp byte [ebp + 0x66], 0
je 0x406666
or dword [0x419810], 3
cmp dword [0x4198b0], edi
jne 0x40667b
push esi
push dword [ebp + 0x58]
call fcn.00401730
pop ecx
pop ecx
jmp 0x406689
call fcn.0040857c
test eax, eax
jne 0x4066b8
mov eax, 0x80004005
cmp eax, edi
je 0x4066b8
call fcn.0040447e
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
pop ecx
je 0x4066b1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x4059bd
call fcn.00405459
cmp byte [ebp + 0x63], 0
je 0x4066d0
cmp byte [0x4197e4], 0
jne 0x406cae
lea ecx, [ebp + 0x4c]
mov dword [ebp + 4], edi
call fcn.0040145c
cmp byte [ebp + 0x67], 0
jne 0x4066f0
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004054b0
pop ecx
pop ecx
mov eax, dword [ebp + 0x3c]
mov byte [ebp + 0x67], 0
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov byte [ebp + 0x64], 0
call fcn.0040145c
lea ecx, [ebp - 0x14]
call fcn.0040145c
cmp dword [ebp + 0x44], edi
mov dword [ebp + 0x58], edi
jne 0x4067c1
cmp byte [0x4197e4], 0
jne 0x406b44
mov edi, str.setup.exe
push edi
push 0x41572c
lea eax, [ebp - 0x9c]
push 0x419830
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
call fcn.004013ad
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x9c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406b5b
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp - 0x14]
call fcn.00401374
lea eax, [ebp - 0x14]
push eax
call fcn.00405436
mov esi, dword [ebp - 0x14]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
je 0x406847
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x4067a2
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x40]
lea eax, [ebp + 0x1c]
push eax
call fcn.00402719
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40678a
mov esi, dword [ebp - 0x30]
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x30], esi
jb 0x4067f1
cmp ax, 0x39
jbe 0x406811
cmp ax, 0x61
jb 0x4067fd
cmp ax, 0x7a
jbe 0x406811
cmp ax, 0x41
jb 0x406baa
cmp ax, 0x5a
ja 0x406baa
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401374
movzx eax, word [esi]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040152a
push dword [ebp - 0x14]
and dword [ebp + 4], 0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor edi, edi
jmp 0x4066fa
push ebx
push str.hidcon
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
je 0x406865
or dword [ebp + 0x58], 1
mov esi, eax
jmp 0x4067a2
push ebx
push str.nowait
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
je 0x406889
cmp byte [0x4197e4], 0
mov esi, eax
je 0x4067a2
jmp 0x40689e
push ebx
push str.forcenowait
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
je 0x4068aa
mov esi, eax
or dword [ebp + 0x58], 0x10000
jmp 0x4067a2
push 2
push 0x4168bc
push esi
call fcn.0040423f
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x4068e0
cmp dword [0x4193a0], 0xffffffff
jne 0x4068d9
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4193a0], eax
mov esi, edi
jmp 0x4067a2
push 3
push 0x416834
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
je 0x406900
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x2c], ecx
jmp 0x40691e
push 3
push 0x41682c
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
je 0x406925
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x28], ecx
mov esi, eax
jmp 0x4067a2
push ebx
push 0x41557c
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
jne 0x40697f
push ebx
push str.i386
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
jne 0x40697f
push ebx
push 0x416814
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
jne 0x406971
push ebx
push 0x415574
push esi
call fcn.0040423f
add esp, 0xc
cmp eax, ebx
je 0x40698d
mov esi, eax
mov dword [ebp - 0x18], 2
jmp 0x4067a2
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x4067a2
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 0xc]
je 0x4069e8
cmp word [esi], 0x22
je 0x4069bb
mov edi, 0x4166a0
push edi
call fcn.00401374
push esi
lea ecx, [ebp + 0xc]
call fcn.00402813
push edi
lea ecx, [ebp + 0xc]
call fcn.00402813
jmp 0x4069c1
push esi
call fcn.00401374
push ebx
lea eax, [ebp + 0x1c]
push str.ExecuteParameters
push eax
call fcn.00402719
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4069fa
push 0x416810
lea ecx, [ebp + 0xc]
call fcn.00402813
jmp 0x4069f1
lea eax, [ebp + 0x4c]
push eax
call fcn.004013ad
push esi
lea ecx, [ebp + 0xc]
call fcn.00402813
lea ecx, [ebp - 8]
call fcn.0040145c
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push edi
call fcn.00404989
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004027da
lea eax, [ebp - 8]
push eax
call fcn.00405436
cmp dword [0x4198b4], ebx
pop ecx
jne 0x406afe
push dword [ebp - 0x18]
call fcn.00402435
test eax, eax
pop ecx
je 0x406afe
mov esi, dword [ebp + 0x18]
cmp word [esi], bx
je 0x406a61
push esi
lea ecx, [ebp - 0x24]
call fcn.00402813
cmp word [esi], bx
je 0x406a61
inc esi
inc esi
cmp word [esi], bx
jne 0x406a57
mov dword [ebp + 0x18], esi
lea eax, [ebp - 0x24]
push eax
call fcn.00405436
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x406ae0
lea eax, [ebp - 0x24]
push eax
push 0x416738
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x22
push eax
call fcn.004047f1
add esp, 0xc
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040480f
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401555
push dword [ebp - 0x90]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x419830]
push dword [ebp + 0x58]
push dword [ebp - 0x60]
call fcn.00404e88
add esp, 0x20
test eax, eax
push dword [ebp - 0x60]
je 0x406bc1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406af9
push dword [ebp + 0x58]
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.00404f5f
add esp, 0xc
cmp eax, ebx
jne 0x406bc9
call fcn.004023cd
cmp byte [ebp + 0x65], 0
jne 0x406c2c
cmp byte [ebp + 0x67], 0
jne 0x406c2c
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x50], ebx
mov word [eax], bx
push dword [ebp - 0x24]
inc dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x406840
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406c4f
call fcn.0040447e
push 0xf
push 0
call fcn.00408e1c
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x1c
test eax, eax
je 0x405a1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405a1b
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406c4d
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406bd0
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push 0x10
push 1
call fcn.00408e1c
call fcn.0040447e
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x28
cmp eax, ebx
je 0x406c25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x4059bd
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor edi, edi
cmp dword [0x4198b4], edi
jne 0x406ca5
call fcn.00405459
push dword [ebp - 0x2c]
lea eax, [ebp + 0x1c]
push dword [ebp + 0x3c]
push str.Shortcut
push eax
push 0x405689
call fcn.00404ca0
add esp, 0x14
push dword [0x41983c]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push dword [ebp - 0x28]
lea eax, [ebp + 0x1c]
push dword [ebp + 0x3c]
push str.Delete
push eax
push 0x405754
call fcn.00404ca0
add esp, 0x14
call fcn.0040447e
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x4193a0], 0xffffffff
jne 0x406cc3
cmp byte [ebp + 0x66], 0
jne 0x406d22
mov dword [0x4193a0], edi
cmp dword [0x4193a0], edi
jl 0x406d22
push 0
lea eax, [ebp + 0x1c]
push str.FinishMessage
push eax
call fcn.00402719
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406d22
mov eax, 0x3e7
cmp dword [0x4193a0], eax
jle 0x406cf6
mov dword [0x4193a0], eax
lea ecx, [ebp - 0xec]
call fcn.00404465
push 0
push edi
push dword [0x419800]
lea ecx, [ebp - 0xec]
push 0x11
call fcn.00407d45
lea ecx, [ebp - 0xec]
call fcn.00407ab8
cmp byte [ebp + 0x63], 0
jne 0x406d65
cmp dword [0x4198b4], 0
jne 0x406d65
push 0
lea eax, [ebp + 0x1c]
push str.SelfDelete
push eax
call fcn.00402719
add esp, 0xc
test eax, eax
je 0x406d65
cmp word [eax], 0x31
jne 0x406d65
sub esp, 0xc
mov ecx, esp
push 0x419878
call fcn.00401342
call fcn.0040521e
add esp, 0xc
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
pop ecx
je 0x406d84
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x1c]
call fcn.004044e1
push dword [ebp - 0x84]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor eax, eax
jmp 0x406dc5
push 0x10
push str.7_Zip_SFX
push str.Sorry__this_program_requires_Microsoft_Windows_2000_or_later.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x14
pop eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10