Function at 0x405717
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 0x404450
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401d0d
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406d43
cmp dword [ebp - 0x1fc], 2
jne 0x406d43
cmp dword [ebp - 0x208], 5
jb 0x406d43
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], 0x4196dc
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.00401444
lea ecx, [ebp - 0x84]
call fcn.00401444
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], 0x419410
call fcn.004044af
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404a8d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004027ae
lea eax, [ebp - 0x6c]
push eax
call fcn.00402dc2
mov ebx, dword [ebp - 0x6c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x40584d
cmp word [eax], 0x3a
jne 0x40584d
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405837
mov word [0x41c7f0], ax
jmp 0x405837
inc ebx
inc ebx
cmp word [ebx], si
ja 0x405835
jmp 0x405845
cmp ax, si
ja 0x40584d
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x40583e
call fcn.004048f9
push str.sfxversion
push ebx
call fcn.004043e4
test eax, eax
pop ecx
pop ecx
je 0x405897
call fcn.00404e8f
xor esi, esi
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.004044fc
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 0x406d5a
push str.sfxwaitall
push ebx
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x4058b3
push eax
call fcn.0040529d
pop ecx
mov esi, eax
jmp 0x40586a
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x4058df
mov byte [ebp + 0x65], 1
jmp 0x4058d5
cmp cx, si
ja 0x4058dd
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4058ce
mov ebx, eax
mov esi, 0x208
cmp dword [0x41c8a0], esi
jg 0x4058f7
push esi
mov ecx, 0x41c898
call fcn.0040115e
push esi
push dword [0x41c898]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40591b
xor esi, esi
inc esi
push 6
push esi
call fcn.00408db1
pop ecx
pop ecx
jmp 0x40586a
mov esi, dword [0x41c898]
push esi
call fcn.0040114a
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41c89c], eax
call fcn.004043e4
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405ad5
cmp word [esi], 0x3a
je 0x405957
push 0x64
pop esi
jmp 0x40586a
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405a58
dec eax
dec eax
je 0x405a44
dec eax
je 0x4059c3
sub eax, 0xb
je 0x40598b
sub eax, 7
jne 0x40594f
mov esi, 0x4a98
jmp 0x40586a
cmp word [esi + 4], 0x3a
jne 0x405868
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4059bb
dec eax
je 0x4059b7
dec eax
je 0x4059b3
dec eax
je 0x4059b7
dec eax
jne 0x405868
push 7
jmp 0x405951
push 0x1f
jmp 0x405951
push 0x7f
jmp 0x405951
xor esi, esi
inc esi
jmp 0x40586a
cmp cx, 0x44
jne 0x405a04
cmp word [esi + 4], 0x3a
jne 0x40594f
add esi, 6
jmp 0x4059ef
cmp ax, 0x3a
je 0x4059f7
movzx eax, ax
push eax
mov ecx, 0x41c8d8
call fcn.00401512
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x4059d9
cmp dword [0x41c8dc], edi
jne 0x405a07
jmp 0x40594f
add esi, 4
mov dword [0x41c8d0], edi
cmp word [esi], 0x3a
jne 0x405a2e
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41c8d0], eax
ja 0x405a2e
cmp eax, edi
jne 0x405a38
mov dword [0x41c8d0], 0xa
mov dword [0x41c8d4], 1
jmp 0x405a66
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41c8d4], eax
jmp 0x405a66
mov dword [0x41c8d4], 2
jmp 0x405a66
inc esi
inc esi
cmp word [esi], bx
ja 0x405a64
jmp 0x405a74
cmp ax, bx
ja 0x405a7c
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405a6d
push str.sfxconfig
push esi
mov ebx, esi
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x405ad5
cmp word [eax], 0x3a
jne 0x405a9f
jmp 0x405a9d
cmp cx, 0x20
ja 0x405aa7
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405a97
mov ecx, dword [ebp - 0x3c]
mov word [ecx], di
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.00404a8d
cmp dword [0x41c8d4], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405ad5
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x41c898
call fcn.00401395
mov esi, 0x41c898
push esi
mov ecx, 0x41c85c
call fcn.00401395
mov edi, 0x41c868
push esi
mov ecx, edi
call fcn.00401395
push esi
call fcn.004030b3
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405b8d
mov ecx, dword [0x41c85c]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x41c860], eax
mov eax, dword [0x41c898]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.0040135c
mov eax, dword [0x41c898]
lea eax, [esi + eax + 2]
mov esi, 0x41c880
push eax
mov ecx, esi
call fcn.0040135c
push 0x2e
mov ecx, esi
call fcn.004027e4
test eax, eax
jle 0x405b5a
mov ecx, dword [0x41c880]
and word [ecx + eax*2], 0
mov dword [0x41c884], eax
push esi
mov esi, 0x41c874
mov ecx, esi
call fcn.00401395
push 4
call fcn.00402173
pop ecx
push eax
mov ecx, esi
call fcn.004027ae
mov eax, dword [0x41c880]
mov dword [0x41c820], eax
mov eax, dword [0x41c874]
mov dword [0x41c828], eax
xor esi, esi
call fcn.0040238c
push eax
mov ecx, 0x41c88c
call fcn.0040135c
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405bb5
mov ecx, eax
call fcn.0040475e
mov dword [ebp + 0x54], eax
jmp 0x405bb8
mov dword [ebp + 0x54], esi
mov edi, dword [ebp + 0x54]
push edi
lea ecx, [ebp + 0x5c]
call fcn.00404467
push dword [0x41c898]
lea ecx, [edi + 0xc]
call fcn.0040fa63
test al, al
jne 0x405bfc
push dword [0x41c898]
push 7
push 1
call fcn.00408db1
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, esi
je 0x405bf5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405951
lea ecx, [ebp + 0x2c]
call fcn.0040280f
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x2c]
push eax
push edi
call fcn.00403c7f
test al, al
pop ecx
pop ecx
jne 0x405c3b
push 9
push esi
call fcn.00408db1
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405c34
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405951
cmp dword [0x41c8d4], esi
jne 0x405ccd
push str.sfxconfig
push ebx
call fcn.004043e4
cmp eax, esi
pop ecx
pop ecx
je 0x405ccd
cmp word [eax], 0x3a
jne 0x405c60
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405cb1
cmp cx, 0x20
ja 0x405c78
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405c68
cmp word [eax], si
je 0x405cb1
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.004054b7
test al, al
pop ecx
pop ecx
jne 0x405cb1
push 0xa
push esi
call fcn.00408db1
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405caa
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405951
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x405868
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x405868
lea ecx, [ebp + 0x18]
call fcn.0040fe66
cmp dword [ebp + 0x30], esi
je 0x405cfa
push esi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004033ec
add esp, 0xc
test al, al
jne 0x405cfa
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405ca0
cmp dword [0x41c8d4], 4
je 0x405cb1
mov eax, dword [0x41c090]
mov esi, 0x41c090
jmp 0x405d70
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.00401444
lea ecx, [ebp - 0x48]
call fcn.00401444
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040135c
push dword [esi]
call fcn.00402173
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0040135c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x41c3ac
call fcn.004032c5
lea ecx, [ebp - 0x54]
add esi, 0x10
call fcn.00402686
mov eax, dword [esi]
test eax, eax
jne 0x405d0f
lea eax, [ebp + 0x18]
push eax
call fcn.00404afc
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x14], ebx
cmp word [ebx], di
jbe 0x405d9e
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405d8b
jmp 0x405d9b
cmp ax, di
ja 0x405da6
inc ebx
inc ebx
mov dword [ebp + 0x14], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405d94
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405db9
cmp ax, 0x2d
jne 0x405ffe
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x405ff8
push 0x419914
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405e23
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405de9
cmp ax, 0x39
jbe 0x405e01
cmp ax, 0x61
jb 0x405df5
cmp ax, 0x7a
jbe 0x405e01
cmp ax, 0x41
jb 0x405e11
cmp ax, 0x5a
ja 0x405e11
mov dword [ebp + 0x38], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405d86
cmp ax, di
ja 0x405ffe
mov dword [ebp + 0x38], 0x4196dc
jmp 0x405e04
push 0x41990c
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405e46
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405f8c
push 0x419904
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405e8a
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405ffe
cmp cx, 0x32
ja 0x405ffe
cmp word [ebx + 8], di
ja 0x405ffe
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.GUIMode
jmp 0x405f8c
push 0x4198fc
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405ead
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405f8c
push 0x4198f4
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405ed0
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405f8c
push 0x4198ec
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f0d
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405ef7
cmp cx, 0x31
jne 0x405ffe
cmp word [ebx + 8], di
ja 0x405ffe
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.SelfDelete
jmp 0x405f8c
push 0x4198e4
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f31
cmp word [ebx + 6], di
ja 0x405ffe
mov byte [ebp + 0x63], 1
jmp 0x405d86
push 0x4198dc
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f6e
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405ffe
cmp cx, 0x39
ja 0x405ffe
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c380], eax
jmp 0x405d86
push 0x4198d4
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f99
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.00404d46
add esp, 0xc
jmp 0x405d86
movzx eax, word [esi]
cmp ax, 0x79
je 0x405fa8
cmp ax, 0x59
jne 0x405fb7
cmp word [ebx + 4], di
ja 0x405fb7
mov byte [ebp + 0x66], 1
jmp 0x405d86
cmp ax, 0x3f
je 0x405fc9
cmp ax, 0x68
je 0x405fc9
cmp ax, 0x48
jne 0x405fd8
cmp word [ebx + 4], di
ja 0x405fd8
mov byte [ebp + 0x64], 1
jmp 0x405d86
lea eax, [ebp + 0x18]
push eax
push esi
call fcn.00404634
test eax, eax
pop ecx
pop ecx
je 0x405ffe
cmp eax, 1
je 0x40613c
mov ebx, eax
jmp 0x405d83
add ebx, 4
mov dword [ebp + 0x14], ebx
lea eax, [ebp + 0x18]
push eax
call fcn.00404afc
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x40618f
test byte [0x41c830], 4
je 0x40618f
call fcn.0040243a
test eax, eax
jne 0x40618f
lea ecx, [ebp - 8]
call fcn.00401444
lea ecx, [ebp + 0x48]
call fcn.00401444
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404a8d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040275d
lea eax, [ebp - 0x24]
push eax
push edi
push str.sfxelevation
push 0x419740
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push 0x22
push eax
call fcn.0040489f
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.004048bd
add esp, 0xc
push eax
lea eax, [ebp + 8]
push eax
call fcn.004048bd
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004048db
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040153d
add esp, 0xc
push eax
lea ecx, [ebp + 0x48]
call fcn.00401395
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.00404f5d
add esp, 0xc
test eax, eax
push dword [ebp - 0x24]
jne 0x406159
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 0x406135
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x405951
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
je 0x406152
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x40586a
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 0x40586a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40586a
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.0040269c
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x40624d
push edi
lea ecx, [ebp + 0x48]
call fcn.0040275d
push 0x3d
push dword [ebp + 0x48]
call fcn.0040fd13
test eax, eax
pop ecx
pop ecx
jle 0x406242
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.00401444
lea ecx, [ebp - 0x48]
call fcn.00401444
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401395
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040135c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x41c3ac
call fcn.004032c5
inc dword [ebp + 4]
lea ecx, [ebp - 0x54]
call fcn.00402686
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.0040269c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4061b4
jmp 0x40624b
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
call fcn.004045dd
cmp dword [0x41c374], 0xffffffff
jne 0x406261
mov dword [0x41c374], esi
cmp byte [ebp + 0x64], 0
je 0x4062d3
push esi
lea eax, [ebp + 0x18]
push str.HelpText
push eax
call fcn.0040269c
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x406289
push 0x18
call fcn.00402173
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf0]
call fcn.00404197
push esi
push edi
push dword [0x41c820]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.00407cf6
lea ecx, [ebp - 0xf0]
call fcn.00407a4d
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, esi
pop ecx
je 0x405868
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405868
cmp byte [ebp + 0x66], 0
je 0x4062e3
and dword [0x41c374], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x18]
push str.InstallPath
push eax
call fcn.0040269c
add esp, 0xc
cmp eax, esi
mov edi, 0x41c850
je 0x40630d
push eax
mov ecx, edi
call fcn.0040135c
push edi
call fcn.004041b0
push esi
lea eax, [ebp + 0x18]
push str.BeginPromptTimeout
push eax
call fcn.0040269c
add esp, 0x10
cmp eax, esi
je 0x406336
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c83c], eax
cmp dword [0x41c8dc], esi
je 0x40635c
lea eax, [ebp + 0x18]
push eax
call fcn.00408f73
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 0x406149
cmp dword [0x41c8d4], 3
jne 0x406370
lea eax, [ebp + 0x18]
push eax
call fcn.00408ea6
jmp 0x406347
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x18]
push str.BeginPrompt
push eax
call fcn.0040269c
add esp, 0xc
cmp eax, edi
je 0x4063d1
cmp byte [ebp + 0x66], 0
jne 0x4063d1
push eax
push dword [0x41c820]
call fcn.00408453
test eax, eax
pop ecx
pop ecx
je 0x4064f5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4063bf
mov byte [ebp + 0x67], 1
cmp dword [0x41c8bc], edi
je 0x4063d1
and dword [0x41c374], 0xffffff7f
lea ecx, [ebp + 0x3c]
call fcn.00401444
cmp byte [ebp + 0x67], 0
je 0x40645b
mov edi, dword [ebp + 0x38]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040135c
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401512
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x406512
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x406425
cmp ax, 0x39
jbe 0x4063e2
cmp ax, 0x61
jb 0x406431
cmp ax, 0x7a
jbe 0x4063e2
cmp ax, 0x41
jb 0x40643d
cmp ax, 0x5a
jbe 0x4063e2
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040135c
mov eax, dword [ebp + 0x38]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401512
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x4064a3
push edi
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x406488
push ebx
lea ecx, [ebp + 0x3c]
call fcn.0040135c
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x4064a3
push edi
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x4064a3
push esi
lea ecx, [ebp + 0x3c]
call fcn.0040135c
cmp byte [ebp + 0x67], 0
jne 0x406555
cmp byte [ebp + 0x66], 0
jne 0x406555
mov eax, dword [0x41c374]
and ax, 0xc0
cmp al, 0x80
jne 0x406555
push dword [0x41c814]
push dword [0x41c818]
call fcn.004084d1
test eax, eax
pop ecx
pop ecx
jne 0x406555
cmp byte [0x41c840], al
push dword [ebp + 0x3c]
je 0x406545
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40637c
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
je 0x40650b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405951
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.00408db1
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 0x40653e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405951
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 0x4064fd
cmp dword [0x41c854], edi
jne 0x40658b
lea eax, [ebp - 0x78]
push str.7ZipSfx._03x
push eax
call fcn.0040452e
pop ecx
pop ecx
mov esi, 0x41c850
push eax
mov ecx, esi
call fcn.00401395
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41c804], 0
jmp 0x4065c2
mov esi, 0x41c850
push esi
lea ecx, [ebp + 0x48]
call fcn.0040132a
lea eax, [ebp + 0x48]
push eax
call fcn.004041b0
cmp dword [ebp + 0x4c], edi
pop ecx
jne 0x4065b3
lea eax, [ebp + 0x48]
push eax
mov ecx, esi
call fcn.00401395
push dword [ebp + 0x48]
mov byte [0x41c804], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41c850]
pop ecx
mov ecx, dword [0x41c854]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x4065df
cmp dx, 0x2f
jne 0x4065ea
dec ecx
mov word [eax + ecx*2], di
mov dword [0x41c854], ecx
cmp byte [ebp + 0x66], 0
je 0x4065f7
or dword [0x41c830], 3
cmp dword [0x41c8d0], edi
jne 0x40660c
push esi
push dword [ebp + 0x54]
call fcn.00401718
pop ecx
pop ecx
jmp 0x40661a
call fcn.00408511
test eax, eax
jne 0x406649
mov eax, 0x80004005
cmp eax, edi
je 0x406649
call fcn.00404499
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 0x406642
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x405951
call fcn.004045dd
cmp byte [ebp + 0x63], 0
je 0x406661
cmp byte [0x41c804], 0
jne 0x406c3f
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x54], edi
call fcn.00401444
cmp byte [ebp + 0x67], 0
jne 0x406681
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00404a37
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.00401444
lea ecx, [ebp - 0x14]
call fcn.00401444
cmp dword [ebp + 0x40], edi
mov dword [ebp + 0x58], edi
jne 0x406752
cmp byte [0x41c804], 0
jne 0x406ad5
mov edi, str.setup.exe
push edi
push 0x41872c
lea eax, [ebp - 0x9c]
push 0x41c850
push eax
call fcn.004048bd
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004048bd
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.00401395
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 0x406aec
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp - 0x14]
call fcn.0040135c
lea eax, [ebp - 0x14]
push eax
call fcn.004041e4
mov esi, dword [ebp - 0x14]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x4067d8
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x406733
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.0040269c
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40671b
mov esi, dword [ebp - 0x2c]
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x2c], esi
jb 0x406782
cmp ax, 0x39
jbe 0x4067a2
cmp ax, 0x61
jb 0x40678e
cmp ax, 0x7a
jbe 0x4067a2
cmp ax, 0x41
jb 0x406b3b
cmp ax, 0x5a
ja 0x406b3b
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040135c
movzx eax, word [esi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401512
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 0x40668b
push ebx
push str.hidcon
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x4067f6
or dword [ebp + 0x58], 1
mov esi, eax
jmp 0x406733
push ebx
push str.nowait
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x40681a
cmp byte [0x41c804], 0
mov esi, eax
je 0x406733
jmp 0x40682f
push ebx
push str.forcenowait
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x40683b
mov esi, eax
or dword [ebp + 0x58], 0x10000
jmp 0x406733
push 2
push 0x4198dc
push esi
call fcn.00404241
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x406871
cmp dword [0x41c380], 0xffffffff
jne 0x40686a
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c380], eax
mov esi, edi
jmp 0x406733
push 3
push 0x419854
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x406891
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x30], ecx
jmp 0x4068af
push 3
push 0x41984c
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x4068b6
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x28], ecx
mov esi, eax
jmp 0x406733
push ebx
push 0x41857c
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
jne 0x406910
push ebx
push str.i386
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
jne 0x406910
push ebx
push 0x419834
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
jne 0x406902
push ebx
push 0x418574
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x40691e
mov esi, eax
mov dword [ebp - 0x18], 2
jmp 0x406733
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x406733
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 8]
je 0x406979
cmp word [esi], 0x22
je 0x40694c
mov edi, 0x4196d0
push edi
call fcn.0040135c
push esi
lea ecx, [ebp + 8]
call fcn.004027ae
push edi
lea ecx, [ebp + 8]
call fcn.004027ae
jmp 0x406952
push esi
call fcn.0040135c
push ebx
lea eax, [ebp + 0x18]
push str.ExecuteParameters
push eax
call fcn.0040269c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40698b
push 0x419830
lea ecx, [ebp + 8]
call fcn.004027ae
jmp 0x406982
lea eax, [ebp + 0x48]
push eax
call fcn.00401395
push esi
lea ecx, [ebp + 8]
call fcn.004027ae
lea ecx, [ebp - 8]
call fcn.00401444
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
call fcn.00404a8d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040275d
lea eax, [ebp - 8]
push eax
call fcn.004041e4
cmp dword [0x41c8d4], ebx
pop ecx
jne 0x406a8f
push dword [ebp - 0x18]
call fcn.00402409
test eax, eax
pop ecx
je 0x406a8f
mov esi, dword [ebp + 0x14]
cmp word [esi], bx
je 0x4069f2
push esi
lea ecx, [ebp - 0x24]
call fcn.004027ae
cmp word [esi], bx
je 0x4069f2
inc esi
inc esi
cmp word [esi], bx
jne 0x4069e8
mov dword [ebp + 0x14], esi
lea eax, [ebp - 0x24]
push eax
call fcn.004041e4
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x406a71
lea eax, [ebp - 0x24]
push eax
push 0x419760
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x22
push eax
call fcn.0040489f
add esp, 0xc
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004048bd
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040153d
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 [0x41c850]
push dword [ebp + 0x58]
push dword [ebp - 0x60]
call fcn.00404f5d
add esp, 0x20
test eax, eax
push dword [ebp - 0x60]
je 0x406b52
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406a8a
push dword [ebp + 0x58]
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.00405034
add esp, 0xc
cmp eax, ebx
jne 0x406b5a
call fcn.004023a1
cmp byte [ebp + 0x65], 0
jne 0x406bbd
cmp byte [ebp + 0x67], 0
jne 0x406bbd
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 0x4067d1
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 0x406be0
call fcn.00404499
push 0xf
push 0
call fcn.00408db1
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 0x4059af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4059af
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 0x406bde
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406b61
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x10
push 1
call fcn.00408db1
call fcn.00404499
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 0x406bb6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405951
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 [0x41c8d4], edi
jne 0x406c36
call fcn.004045dd
push dword [ebp - 0x30]
lea eax, [ebp + 0x18]
push dword [ebp + 0x38]
push str.Shortcut
push eax
push 0x40563a
call fcn.00404da4
add esp, 0x14
push dword [0x41c85c]
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 0x40472f
call fcn.00404da4
add esp, 0x14
call fcn.00404499
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41c380], 0xffffffff
jne 0x406c58
cmp byte [ebp + 0x66], 0
jne 0x406cb7
mov dword [0x41c380], 1
cmp dword [0x41c380], edi
jle 0x406cb7
push 0
lea eax, [ebp + 0x18]
push str.FinishMessage
push eax
call fcn.0040269c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406cb7
mov eax, 0x3e7
cmp dword [0x41c380], eax
jle 0x406c8b
mov dword [0x41c380], eax
lea ecx, [ebp - 0xec]
call fcn.00404480
push 0
push edi
push dword [0x41c820]
lea ecx, [ebp - 0xec]
push 0x11
call fcn.00407cf6
lea ecx, [ebp - 0xec]
call fcn.00407a4d
cmp byte [ebp + 0x63], 0
jne 0x406cfa
cmp dword [0x41c8d4], 0
jne 0x406cfa
push 0
lea eax, [ebp + 0x18]
push str.SelfDelete
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x406cfa
cmp word [eax], 0x31
jne 0x406cfa
sub esp, 0xc
mov ecx, esp
push 0x41c898
call fcn.0040132a
call fcn.004052fa
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 0x406d19
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.004044fc
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 0x406d5a
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