Function at 0x405721
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 0x404464
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401d21
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406d55
cmp dword [ebp - 0x1fc], 2
jne 0x406d55
cmp dword [ebp - 0x208], 5
jb 0x406d55
or dword [ebp - 0x30], 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 + 0x38], 0x4166cc
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.00401458
lea ecx, [ebp - 0x84]
call fcn.00401458
push 0x20
pop esi
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], 4
mov dword [ebp + 0x18], 0x416400
call fcn.004044c6
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404a97
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004027c2
lea eax, [ebp - 0x6c]
push eax
call fcn.00402dd6
mov ebx, dword [ebp - 0x6c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.004043f8
cmp eax, edi
pop ecx
pop ecx
je 0x405857
cmp word [eax], 0x3a
jne 0x405857
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405841
mov word [0x4197b0], ax
jmp 0x405841
inc ebx
inc ebx
cmp word [ebx], si
ja 0x40583f
jmp 0x40584f
cmp ax, si
ja 0x405857
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x405848
call fcn.00404903
push str.sfxversion
push ebx
call fcn.004043f8
test eax, eax
pop ecx
pop ecx
je 0x4058a1
call fcn.00404e99
xor esi, esi
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.00404513
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 0x406d6c
push str.sfxwaitall
push ebx
call fcn.004043f8
cmp eax, edi
pop ecx
pop ecx
je 0x4058bd
push eax
call fcn.004052a7
pop ecx
mov esi, eax
jmp 0x405874
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.004043f8
cmp eax, edi
pop ecx
pop ecx
je 0x4058e9
mov byte [ebp + 0x65], 1
jmp 0x4058df
cmp cx, si
ja 0x4058e7
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4058d8
mov ebx, eax
mov esi, 0x208
cmp dword [0x419860], esi
jg 0x405901
push esi
mov ecx, 0x419858
call fcn.00401172
push esi
push dword [0x419858]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405925
xor esi, esi
inc esi
push 6
push esi
call fcn.00408dc3
pop ecx
pop ecx
jmp 0x405874
mov esi, dword [0x419858]
push esi
call fcn.0040115e
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41985c], eax
call fcn.004043f8
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405ae3
cmp word [esi], 0x3a
je 0x405961
push 0x64
pop esi
jmp 0x405874
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405a66
dec eax
dec eax
je 0x405a52
dec eax
je 0x4059d1
sub eax, 0xb
je 0x405995
sub eax, 7
jne 0x405959
mov esi, 0x49b5
jmp 0x405874
cmp word [esi + 4], 0x3a
jne 0x405872
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4059c9
dec eax
je 0x4059c5
dec eax
je 0x4059c1
dec eax
je 0x4059bd
dec eax
jne 0x405872
push 7
jmp 0x40595b
push 0x7f
jmp 0x40595b
push 0x1f
jmp 0x40595b
push 0x37
jmp 0x40595b
xor esi, esi
inc esi
jmp 0x405874
cmp cx, 0x44
jne 0x405a12
cmp word [esi + 4], 0x3a
jne 0x405959
add esi, 6
jmp 0x4059fd
cmp ax, 0x3a
je 0x405a05
movzx eax, ax
push eax
mov ecx, 0x419898
call fcn.00401526
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x4059e7
cmp dword [0x41989c], edi
jne 0x405a15
jmp 0x405959
add esi, 4
mov dword [0x419890], edi
cmp word [esi], 0x3a
jne 0x405a3c
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x419890], eax
ja 0x405a3c
cmp eax, edi
jne 0x405a46
mov dword [0x419890], 0xa
mov dword [0x419894], 1
jmp 0x405a74
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x419894], eax
jmp 0x405a74
mov dword [0x419894], 2
jmp 0x405a74
inc esi
inc esi
cmp word [esi], bx
ja 0x405a72
jmp 0x405a82
cmp ax, bx
ja 0x405a8a
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405a7b
push str.sfxconfig
push esi
mov ebx, esi
call fcn.004043f8
cmp eax, edi
pop ecx
pop ecx
je 0x405ae3
cmp word [eax], 0x3a
jne 0x405aad
jmp 0x405aab
cmp cx, 0x20
ja 0x405ab5
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405aa5
mov ecx, dword [ebp - 0x3c]
mov word [ecx], di
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.00404a97
cmp dword [0x419894], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405ae3
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x419858
call fcn.004013a9
mov esi, 0x419858
push esi
mov ecx, 0x41981c
call fcn.004013a9
mov edi, 0x419828
push esi
mov ecx, edi
call fcn.004013a9
push esi
call fcn.004030c7
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405b9b
mov ecx, dword [0x41981c]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x419820], eax
mov eax, dword [0x419858]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401370
mov eax, dword [0x419858]
lea eax, [esi + eax + 2]
mov esi, 0x419840
push eax
mov ecx, esi
call fcn.00401370
push 0x2e
mov ecx, esi
call fcn.004027f8
test eax, eax
jle 0x405b68
mov ecx, dword [0x419840]
and word [ecx + eax*2], 0
mov dword [0x419844], eax
push esi
mov esi, 0x419834
mov ecx, esi
call fcn.004013a9
push 4
call fcn.00402187
pop ecx
push eax
mov ecx, esi
call fcn.004027c2
mov eax, dword [0x419840]
mov dword [0x4197e0], eax
mov eax, dword [0x419834]
mov dword [0x4197e8], eax
xor esi, esi
call fcn.004023a0
push eax
mov ecx, 0x41984c
call fcn.00401370
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405bc3
mov ecx, eax
call fcn.00404775
mov dword [ebp + 0x54], eax
jmp 0x405bc6
mov dword [ebp + 0x54], esi
mov edi, dword [ebp + 0x54]
push edi
lea ecx, [ebp + 0x5c]
call fcn.0040ef5a
push dword [0x419858]
lea ecx, [edi + 0xc]
call fcn.0040c9e7
test al, al
jne 0x405c0a
push dword [0x419858]
push 7
push 1
call fcn.00408dc3
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, esi
je 0x405c03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x40595b
lea ecx, [ebp + 0x2c]
call fcn.00402823
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x2c]
push eax
push edi
call fcn.00403c93
test al, al
pop ecx
pop ecx
jne 0x405c49
push 9
push esi
call fcn.00408dc3
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405c42
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x40595b
cmp dword [0x419894], esi
jne 0x405cdb
push str.sfxconfig
push ebx
call fcn.004043f8
cmp eax, esi
pop ecx
pop ecx
je 0x405cdb
cmp word [eax], 0x3a
jne 0x405c6e
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405cbf
cmp cx, 0x20
ja 0x405c86
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405c76
cmp word [eax], si
je 0x405cbf
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.004054c1
test al, al
pop ecx
pop ecx
jne 0x405cbf
push 0xa
push esi
call fcn.00408dc3
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405cb8
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x40595b
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x405872
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x405872
lea ecx, [ebp + 0x18]
call fcn.0040cdea
cmp dword [ebp + 0x30], esi
je 0x405d08
push esi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00403400
add esp, 0xc
test al, al
jne 0x405d08
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405cae
cmp dword [0x419894], 4
je 0x405cbf
mov eax, dword [0x419090]
mov esi, 0x419090
jmp 0x405d7e
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.00401458
lea ecx, [ebp - 0x48]
call fcn.00401458
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401370
push dword [esi]
call fcn.00402187
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401370
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4193ac
call fcn.004032d9
lea ecx, [ebp - 0x54]
add esi, 0x10
call fcn.0040269a
mov eax, dword [esi]
test eax, eax
jne 0x405d1d
lea eax, [ebp + 0x18]
push eax
call fcn.00404b06
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x14], ebx
cmp word [ebx], di
jbe 0x405dac
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405d99
jmp 0x405da9
cmp ax, di
ja 0x405db4
inc ebx
inc ebx
mov dword [ebp + 0x14], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405da2
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405dc7
cmp ax, 0x2d
jne 0x40600c
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x406006
push 0x416904
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405e31
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405df7
cmp ax, 0x39
jbe 0x405e0f
cmp ax, 0x61
jb 0x405e03
cmp ax, 0x7a
jbe 0x405e0f
cmp ax, 0x41
jb 0x405e1f
cmp ax, 0x5a
ja 0x405e1f
mov dword [ebp + 0x38], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405d94
cmp ax, di
ja 0x40600c
mov dword [ebp + 0x38], 0x4166cc
jmp 0x405e12
push 0x4168fc
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405e54
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405f9a
push 0x4168f4
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405e98
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40600c
cmp cx, 0x32
ja 0x40600c
cmp word [ebx + 8], di
ja 0x40600c
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.GUIMode
jmp 0x405f9a
push 0x4168ec
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405ebb
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405f9a
push 0x4168e4
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405ede
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405f9a
push 0x4168dc
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405f1b
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405f05
cmp cx, 0x31
jne 0x40600c
cmp word [ebx + 8], di
ja 0x40600c
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.SelfDelete
jmp 0x405f9a
push 0x4168d4
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405f3f
cmp word [ebx + 6], di
ja 0x40600c
mov byte [ebp + 0x63], 1
jmp 0x405d94
push 0x4168cc
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405f7c
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40600c
cmp cx, 0x39
ja 0x40600c
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x419380], eax
jmp 0x405d94
push 0x4168c4
push esi
call fcn.0040421b
test eax, eax
pop ecx
pop ecx
je 0x405fa7
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.00404d50
add esp, 0xc
jmp 0x405d94
movzx eax, word [esi]
cmp ax, 0x79
je 0x405fb6
cmp ax, 0x59
jne 0x405fc5
cmp word [ebx + 4], di
ja 0x405fc5
mov byte [ebp + 0x66], 1
jmp 0x405d94
cmp ax, 0x3f
je 0x405fd7
cmp ax, 0x68
je 0x405fd7
cmp ax, 0x48
jne 0x405fe6
cmp word [ebx + 4], di
ja 0x405fe6
mov byte [ebp + 0x64], 1
jmp 0x405d94
lea eax, [ebp + 0x18]
push eax
push esi
call fcn.0040464b
test eax, eax
pop ecx
pop ecx
je 0x40600c
cmp eax, 1
je 0x40614a
mov ebx, eax
jmp 0x405d91
add ebx, 4
mov dword [ebp + 0x14], ebx
lea eax, [ebp + 0x18]
push eax
call fcn.00404b06
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x40619d
test byte [0x4197f0], 4
je 0x40619d
call fcn.0040244e
test eax, eax
jne 0x40619d
lea ecx, [ebp - 8]
call fcn.00401458
lea ecx, [ebp + 0x48]
call fcn.00401458
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404a97
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00402771
lea eax, [ebp - 0x24]
push eax
push edi
push str.sfxelevation
push 0x416730
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push 0x22
push eax
call fcn.004048a9
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.004048c7
add esp, 0xc
push eax
lea eax, [ebp + 8]
push eax
call fcn.004048c7
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004048e5
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401551
add esp, 0xc
push eax
lea ecx, [ebp + 0x48]
call fcn.004013a9
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 + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
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 + 0x48]
call fcn.00404f67
add esp, 0xc
test eax, eax
push dword [ebp - 0x24]
jne 0x406167
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
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 + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, esi
je 0x406143
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x40595b
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
je 0x406160
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x405874
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
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 + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, esi
je 0x405874
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405874
lea eax, [ebp + 4]
push eax
mov ebx, str.SetEnvironment
lea eax, [ebp + 0x18]
push ebx
xor esi, esi
push eax
mov dword [ebp + 4], esi
call fcn.004026b0
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x40625b
push edi
lea ecx, [ebp + 0x48]
call fcn.00402771
push 0x3d
push dword [ebp + 0x48]
call fcn.0040cc97
test eax, eax
pop ecx
pop ecx
jle 0x406250
mov ecx, dword [ebp + 0x48]
lea esi, [eax + eax]
and word [esi + ecx], 0
lea ecx, [ebp - 0x54]
mov dword [ebp + 0x4c], eax
call fcn.00401458
lea ecx, [ebp - 0x48]
call fcn.00401458
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x54]
call fcn.004013a9
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401370
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4193ac
call fcn.004032d9
inc dword [ebp + 4]
lea ecx, [ebp - 0x54]
call fcn.0040269a
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.004026b0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4061c2
jmp 0x406259
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
call fcn.004045f4
cmp dword [0x419374], 0xffffffff
jne 0x40626f
mov dword [0x419374], esi
cmp byte [ebp + 0x64], 0
je 0x4062e1
push esi
lea eax, [ebp + 0x18]
push str.HelpText
push eax
call fcn.004026b0
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x406297
push 0x18
call fcn.00402187
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf0]
call fcn.004041ab
push esi
push edi
push dword [0x4197e0]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.00407cec
lea ecx, [ebp - 0xf0]
call fcn.00407a5f
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, esi
pop ecx
je 0x405872
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405872
cmp byte [ebp + 0x66], 0
je 0x4062f1
and dword [0x419374], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x18]
push str.InstallPath
push eax
call fcn.004026b0
add esp, 0xc
cmp eax, esi
mov edi, 0x419810
je 0x40631b
push eax
mov ecx, edi
call fcn.00401370
push edi
call fcn.004041c4
push esi
lea eax, [ebp + 0x18]
push str.BeginPromptTimeout
push eax
call fcn.004026b0
add esp, 0x10
cmp eax, esi
je 0x406344
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4197fc], eax
cmp dword [0x41989c], esi
je 0x40636a
lea eax, [ebp + 0x18]
push eax
call fcn.00408f85
push dword [ebp + 0x2c]
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
pop ecx
cmp eax, esi
jmp 0x406157
cmp dword [0x419894], 3
jne 0x40637e
lea eax, [ebp + 0x18]
push eax
call fcn.00408eb8
jmp 0x406355
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x18]
push str.BeginPrompt
push eax
call fcn.004026b0
add esp, 0xc
cmp eax, edi
je 0x4063e3
cmp byte [ebp + 0x66], 0
jne 0x4063e3
push eax
push dword [0x4197e0]
call fcn.00408465
test eax, eax
pop ecx
pop ecx
je 0x406507
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4063d1
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
cmp dword [0x41987c], edi
je 0x4063e3
and dword [0x419374], 0xffffff7f
lea ecx, [ebp + 0x3c]
call fcn.00401458
cmp byte [ebp + 0x67], 0
je 0x40646d
mov edi, dword [ebp + 0x38]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401370
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401526
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.004026b0
add esp, 0xc
test eax, eax
je 0x406524
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x406437
cmp ax, 0x39
jbe 0x4063f4
cmp ax, 0x61
jb 0x406443
cmp ax, 0x7a
jbe 0x4063f4
cmp ax, 0x41
jb 0x40644f
cmp ax, 0x5a
jbe 0x4063f4
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401370
mov eax, dword [ebp + 0x38]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401526
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x4064b5
push edi
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.004026b0
add esp, 0xc
test eax, eax
je 0x40649a
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00401370
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x4064b5
push edi
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.004026b0
add esp, 0xc
test eax, eax
je 0x4064b5
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401370
cmp byte [ebp + 0x67], 0
jne 0x406567
cmp byte [ebp + 0x66], 0
jne 0x406567
mov eax, dword [0x419374]
and ax, 0xc0
cmp al, 0x80
jne 0x406567
push dword [0x4197d4]
push dword [0x4197d8]
call fcn.004084e3
test eax, eax
pop ecx
pop ecx
jne 0x406567
cmp byte [0x419800], al
push dword [ebp + 0x3c]
je 0x406557
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40638a
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
je 0x40651d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x40595b
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.00408dc3
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x406550
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x40595b
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40650f
cmp dword [0x419814], edi
jne 0x40659d
lea eax, [ebp - 0x78]
push str.7ZipSfx._03x
push eax
call fcn.00404545
pop ecx
pop ecx
mov esi, 0x419810
push eax
mov ecx, esi
call fcn.004013a9
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x4197c4], 0
jmp 0x4065d4
mov esi, 0x419810
push esi
lea ecx, [ebp + 0x48]
call fcn.0040133e
lea eax, [ebp + 0x48]
push eax
call fcn.004041c4
cmp dword [ebp + 0x4c], edi
pop ecx
jne 0x4065c5
lea eax, [ebp + 0x48]
push eax
mov ecx, esi
call fcn.004013a9
push dword [ebp + 0x48]
mov byte [0x4197c4], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x419810]
pop ecx
mov ecx, dword [0x419814]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x4065f1
cmp dx, 0x2f
jne 0x4065fc
dec ecx
mov word [eax + ecx*2], di
mov dword [0x419814], ecx
cmp byte [ebp + 0x66], 0
je 0x406609
or dword [0x4197f0], 3
cmp dword [0x419890], edi
jne 0x40661e
push esi
push dword [ebp + 0x54]
call fcn.0040172c
pop ecx
pop ecx
jmp 0x40662c
call fcn.00408523
test eax, eax
jne 0x40665b
mov eax, 0x80004005
cmp eax, edi
je 0x40665b
call fcn.004044b0
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
pop ecx
je 0x406654
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x40595b
call fcn.004045f4
cmp byte [ebp + 0x63], 0
je 0x406673
cmp byte [0x4197c4], 0
jne 0x406c51
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x54], edi
call fcn.00401458
cmp byte [ebp + 0x67], 0
jne 0x406693
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00404a41
pop ecx
pop ecx
mov eax, dword [ebp + 0x38]
mov byte [ebp + 0x67], 0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], edi
mov byte [ebp + 0x64], 0
call fcn.00401458
lea ecx, [ebp - 0x14]
call fcn.00401458
cmp dword [ebp + 0x40], edi
mov dword [ebp + 0x58], edi
jne 0x406764
cmp byte [0x4197c4], 0
jne 0x406ae7
mov edi, str.setup.exe
push edi
push 0x41572c
lea eax, [ebp - 0x9c]
push 0x419810
push eax
call fcn.004048c7
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004048c7
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.004013a9
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 + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406afe
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp - 0x14]
call fcn.00401370
lea eax, [ebp - 0x14]
push eax
call fcn.004041f8
mov esi, dword [ebp - 0x14]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
je 0x4067ea
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x406745
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.004026b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40672d
mov esi, dword [ebp - 0x2c]
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x2c], esi
jb 0x406794
cmp ax, 0x39
jbe 0x4067b4
cmp ax, 0x61
jb 0x4067a0
cmp ax, 0x7a
jbe 0x4067b4
cmp ax, 0x41
jb 0x406b4d
cmp ax, 0x5a
ja 0x406b4d
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401370
movzx eax, word [esi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401526
push dword [ebp - 0x14]
and dword [ebp + 0x54], 0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor edi, edi
jmp 0x40669d
push ebx
push str.hidcon
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
je 0x406808
or dword [ebp + 0x58], 1
mov esi, eax
jmp 0x406745
push ebx
push str.nowait
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
je 0x40682c
cmp byte [0x4197c4], 0
mov esi, eax
je 0x406745
jmp 0x406841
push ebx
push str.forcenowait
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
je 0x40684d
mov esi, eax
or dword [ebp + 0x58], 0x10000
jmp 0x406745
push 2
push 0x4168cc
push esi
call fcn.00404255
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x406883
cmp dword [0x419380], 0xffffffff
jne 0x40687c
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x419380], eax
mov esi, edi
jmp 0x406745
push 3
push 0x416844
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
je 0x4068a3
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x30], ecx
jmp 0x4068c1
push 3
push 0x41683c
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
je 0x4068c8
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x28], ecx
mov esi, eax
jmp 0x406745
push ebx
push 0x41557c
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
jne 0x406922
push ebx
push str.i386
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
jne 0x406922
push ebx
push 0x416824
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
jne 0x406914
push ebx
push 0x415574
push esi
call fcn.00404255
add esp, 0xc
cmp eax, ebx
je 0x406930
mov esi, eax
mov dword [ebp - 0x18], 2
jmp 0x406745
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x406745
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 8]
je 0x40698b
cmp word [esi], 0x22
je 0x40695e
mov edi, 0x4166c0
push edi
call fcn.00401370
push esi
lea ecx, [ebp + 8]
call fcn.004027c2
push edi
lea ecx, [ebp + 8]
call fcn.004027c2
jmp 0x406964
push esi
call fcn.00401370
push ebx
lea eax, [ebp + 0x18]
push str.ExecuteParameters
push eax
call fcn.004026b0
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40699d
push 0x416820
lea ecx, [ebp + 8]
call fcn.004027c2
jmp 0x406994
lea eax, [ebp + 0x48]
push eax
call fcn.004013a9
push esi
lea ecx, [ebp + 8]
call fcn.004027c2
lea ecx, [ebp - 8]
call fcn.00401458
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
call fcn.00404a97
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00402771
lea eax, [ebp - 8]
push eax
call fcn.004041f8
cmp dword [0x419894], ebx
pop ecx
jne 0x406aa1
push dword [ebp - 0x18]
call fcn.0040241d
test eax, eax
pop ecx
je 0x406aa1
mov esi, dword [ebp + 0x14]
cmp word [esi], bx
je 0x406a04
push esi
lea ecx, [ebp - 0x24]
call fcn.004027c2
cmp word [esi], bx
je 0x406a04
inc esi
inc esi
cmp word [esi], bx
jne 0x4069fa
mov dword [ebp + 0x14], esi
lea eax, [ebp - 0x24]
push eax
call fcn.004041f8
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x406a83
lea eax, [ebp - 0x24]
push eax
push 0x416750
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x22
push eax
call fcn.004048a9
add esp, 0xc
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004048c7
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401551
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 [0x419810]
push dword [ebp + 0x58]
push dword [ebp - 0x60]
call fcn.00404f67
add esp, 0x20
test eax, eax
push dword [ebp - 0x60]
je 0x406b64
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406a9c
push dword [ebp + 0x58]
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.0040503e
add esp, 0xc
cmp eax, ebx
jne 0x406b6c
call fcn.004023b5
cmp byte [ebp + 0x65], 0
jne 0x406bcf
cmp byte [ebp + 0x67], 0
jne 0x406bcf
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x4c], ebx
mov word [eax], bx
push dword [ebp - 0x24]
inc dword [ebp + 0x54]
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 0x4067e3
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406bf2
call fcn.004044b0
push 0xf
push 0
call fcn.00408dc3
push dword [ebp - 0x14]
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 + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x1c
test eax, eax
je 0x4059b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4059b9
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406bf0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406b73
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x10
push 1
call fcn.00408dc3
call fcn.004044b0
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 + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x28
cmp eax, ebx
je 0x406bc8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x40595b
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 [0x419894], edi
jne 0x406c48
call fcn.004045f4
push dword [ebp - 0x30]
lea eax, [ebp + 0x18]
push dword [ebp + 0x38]
push str.Shortcut
push eax
push 0x405644
call fcn.00404dae
add esp, 0x14
push dword [0x41981c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x28]
lea eax, [ebp + 0x18]
push dword [ebp + 0x38]
push str.Delete
push eax
push 0x404746
call fcn.00404dae
add esp, 0x14
call fcn.004044b0
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x419380], 0xffffffff
jne 0x406c6a
cmp byte [ebp + 0x66], 0
jne 0x406cc9
mov dword [0x419380], 1
cmp dword [0x419380], edi
jle 0x406cc9
push 0
lea eax, [ebp + 0x18]
push str.FinishMessage
push eax
call fcn.004026b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406cc9
mov eax, 0x3e7
cmp dword [0x419380], eax
jle 0x406c9d
mov dword [0x419380], eax
lea ecx, [ebp - 0xec]
call fcn.00404497
push 0
push edi
push dword [0x4197e0]
lea ecx, [ebp - 0xec]
push 0x11
call fcn.00407cec
lea ecx, [ebp - 0xec]
call fcn.00407a5f
cmp byte [ebp + 0x63], 0
jne 0x406d0c
cmp dword [0x419894], 0
jne 0x406d0c
push 0
lea eax, [ebp + 0x18]
push str.SelfDelete
push eax
call fcn.004026b0
add esp, 0xc
test eax, eax
je 0x406d0c
cmp word [eax], 0x31
jne 0x406d0c
sub esp, 0xc
mov ecx, esp
push 0x419858
call fcn.0040133e
call fcn.00405304
add esp, 0xc
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
pop ecx
je 0x406d2b
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 + 0x18]
call fcn.00404513
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 0x406d6c
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