Function at 0x405636
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 0x40429a
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401b46
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406c1e
cmp dword [ebp - 0x1fc], 2
jne 0x406c1e
cmp dword [ebp - 0x208], 5
jb 0x406c1e
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 + 0x38], 0x415588
xor edi, edi
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x5f], 0
mov byte [ebp + 0x64], 0
call fcn.00401411
lea ecx, [ebp - 0x84]
call fcn.00401411
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], 0x415298
call fcn.004042e0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040492a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004025bc
lea eax, [ebp - 0x6c]
push eax
call fcn.00402c2d
mov ebx, dword [ebp - 0x6c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.0040422e
cmp eax, edi
pop ecx
pop ecx
je 0x40576c
cmp word [eax], 0x3a
jne 0x40576c
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405756
mov word [0x4187ac], ax
jmp 0x405756
inc ebx
inc ebx
cmp word [ebx], si
ja 0x405754
jmp 0x405764
cmp ax, si
ja 0x40576c
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x40575d
call fcn.0040479b
push str.sfxversion
push ebx
call fcn.0040422e
test eax, eax
pop ecx
pop ecx
je 0x4057b6
call fcn.00404d2c
xor esi, esi
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.0040432d
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 0x406c35
push str.sfxwaitall
push ebx
call fcn.0040422e
cmp eax, edi
pop ecx
pop ecx
je 0x4057d2
push eax
call fcn.00405113
pop ecx
mov esi, eax
jmp 0x405789
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.0040422e
cmp eax, edi
pop ecx
pop ecx
je 0x4057fe
mov byte [ebp + 0x65], 1
jmp 0x4057f4
cmp cx, si
ja 0x4057fc
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4057ed
mov ebx, eax
mov esi, 0x208
cmp dword [0x418850], esi
jg 0x405816
push esi
mov ecx, 0x418848
call fcn.0040112b
push esi
push dword [0x418848]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40583a
xor esi, esi
inc esi
push 6
push esi
call fcn.00408c95
pop ecx
pop ecx
jmp 0x405789
mov esi, dword [0x418848]
push esi
call fcn.00401117
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41884c], eax
call fcn.0040422e
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4059be
cmp word [esi], 0x3a
je 0x405876
push 0x64
pop esi
jmp 0x405789
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405941
dec eax
dec eax
je 0x40592d
dec eax
je 0x4058b3
dec eax
dec eax
je 0x4058a9
sub eax, 0x10
jne 0x40586e
mov esi, 0x477b
jmp 0x405789
mov esi, 0x2033
jmp 0x405789
cmp cx, 0x44
jne 0x4058ed
cmp word [esi + 4], 0x3a
jne 0x40586e
add esi, 6
jmp 0x4058db
cmp ax, 0x3a
je 0x4058e3
movzx eax, ax
push eax
mov ecx, 0x418888
call fcn.00401429
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x4058c5
cmp dword [0x41888c], edi
jne 0x4058f0
jmp 0x40586e
add esi, 4
mov dword [0x418880], edi
cmp word [esi], 0x3a
jne 0x405917
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x418880], eax
ja 0x405917
cmp eax, edi
jne 0x405921
mov dword [0x418880], 0xa
mov dword [0x418884], 1
jmp 0x40594f
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x418884], eax
jmp 0x40594f
mov dword [0x418884], 2
jmp 0x40594f
inc esi
inc esi
cmp word [esi], bx
ja 0x40594d
jmp 0x40595d
cmp ax, bx
ja 0x405965
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405956
push str.sfxconfig
push esi
mov ebx, esi
call fcn.0040422e
cmp eax, edi
pop ecx
pop ecx
je 0x4059be
cmp word [eax], 0x3a
jne 0x405988
jmp 0x405986
cmp cx, 0x20
ja 0x405990
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405980
mov ecx, dword [ebp - 0x3c]
mov word [ecx], di
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.0040492a
cmp dword [0x418884], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4059be
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x418848
call fcn.00401362
mov esi, 0x418848
push esi
mov ecx, 0x418818
call fcn.00401362
mov edi, 0x418824
push esi
mov ecx, edi
call fcn.00401362
push esi
call fcn.00402f1e
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405a76
mov ecx, dword [0x418818]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x41881c], eax
mov eax, dword [0x418848]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401329
mov eax, dword [0x418848]
lea eax, [esi + eax + 2]
mov esi, 0x41883c
push eax
mov ecx, esi
call fcn.00401329
push 0x2e
mov ecx, esi
call fcn.004025f2
test eax, eax
jle 0x405a43
mov ecx, dword [0x41883c]
and word [ecx + eax*2], 0
mov dword [0x418840], eax
push esi
mov esi, 0x418830
mov ecx, esi
call fcn.00401362
push 4
call fcn.00401fac
pop ecx
push eax
mov ecx, esi
call fcn.004025bc
mov eax, dword [0x41883c]
mov dword [0x4187dc], eax
mov eax, dword [0x418830]
mov dword [0x4187e4], eax
xor esi, esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405a8d
mov ecx, eax
call fcn.0040458f
mov edi, eax
jmp 0x405a8f
xor edi, edi
push edi
lea ecx, [ebp + 0x60]
call fcn.004010e2
push dword [0x418848]
mov ecx, edi
call fcn.0040e713
test al, al
jne 0x405acf
push dword [0x418848]
push 7
push 1
call fcn.00408c95
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x405ac8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405870
lea ecx, [ebp + 0x2c]
call fcn.0040261d
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x2c]
push eax
push edi
call fcn.00403afe
test al, al
pop ecx
pop ecx
jne 0x405b0e
push 9
push esi
call fcn.00408c95
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405b07
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405870
cmp dword [0x418884], esi
jne 0x405ba0
push str.sfxconfig
push ebx
call fcn.0040422e
cmp eax, esi
pop ecx
pop ecx
je 0x405ba0
cmp word [eax], 0x3a
jne 0x405b33
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405b84
cmp cx, 0x20
ja 0x405b4b
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405b3b
cmp word [eax], si
je 0x405b84
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.004053e8
test al, al
pop ecx
pop ecx
jne 0x405b84
push 0xa
push esi
call fcn.00408c95
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405b7d
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405870
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x405787
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x405787
lea ecx, [ebp + 0x18]
call fcn.0040f3d2
cmp dword [ebp + 0x30], esi
je 0x405bcd
push esi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.00403257
add esp, 0xc
test al, al
jne 0x405bcd
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405b73
cmp dword [0x418884], 4
je 0x405b84
mov eax, dword [0x418080]
mov esi, 0x418080
jmp 0x405c43
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.00401411
lea ecx, [ebp - 0x48]
call fcn.00401411
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401329
push dword [esi]
call fcn.00401fac
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401329
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4183ac
call fcn.00403130
lea ecx, [ebp - 0x54]
add esi, 0x10
call fcn.004024ac
mov eax, dword [esi]
test eax, eax
jne 0x405be2
lea eax, [ebp + 0x18]
push eax
call fcn.00404999
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x3c], ebx
cmp word [ebx], di
jbe 0x405c71
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405c5e
jmp 0x405c6e
cmp ax, di
ja 0x405c79
inc ebx
inc ebx
mov dword [ebp + 0x3c], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405c67
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405c8c
cmp ax, 0x2d
jne 0x405ee8
lea esi, [ebx + 2]
cmp word [esi], 0x21
jne 0x405c9f
cmp word [ebx + 4], di
jbe 0x405ed1
push 0x41578c
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405cfc
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405cc2
cmp ax, 0x39
jbe 0x405cda
cmp ax, 0x61
jb 0x405cce
cmp ax, 0x7a
jbe 0x405cda
cmp ax, 0x41
jb 0x405cea
cmp ax, 0x5a
ja 0x405cea
mov dword [ebp + 0x38], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405c59
cmp ax, di
ja 0x405ee8
mov dword [ebp + 0x38], 0x415588
jmp 0x405cdd
push 0x415784
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405d1f
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405e65
push 0x41577c
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405d63
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405ee8
cmp cx, 0x32
ja 0x405ee8
cmp word [ebx + 8], di
ja 0x405ee8
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.GUIMode
jmp 0x405e65
push 0x415774
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405d86
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405e65
push 0x41576c
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405da9
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405e65
push 0x415764
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405de6
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405dd0
cmp cx, 0x31
jne 0x405ee8
cmp word [ebx + 8], di
ja 0x405ee8
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.SelfDelete
jmp 0x405e65
push 0x41575c
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405e0a
cmp word [ebx + 6], di
ja 0x405ee8
mov byte [ebp + 0x5f], 1
jmp 0x405c59
push 0x415754
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405e47
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405ee8
cmp cx, 0x39
ja 0x405ee8
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x418380], eax
jmp 0x405c59
push 0x41574c
push esi
call fcn.00404051
test eax, eax
pop ecx
pop ecx
je 0x405e72
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.00404be3
add esp, 0xc
jmp 0x405c59
movzx eax, word [esi]
cmp ax, 0x79
je 0x405e81
cmp ax, 0x59
jne 0x405e90
cmp word [ebx + 4], di
ja 0x405e90
mov byte [ebp + 0x66], 1
jmp 0x405c59
cmp ax, 0x3f
je 0x405ea2
cmp ax, 0x68
je 0x405ea2
cmp ax, 0x48
jne 0x405eb1
cmp word [ebx + 4], di
ja 0x405eb1
mov byte [ebp + 0x64], 1
jmp 0x405c59
lea eax, [ebp + 0x18]
push eax
push esi
call fcn.00404465
test eax, eax
pop ecx
pop ecx
je 0x405ee8
cmp eax, 1
je 0x406012
mov ebx, eax
jmp 0x405c56
add ebx, 4
jmp 0x405edd
cmp ax, di
ja 0x405ee8
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
mov dword [ebp + 0x3c], ebx
jne 0x405ed6
lea eax, [ebp + 0x18]
push eax
call fcn.00404999
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x406065
test byte [0x4187ec], 4
je 0x406065
call fcn.0040225e
test eax, eax
jne 0x406065
lea ecx, [ebp - 8]
call fcn.00401411
lea ecx, [ebp + 0x4c]
call fcn.00401411
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040492a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402583
lea eax, [ebp - 0x20]
push eax
push edi
push str.sfxelevation
push 0x4155a8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push 0x22
push eax
call fcn.00404720
add esp, 0xc
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.0040473e
add esp, 0xc
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040473e
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040475c
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401454
add esp, 0xc
push eax
lea ecx, [ebp + 0x4c]
call fcn.00401362
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__
xor esi, esi
push esi
push 2
push dword [ebp + 0x4c]
call fcn.00404dda
add esp, 0x20
test eax, eax
push dword [ebp - 0x20]
jne 0x40602f
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 + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x10
cmp eax, esi
je 0x40600b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x405870
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
je 0x406028
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x405789
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 + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x10
cmp eax, esi
je 0x405789
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405789
lea eax, [ebp + 8]
push eax
mov ebx, str.SetEnvironment
lea eax, [ebp + 0x18]
push ebx
xor esi, esi
push eax
mov dword [ebp + 8], esi
call fcn.004024c2
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x406123
push edi
lea ecx, [ebp + 0x4c]
call fcn.00402583
push 0
push 0x3d
lea ecx, [ebp + 0x4c]
call fcn.004027ca
test eax, eax
jle 0x406118
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.00401411
lea ecx, [ebp - 0x48]
call fcn.00401411
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401362
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401329
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4183ac
call fcn.00403130
inc dword [ebp + 8]
lea ecx, [ebp - 0x54]
call fcn.004024ac
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.004024c2
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40608a
jmp 0x406121
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
call fcn.0040440e
cmp dword [0x418374], 0xffffffff
jne 0x406137
mov dword [0x418374], esi
cmp byte [ebp + 0x64], 0
je 0x4061a9
push esi
lea eax, [ebp + 0x18]
push str.HelpText
push eax
call fcn.004024c2
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x40615f
push 0x18
call fcn.00401fac
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf0]
call fcn.00403fe7
push esi
push edi
push dword [0x4187dc]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.00407bb7
lea ecx, [ebp - 0xf0]
call fcn.0040792a
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, esi
pop ecx
je 0x405787
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405787
cmp byte [ebp + 0x66], 0
je 0x4061b9
and dword [0x418374], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x18]
push str.InstallPath
push eax
call fcn.004024c2
add esp, 0xc
cmp eax, esi
mov edi, 0x41880c
je 0x4061e3
push eax
mov ecx, edi
call fcn.00401329
push edi
call fcn.00404000
push esi
lea eax, [ebp + 0x18]
push str.BeginPromptTimeout
push eax
call fcn.004024c2
add esp, 0x10
cmp eax, esi
je 0x40620c
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4187f8], eax
cmp dword [0x41888c], esi
je 0x406232
lea eax, [ebp + 0x18]
push eax
call fcn.00408e57
push dword [ebp + 0x2c]
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
pop ecx
cmp eax, esi
jmp 0x40601f
cmp dword [0x418884], 3
jne 0x406246
lea eax, [ebp + 0x18]
push eax
call fcn.00408d8a
jmp 0x40621d
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x18]
push str.BeginPrompt
push eax
call fcn.004024c2
add esp, 0xc
cmp eax, edi
je 0x4062a7
cmp byte [ebp + 0x66], 0
jne 0x4062a7
push eax
push dword [0x4187dc]
call fcn.00408330
test eax, eax
pop ecx
pop ecx
je 0x4063cb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x406295
mov byte [ebp + 0x67], 1
cmp dword [0x41886c], edi
je 0x4062a7
and dword [0x418374], 0xffffff7f
lea ecx, [ebp + 0x40]
call fcn.00401411
cmp byte [ebp + 0x67], 0
je 0x406331
mov edi, dword [ebp + 0x38]
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401329
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401429
push 0
push dword [ebp + 0x40]
lea eax, [ebp + 0x18]
push eax
call fcn.004024c2
add esp, 0xc
test eax, eax
je 0x4063e8
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x4062fb
cmp ax, 0x39
jbe 0x4062b8
cmp ax, 0x61
jb 0x406307
cmp ax, 0x7a
jbe 0x4062b8
cmp ax, 0x41
jb 0x406313
cmp ax, 0x5a
jbe 0x4062b8
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401329
mov eax, dword [ebp + 0x38]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401429
xor edi, edi
cmp dword [ebp + 0x44], edi
mov byte [ebp + 0x65], 0
jne 0x406379
push edi
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.004024c2
add esp, 0xc
test eax, eax
je 0x40635e
push ebx
lea ecx, [ebp + 0x40]
call fcn.00401329
cmp dword [ebp + 0x44], edi
mov byte [ebp + 0x65], 1
jne 0x406379
push edi
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.004024c2
add esp, 0xc
test eax, eax
je 0x406379
push esi
lea ecx, [ebp + 0x40]
call fcn.00401329
cmp byte [ebp + 0x67], 0
jne 0x40642b
cmp byte [ebp + 0x66], 0
jne 0x40642b
mov eax, dword [0x418374]
and ax, 0xc0
cmp al, 0x80
jne 0x40642b
push dword [0x4187d0]
push dword [0x4187d4]
call fcn.004083ae
test eax, eax
pop ecx
pop ecx
jne 0x40642b
cmp byte [0x4187fc], al
push dword [ebp + 0x40]
je 0x40641b
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406252
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
je 0x4063e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405870
push dword [ebp + 0x40]
push 0xe
push 0
call fcn.00408c95
push dword [ebp + 0x40]
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 + 0x60]
add esp, 0x14
test eax, eax
je 0x406414
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405870
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 0x4063d3
cmp dword [0x418810], edi
jne 0x406461
lea eax, [ebp - 0x78]
push str.7ZipSfx._03x
push eax
call fcn.0040435f
pop ecx
pop ecx
mov esi, 0x41880c
push eax
mov ecx, esi
call fcn.00401362
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x4187c0], 0
jmp 0x406498
mov esi, 0x41880c
push esi
lea ecx, [ebp + 0x4c]
call fcn.004012f7
lea eax, [ebp + 0x4c]
push eax
call fcn.00404000
cmp dword [ebp + 0x50], edi
pop ecx
jne 0x406489
lea eax, [ebp + 0x4c]
push eax
mov ecx, esi
call fcn.00401362
push dword [ebp + 0x4c]
mov byte [0x4187c0], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41880c]
pop ecx
mov ecx, dword [0x418810]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x4064b5
cmp dx, 0x2f
jne 0x4064c0
dec ecx
mov word [eax + ecx*2], di
mov dword [0x418810], ecx
cmp byte [ebp + 0x66], 0
je 0x4064cd
or dword [0x4187ec], 3
cmp dword [0x418880], edi
jne 0x4064e3
push esi
mov esi, dword [ebp + 0x60]
push esi
call fcn.00405170
pop ecx
pop ecx
jmp 0x4064f4
call fcn.004083ee
test eax, eax
mov esi, dword [ebp + 0x60]
jne 0x406520
mov eax, 0x80004005
cmp eax, edi
je 0x406520
call fcn.004042ca
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp esi, edi
pop ecx
pop ecx
je 0x406519
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x405870
call fcn.0040440e
cmp byte [ebp + 0x5f], 0
je 0x406538
cmp byte [0x4187c0], 0
jne 0x406b21
lea ecx, [ebp + 0x4c]
mov dword [ebp + 4], edi
call fcn.00401411
cmp byte [ebp + 0x67], 0
jne 0x406558
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004048d4
pop ecx
pop ecx
mov eax, dword [ebp + 0x38]
mov byte [ebp + 0x67], 0
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x24], edi
mov byte [ebp + 0x64], 0
call fcn.00401411
lea ecx, [ebp - 0x14]
call fcn.00401411
cmp dword [ebp + 0x44], edi
mov dword [ebp + 0x58], edi
jne 0x406629
cmp byte [0x4187c0], 0
jne 0x4069b9
mov edi, str.setup.exe
push edi
push 0x414600
lea eax, [ebp - 0x9c]
push 0x41880c
push eax
call fcn.0040473e
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040473e
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
call fcn.00401362
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 0x4069d0
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp - 0x14]
call fcn.00401329
lea eax, [ebp - 0x14]
push eax
call fcn.0040402e
mov esi, dword [ebp - 0x14]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
je 0x4066af
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x40660a
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x40]
lea eax, [ebp + 0x18]
push eax
call fcn.004024c2
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4065f2
mov edi, dword [ebp - 0x30]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
mov dword [ebp - 0x30], edi
jb 0x406659
cmp ax, 0x39
jbe 0x406679
cmp ax, 0x61
jb 0x406665
cmp ax, 0x7a
jbe 0x406679
cmp ax, 0x41
jb 0x406a1a
cmp ax, 0x5a
ja 0x406a1a
push str.AutoInstall
lea ecx, [ebp + 0x40]
call fcn.00401329
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401429
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 0x406562
push ebx
push str.hidcon
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
je 0x4066cd
or dword [ebp + 0x58], 1
mov esi, eax
jmp 0x40660a
push ebx
push str.nowait
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
je 0x4066f1
cmp byte [0x4187c0], 0
mov esi, eax
je 0x40660a
jmp 0x406706
push ebx
push str.forcenowait
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
je 0x406712
mov esi, eax
or dword [ebp + 0x58], 0x10000
jmp 0x40660a
push 2
push 0x415754
push esi
call fcn.0040408b
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x406748
cmp dword [0x418380], 0xffffffff
jne 0x406741
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x418380], eax
mov esi, edi
jmp 0x40660a
push 3
push 0x4156cc
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
je 0x406768
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x2c], ecx
jmp 0x406786
push 3
push 0x4156c4
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
je 0x40678d
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x28], ecx
mov esi, eax
jmp 0x40660a
push ebx
push 0x4156bc
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
jne 0x4067e7
push ebx
push str.i386
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
jne 0x4067e7
push ebx
push 0x4156a4
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
jne 0x4067d9
push ebx
push 0x41569c
push esi
call fcn.0040408b
add esp, 0xc
cmp eax, ebx
je 0x4067f5
mov esi, eax
mov dword [ebp - 0x24], 2
jmp 0x40660a
mov esi, eax
mov dword [ebp - 0x24], 1
jmp 0x40660a
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 0xc]
je 0x406850
cmp word [esi], 0x22
je 0x406823
mov edi, 0x41557c
push edi
call fcn.00401329
push esi
lea ecx, [ebp + 0xc]
call fcn.004025bc
push edi
lea ecx, [ebp + 0xc]
call fcn.004025bc
jmp 0x406829
push esi
call fcn.00401329
push ebx
lea eax, [ebp + 0x18]
push str.ExecuteParameters
push eax
call fcn.004024c2
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x406862
push 0x415698
lea ecx, [ebp + 0xc]
call fcn.004025bc
jmp 0x406859
lea eax, [ebp + 0x4c]
push eax
call fcn.00401362
push esi
lea ecx, [ebp + 0xc]
call fcn.004025bc
lea ecx, [ebp - 8]
call fcn.00401411
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push edi
call fcn.0040492a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00402583
lea eax, [ebp - 8]
push eax
call fcn.0040402e
cmp dword [0x418884], ebx
pop ecx
jne 0x406970
push dword [ebp - 0x24]
call fcn.0040222d
test eax, eax
pop ecx
je 0x406970
mov esi, dword [ebp + 0x3c]
cmp word [esi], bx
je 0x4068d3
push 0x20
lea ecx, [ebp - 0x20]
call fcn.00401429
push esi
lea ecx, [ebp - 0x20]
call fcn.004025bc
cmp word [esi], bx
je 0x4068d3
inc esi
inc esi
cmp word [esi], bx
jne 0x4068c9
mov dword [ebp + 0x3c], esi
lea eax, [ebp - 0x20]
push eax
call fcn.0040402e
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x406952
lea eax, [ebp - 0x20]
push eax
push 0x4155c8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x22
push eax
call fcn.00404720
add esp, 0xc
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0040473e
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401454
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 [0x41880c]
push dword [ebp + 0x58]
push dword [ebp - 0x60]
call fcn.00404dda
add esp, 0x20
test eax, eax
push dword [ebp - 0x60]
je 0x406a31
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40696b
push dword [ebp + 0x58]
push dword [ebp - 0x20]
push dword [ebp - 8]
call fcn.00404eb1
add esp, 0xc
cmp eax, ebx
jne 0x406a39
call fcn.004021c5
cmp byte [ebp + 0x65], 0
jne 0x406a9c
cmp byte [ebp + 0x67], 0
jne 0x406a9c
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x50], ebx
mov word [eax], bx
push dword [ebp - 0x20]
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__
mov esi, dword [ebp + 0x60]
add esp, 0x10
jmp 0x4066a8
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 0x406ac2
call fcn.004042ca
push 0xf
push 0
call fcn.00408c95
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 + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x1c
test esi, esi
je 0x406a13
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 7
jmp 0x405870
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 0x406ac0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406a40
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x10
push 1
call fcn.00408c95
call fcn.004042ca
push dword [ebp - 0x20]
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 + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x28
cmp eax, ebx
je 0x406a95
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405870
push dword [ebp - 0x20]
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__
mov esi, dword [ebp + 0x60]
add esp, 0x10
xor edi, edi
cmp dword [0x418884], edi
jne 0x406b18
call fcn.0040440e
push dword [ebp - 0x2c]
lea eax, [ebp + 0x18]
push dword [ebp + 0x38]
push str.Shortcut
push eax
push 0x40556b
call fcn.00404c41
add esp, 0x14
push dword [0x418818]
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 0x404560
call fcn.00404c41
add esp, 0x14
call fcn.004042ca
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x418380], 0xffffffff
jne 0x406b36
cmp byte [ebp + 0x66], 0
jne 0x406b95
mov dword [0x418380], edi
cmp dword [0x418380], edi
jle 0x406b95
push 0
lea eax, [ebp + 0x18]
push str.FinishMessage
push eax
call fcn.004024c2
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406b95
mov eax, 0x3e7
cmp dword [0x418380], eax
jle 0x406b69
mov dword [0x418380], eax
lea ecx, [ebp - 0xec]
call fcn.004042b1
push 0
push edi
push dword [0x4187dc]
lea ecx, [ebp - 0xec]
push 0x11
call fcn.00407bb7
lea ecx, [ebp - 0xec]
call fcn.0040792a
cmp byte [ebp + 0x5f], 0
jne 0x406bd8
cmp dword [0x418884], 0
jne 0x406bd8
push 0
lea eax, [ebp + 0x18]
push str.SelfDelete
push eax
call fcn.004024c2
add esp, 0xc
test eax, eax
je 0x406bd8
cmp word [eax], 0x31
jne 0x406bd8
sub esp, 0xc
mov ecx, esp
push 0x418848
call fcn.004012f7
call fcn.0040522b
add esp, 0xc
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
test esi, esi
pop ecx
pop ecx
je 0x406bf4
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.0040432d
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 0x406c35
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