Function at 0x405782
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 0x404431
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401d3e
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406db1
cmp dword [ebp - 0x1fc], 2
jne 0x406db1
cmp dword [ebp - 0x208], 5
jb 0x406db1
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], 0x4156ac
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.00401461
lea ecx, [ebp - 0x84]
call fcn.00401461
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], 0x4153e0
call fcn.00404493
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404988
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004027f6
lea eax, [ebp - 0x6c]
push eax
call fcn.00402e2a
mov ebx, dword [ebp - 0x6c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.004043c5
cmp eax, edi
pop ecx
pop ecx
je 0x4058b8
cmp word [eax], 0x3a
jne 0x4058b8
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x4058a2
mov word [0x418790], ax
jmp 0x4058a2
inc ebx
inc ebx
cmp word [ebx], si
ja 0x4058a0
jmp 0x4058b0
cmp ax, si
ja 0x4058b8
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x4058a9
call fcn.0040484a
push str.sfxversion
push ebx
call fcn.004043c5
test eax, eax
pop ecx
pop ecx
je 0x405902
call fcn.00404d8a
xor esi, esi
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x1c]
call fcn.004044e0
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 0x406dc8
push str.sfxwaitall
push ebx
call fcn.004043c5
cmp eax, edi
pop ecx
pop ecx
je 0x40591e
push eax
call fcn.004051c0
pop ecx
mov esi, eax
jmp 0x4058d5
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.004043c5
cmp eax, edi
pop ecx
pop ecx
je 0x40594a
mov byte [ebp + 0x65], 1
jmp 0x405940
cmp cx, si
ja 0x405948
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405939
mov ebx, eax
mov esi, 0x208
cmp dword [0x418840], esi
jg 0x405962
push esi
mov ecx, 0x418838
call fcn.0040117b
push esi
push dword [0x418838]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405986
xor esi, esi
inc esi
push 6
push esi
call fcn.00408e1f
pop ecx
pop ecx
jmp 0x4058d5
mov esi, dword [0x418838]
push esi
call fcn.00401167
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41883c], eax
call fcn.004043c5
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405b44
cmp word [esi], 0x3a
je 0x4059c2
push 0x64
pop esi
jmp 0x4058d5
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405ac7
dec eax
dec eax
je 0x405ab3
dec eax
je 0x405a32
sub eax, 0xb
je 0x4059f6
sub eax, 7
jne 0x4059ba
mov esi, 0x47c5
jmp 0x4058d5
cmp word [esi + 4], 0x3a
jne 0x4058d3
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x405a2a
dec eax
je 0x405a26
dec eax
je 0x405a22
dec eax
je 0x405a1e
dec eax
jne 0x4058d3
push 7
jmp 0x4059bc
push 0x7f
jmp 0x4059bc
push 0x1f
jmp 0x4059bc
push 0x17
jmp 0x4059bc
xor esi, esi
inc esi
jmp 0x4058d5
cmp cx, 0x44
jne 0x405a73
cmp word [esi + 4], 0x3a
jne 0x4059ba
add esi, 6
jmp 0x405a5e
cmp ax, 0x3a
je 0x405a66
movzx eax, ax
push eax
mov ecx, 0x418878
call fcn.0040152f
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x405a48
cmp dword [0x41887c], edi
jne 0x405a76
jmp 0x4059ba
add esi, 4
mov dword [0x418870], edi
cmp word [esi], 0x3a
jne 0x405a9d
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x418870], eax
ja 0x405a9d
cmp eax, edi
jne 0x405aa7
mov dword [0x418870], 0xa
mov dword [0x418874], 1
jmp 0x405ad5
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x418874], eax
jmp 0x405ad5
mov dword [0x418874], 2
jmp 0x405ad5
inc esi
inc esi
cmp word [esi], bx
ja 0x405ad3
jmp 0x405ae3
cmp ax, bx
ja 0x405aeb
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405adc
push str.sfxconfig
push esi
mov ebx, esi
call fcn.004043c5
cmp eax, edi
pop ecx
pop ecx
je 0x405b44
cmp word [eax], 0x3a
jne 0x405b0e
jmp 0x405b0c
cmp cx, 0x20
ja 0x405b16
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405b06
mov ecx, dword [ebp - 0x3c]
mov word [ecx], di
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.00404988
cmp dword [0x418874], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405b44
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x418838
call fcn.004013b2
mov esi, 0x418838
push esi
mov ecx, 0x4187fc
call fcn.004013b2
mov edi, 0x418808
push esi
mov ecx, edi
call fcn.004013b2
push esi
call fcn.0040311b
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405bfc
mov ecx, dword [0x4187fc]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x418800], eax
mov eax, dword [0x418838]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401379
mov eax, dword [0x418838]
lea eax, [esi + eax + 2]
mov esi, 0x418820
push eax
mov ecx, esi
call fcn.00401379
push 0x2e
mov ecx, esi
call fcn.0040282c
test eax, eax
jle 0x405bc9
mov ecx, dword [0x418820]
and word [ecx + eax*2], 0
mov dword [0x418824], eax
push esi
mov esi, 0x418814
mov ecx, esi
call fcn.004013b2
push 4
call fcn.004021a4
pop ecx
push eax
mov ecx, esi
call fcn.004027f6
mov eax, dword [0x418820]
mov dword [0x4187c0], eax
mov eax, dword [0x418814]
mov dword [0x4187c8], eax
xor esi, esi
call fcn.004023bd
push eax
mov ecx, 0x41882c
call fcn.00401379
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405c24
mov ecx, eax
call fcn.004046bc
mov dword [ebp + 0x58], eax
jmp 0x405c27
mov dword [ebp + 0x58], esi
push dword [ebp + 0x58]
lea ecx, [ebp + 0x5c]
call fcn.00401132
push dword [0x418838]
mov ecx, dword [ebp + 0x58]
call fcn.0040c53c
test al, al
jne 0x405c6a
push dword [0x418838]
push 7
push 1
call fcn.00408e1f
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, esi
je 0x405c63
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x4059bc
lea ecx, [ebp + 0x30]
call fcn.00402857
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x30]
push eax
push edi
call fcn.00403ce6
test al, al
pop ecx
pop ecx
jne 0x405ca9
push 9
push esi
call fcn.00408e1f
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405ca2
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x4059bc
cmp dword [0x418874], esi
jne 0x405d3b
push str.sfxconfig
push ebx
call fcn.004043c5
cmp eax, esi
pop ecx
pop ecx
je 0x405d3b
cmp word [eax], 0x3a
jne 0x405cce
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405d1f
cmp cx, 0x20
ja 0x405ce6
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405cd6
cmp word [eax], si
je 0x405d1f
lea ecx, [ebp + 0x30]
push ecx
push eax
call fcn.00405505
test al, al
pop ecx
pop ecx
jne 0x405d1f
push 0xa
push esi
call fcn.00408e1f
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405d18
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x4059bc
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x4058d3
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4058d3
lea ecx, [ebp + 0x1c]
call fcn.0040c3ad
cmp dword [ebp + 0x34], esi
je 0x405d68
push esi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00403454
add esp, 0xc
test al, al
jne 0x405d68
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405d0e
cmp dword [0x418874], 4
je 0x405d1f
mov eax, dword [0x418080]
mov esi, 0x418080
jmp 0x405dde
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.00401461
lea ecx, [ebp - 0x48]
call fcn.00401461
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401379
push dword [esi]
call fcn.004021a4
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401379
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4183bc
call fcn.0040332d
lea ecx, [ebp - 0x54]
add esi, 0x10
call fcn.004026e6
mov eax, dword [esi]
test eax, eax
jne 0x405d7d
lea eax, [ebp + 0x1c]
push eax
call fcn.004049f7
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x18], ebx
cmp word [ebx], di
jbe 0x405e0c
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405df9
jmp 0x405e09
cmp ax, di
ja 0x405e14
inc ebx
inc ebx
mov dword [ebp + 0x18], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405e02
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405e27
cmp ax, 0x2d
jne 0x40606c
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x406066
push 0x4158f4
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405e91
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405e57
cmp ax, 0x39
jbe 0x405e6f
cmp ax, 0x61
jb 0x405e63
cmp ax, 0x7a
jbe 0x405e6f
cmp ax, 0x41
jb 0x405e7f
cmp ax, 0x5a
ja 0x405e7f
mov dword [ebp + 0x3c], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405df4
cmp ax, di
ja 0x40606c
mov dword [ebp + 0x3c], 0x4156ac
jmp 0x405e72
push 0x4158ec
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405eb4
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405ffa
push 0x4158e4
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405ef8
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40606c
cmp cx, 0x32
ja 0x40606c
cmp word [ebx + 8], di
ja 0x40606c
lea ecx, [ebp + 0x1c]
push ecx
push eax
push str.GUIMode
jmp 0x405ffa
push 0x4158dc
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405f1b
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405ffa
push 0x4158d4
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405f3e
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405ffa
push 0x4158cc
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405f7b
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405f65
cmp cx, 0x31
jne 0x40606c
cmp word [ebx + 8], di
ja 0x40606c
lea ecx, [ebp + 0x1c]
push ecx
push eax
push str.SelfDelete
jmp 0x405ffa
push 0x4158c4
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405f9f
cmp word [ebx + 6], di
ja 0x40606c
mov byte [ebp + 0x63], 1
jmp 0x405df4
push 0x4158bc
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x405fdc
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40606c
cmp cx, 0x39
ja 0x40606c
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x418390], eax
jmp 0x405df4
push 0x4158b4
push esi
call fcn.004041e8
test eax, eax
pop ecx
pop ecx
je 0x406007
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.00404c41
add esp, 0xc
jmp 0x405df4
movzx eax, word [esi]
cmp ax, 0x79
je 0x406016
cmp ax, 0x59
jne 0x406025
cmp word [ebx + 4], di
ja 0x406025
mov byte [ebp + 0x66], 1
jmp 0x405df4
cmp ax, 0x3f
je 0x406037
cmp ax, 0x68
je 0x406037
cmp ax, 0x48
jne 0x406046
cmp word [ebx + 4], di
ja 0x406046
mov byte [ebp + 0x64], 1
jmp 0x405df4
lea eax, [ebp + 0x1c]
push eax
push esi
call fcn.004045c1
test eax, eax
pop ecx
pop ecx
je 0x40606c
cmp eax, 1
je 0x4061aa
mov ebx, eax
jmp 0x405df1
add ebx, 4
mov dword [ebp + 0x18], ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.004049f7
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x4061fd
test byte [0x4187d0], 4
je 0x4061fd
call fcn.0040246b
test eax, eax
jne 0x4061fd
lea ecx, [ebp - 8]
call fcn.00401461
lea ecx, [ebp + 0x4c]
call fcn.00401461
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404988
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004027bd
lea eax, [ebp - 0x24]
push eax
push edi
push str.sfxelevation
push 0x415718
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push 0x22
push eax
call fcn.004047f0
add esp, 0xc
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.0040480e
add esp, 0xc
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040480e
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040482c
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040155a
add esp, 0xc
push eax
lea ecx, [ebp + 0x4c]
call fcn.004013b2
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.00404e87
add esp, 0xc
test eax, eax
push dword [ebp - 0x24]
jne 0x4061c7
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 0x4061a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x4059bc
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
je 0x4061c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x4058d5
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 0x4058d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4058d5
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.004026fc
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x4062bb
push edi
lea ecx, [ebp + 0x4c]
call fcn.004027bd
push 0
push 0x3d
lea ecx, [ebp + 0x4c]
call fcn.00402a04
test eax, eax
jle 0x4062b0
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.00401461
lea ecx, [ebp - 0x48]
call fcn.00401461
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004013b2
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401379
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4183bc
call fcn.0040332d
inc dword [ebp + 8]
lea ecx, [ebp - 0x54]
call fcn.004026e6
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.004026fc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x406222
jmp 0x4062b9
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
call fcn.00405458
cmp dword [0x418384], 0xffffffff
jne 0x4062cf
mov dword [0x418384], esi
cmp byte [ebp + 0x64], 0
je 0x406341
push esi
lea eax, [ebp + 0x1c]
push str.HelpText
push eax
call fcn.004026fc
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x4062f7
push 0x18
call fcn.004021a4
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf0]
call fcn.004041cf
push esi
push edi
push dword [0x4187c0]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.00407d48
lea ecx, [ebp - 0xf0]
call fcn.00407abb
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, esi
pop ecx
je 0x4058d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4058d3
cmp byte [ebp + 0x66], 0
je 0x406351
and dword [0x418384], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x1c]
push str.InstallPath
push eax
call fcn.004026fc
add esp, 0xc
cmp eax, esi
mov edi, 0x4187f0
je 0x40637b
push eax
mov ecx, edi
call fcn.00401379
push edi
call fcn.004053da
push esi
lea eax, [ebp + 0x1c]
push str.BeginPromptTimeout
push eax
call fcn.004026fc
add esp, 0x10
cmp eax, esi
je 0x4063a4
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4187dc], eax
cmp dword [0x41887c], esi
je 0x4063ca
lea eax, [ebp + 0x1c]
push eax
call fcn.00408fe1
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 0x4061b7
cmp dword [0x418874], 3
jne 0x4063de
lea eax, [ebp + 0x1c]
push eax
call fcn.00408f14
jmp 0x4063b5
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x1c]
push str.BeginPrompt
push eax
call fcn.004026fc
add esp, 0xc
cmp eax, edi
je 0x40643f
cmp byte [ebp + 0x66], 0
jne 0x40643f
push eax
push dword [0x4187c0]
call fcn.004084a5
test eax, eax
pop ecx
pop ecx
je 0x406563
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40642d
mov byte [ebp + 0x67], 1
cmp dword [0x41885c], edi
je 0x40643f
and dword [0x418384], 0xffffff7f
lea ecx, [ebp + 0x40]
call fcn.00401461
cmp byte [ebp + 0x67], 0
je 0x4064c9
mov edi, dword [ebp + 0x3c]
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401379
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040152f
push 0
push dword [ebp + 0x40]
lea eax, [ebp + 0x1c]
push eax
call fcn.004026fc
add esp, 0xc
test eax, eax
je 0x406580
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x406493
cmp ax, 0x39
jbe 0x406450
cmp ax, 0x61
jb 0x40649f
cmp ax, 0x7a
jbe 0x406450
cmp ax, 0x41
jb 0x4064ab
cmp ax, 0x5a
jbe 0x406450
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401379
mov eax, dword [ebp + 0x3c]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040152f
xor edi, edi
cmp dword [ebp + 0x44], edi
mov byte [ebp + 0x65], 0
jne 0x406511
push edi
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.004026fc
add esp, 0xc
test eax, eax
je 0x4064f6
push ebx
lea ecx, [ebp + 0x40]
call fcn.00401379
cmp dword [ebp + 0x44], edi
mov byte [ebp + 0x65], 1
jne 0x406511
push edi
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.004026fc
add esp, 0xc
test eax, eax
je 0x406511
push esi
lea ecx, [ebp + 0x40]
call fcn.00401379
cmp byte [ebp + 0x67], 0
jne 0x4065c3
cmp byte [ebp + 0x66], 0
jne 0x4065c3
mov eax, dword [0x418384]
and ax, 0xc0
cmp al, 0x80
jne 0x4065c3
push dword [0x4187b4]
push dword [0x4187b8]
call fcn.00408523
test eax, eax
pop ecx
pop ecx
jne 0x4065c3
cmp byte [0x4187e0], al
push dword [ebp + 0x40]
je 0x4065b3
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4063ea
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
je 0x406579
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x4059bc
push dword [ebp + 0x40]
push 0xe
push 0
call fcn.00408e1f
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 0x4065ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x4059bc
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 0x40656b
cmp dword [0x4187f4], edi
jne 0x4065f9
lea eax, [ebp - 0x78]
push str.7ZipSfx._03x
push eax
call fcn.00404512
pop ecx
pop ecx
mov esi, 0x4187f0
push eax
mov ecx, esi
call fcn.004013b2
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x4187a4], 0
jmp 0x406630
mov esi, 0x4187f0
push esi
lea ecx, [ebp + 0x4c]
call fcn.00401347
lea eax, [ebp + 0x4c]
push eax
call fcn.004053da
cmp dword [ebp + 0x50], edi
pop ecx
jne 0x406621
lea eax, [ebp + 0x4c]
push eax
mov ecx, esi
call fcn.004013b2
push dword [ebp + 0x4c]
mov byte [0x4187a4], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x4187f0]
pop ecx
mov ecx, dword [0x4187f4]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x40664d
cmp dx, 0x2f
jne 0x406658
dec ecx
mov word [eax + ecx*2], di
mov dword [0x4187f4], ecx
cmp byte [ebp + 0x66], 0
je 0x406665
or dword [0x4187d0], 3
cmp dword [0x418870], edi
jne 0x40667a
push esi
push dword [ebp + 0x58]
call fcn.00401735
pop ecx
pop ecx
jmp 0x406688
call fcn.0040857f
test eax, eax
jne 0x4066b7
mov eax, 0x80004005
cmp eax, edi
je 0x4066b7
call fcn.0040447d
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 0x4066b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x4059bc
call fcn.00405458
cmp byte [ebp + 0x63], 0
je 0x4066cf
cmp byte [0x4187a4], 0
jne 0x406cad
lea ecx, [ebp + 0x4c]
mov dword [ebp + 4], edi
call fcn.00401461
cmp byte [ebp + 0x67], 0
jne 0x4066ef
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004054af
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.00401461
lea ecx, [ebp - 0x14]
call fcn.00401461
cmp dword [ebp + 0x44], edi
mov dword [ebp + 0x58], edi
jne 0x4067c0
cmp byte [0x4187a4], 0
jne 0x406b43
mov edi, str.setup.exe
push edi
push 0x41473c
lea eax, [ebp - 0x9c]
push 0x4187f0
push eax
call fcn.0040480e
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040480e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
call fcn.004013b2
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 0x406b5a
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp - 0x14]
call fcn.00401379
lea eax, [ebp - 0x14]
push eax
call fcn.00405435
mov esi, dword [ebp - 0x14]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
je 0x406846
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x4067a1
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x40]
lea eax, [ebp + 0x1c]
push eax
call fcn.004026fc
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x406789
mov esi, dword [ebp - 0x30]
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x30], esi
jb 0x4067f0
cmp ax, 0x39
jbe 0x406810
cmp ax, 0x61
jb 0x4067fc
cmp ax, 0x7a
jbe 0x406810
cmp ax, 0x41
jb 0x406ba9
cmp ax, 0x5a
ja 0x406ba9
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401379
movzx eax, word [esi]
push eax
lea ecx, [ebp + 0x40]
call fcn.0040152f
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 0x4066f9
push ebx
push str.hidcon
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
je 0x406864
or dword [ebp + 0x58], 1
mov esi, eax
jmp 0x4067a1
push ebx
push str.nowait
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
je 0x406888
cmp byte [0x4187a4], 0
mov esi, eax
je 0x4067a1
jmp 0x40689d
push ebx
push str.forcenowait
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
je 0x4068a9
mov esi, eax
or dword [ebp + 0x58], 0x10000
jmp 0x4067a1
push 2
push 0x4158bc
push esi
call fcn.00404222
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x4068df
cmp dword [0x418390], 0xffffffff
jne 0x4068d8
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x418390], eax
mov esi, edi
jmp 0x4067a1
push 3
push 0x415834
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
je 0x4068ff
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x2c], ecx
jmp 0x40691d
push 3
push 0x41582c
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
je 0x406924
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x28], ecx
mov esi, eax
jmp 0x4067a1
push ebx
push 0x41458c
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
jne 0x40697e
push ebx
push str.i386
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
jne 0x40697e
push ebx
push 0x415814
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
jne 0x406970
push ebx
push 0x414584
push esi
call fcn.00404222
add esp, 0xc
cmp eax, ebx
je 0x40698c
mov esi, eax
mov dword [ebp - 0x18], 2
jmp 0x4067a1
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x4067a1
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 0xc]
je 0x4069e7
cmp word [esi], 0x22
je 0x4069ba
mov edi, 0x4156a0
push edi
call fcn.00401379
push esi
lea ecx, [ebp + 0xc]
call fcn.004027f6
push edi
lea ecx, [ebp + 0xc]
call fcn.004027f6
jmp 0x4069c0
push esi
call fcn.00401379
push ebx
lea eax, [ebp + 0x1c]
push str.ExecuteParameters
push eax
call fcn.004026fc
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4069f9
push 0x415810
lea ecx, [ebp + 0xc]
call fcn.004027f6
jmp 0x4069f0
lea eax, [ebp + 0x4c]
push eax
call fcn.004013b2
push esi
lea ecx, [ebp + 0xc]
call fcn.004027f6
lea ecx, [ebp - 8]
call fcn.00401461
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push edi
call fcn.00404988
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004027bd
lea eax, [ebp - 8]
push eax
call fcn.00405435
cmp dword [0x418874], ebx
pop ecx
jne 0x406afd
push dword [ebp - 0x18]
call fcn.0040243a
test eax, eax
pop ecx
je 0x406afd
mov esi, dword [ebp + 0x18]
cmp word [esi], bx
je 0x406a60
push esi
lea ecx, [ebp - 0x24]
call fcn.004027f6
cmp word [esi], bx
je 0x406a60
inc esi
inc esi
cmp word [esi], bx
jne 0x406a56
mov dword [ebp + 0x18], esi
lea eax, [ebp - 0x24]
push eax
call fcn.00405435
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x406adf
lea eax, [ebp - 0x24]
push eax
push 0x415738
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x22
push eax
call fcn.004047f0
add esp, 0xc
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040480e
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040155a
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 [0x4187f0]
push dword [ebp + 0x58]
push dword [ebp - 0x60]
call fcn.00404e87
add esp, 0x20
test eax, eax
push dword [ebp - 0x60]
je 0x406bc0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406af8
push dword [ebp + 0x58]
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.00404f5e
add esp, 0xc
cmp eax, ebx
jne 0x406bc8
call fcn.004023d2
cmp byte [ebp + 0x65], 0
jne 0x406c2b
cmp byte [ebp + 0x67], 0
jne 0x406c2b
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 0x40683f
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 0x406c4e
call fcn.0040447d
push 0xf
push 0
call fcn.00408e1f
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 0x405a1a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405a1a
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 0x406c4c
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406bcf
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x10
push 1
call fcn.00408e1f
call fcn.0040447d
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 0x406c24
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x4059bc
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 [0x418874], edi
jne 0x406ca4
call fcn.00405458
push dword [ebp - 0x2c]
lea eax, [ebp + 0x1c]
push dword [ebp + 0x3c]
push str.Shortcut
push eax
push 0x405688
call fcn.00404c9f
add esp, 0x14
push dword [0x4187fc]
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 0x405753
call fcn.00404c9f
add esp, 0x14
call fcn.0040447d
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x418390], 0xffffffff
jne 0x406cc6
cmp byte [ebp + 0x66], 0
jne 0x406d25
mov dword [0x418390], 1
cmp dword [0x418390], edi
jle 0x406d25
push 0
lea eax, [ebp + 0x1c]
push str.FinishMessage
push eax
call fcn.004026fc
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406d25
mov eax, 0x3e7
cmp dword [0x418390], eax
jle 0x406cf9
mov dword [0x418390], eax
lea ecx, [ebp - 0xec]
call fcn.00404464
push 0
push edi
push dword [0x4187c0]
lea ecx, [ebp - 0xec]
push 0x11
call fcn.00407d48
lea ecx, [ebp - 0xec]
call fcn.00407abb
cmp byte [ebp + 0x63], 0
jne 0x406d68
cmp dword [0x418874], 0
jne 0x406d68
push 0
lea eax, [ebp + 0x1c]
push str.SelfDelete
push eax
call fcn.004026fc
add esp, 0xc
test eax, eax
je 0x406d68
cmp word [eax], 0x31
jne 0x406d68
sub esp, 0xc
mov ecx, esp
push 0x418838
call fcn.00401347
call fcn.0040521d
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 0x406d87
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.004044e0
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 0x406dc8
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