Function at 0x404f28
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, 0x278
push ebx
push esi
push edi
push 0x403e1f
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401e41
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40657e
cmp dword [ebp - 0x200], 2
jne 0x40657e
cmp dword [ebp - 0x20c], 5
jb 0x40657e
or dword [ebp - 0x3c], 0xffffffff
or dword [ebp - 0x38], 0xffffffff
lea ecx, [ebp - 0x4c]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x44], 0x417704
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.0040dede
lea ecx, [ebp - 0x88]
call fcn.0040dede
push 0x4179c8
lea ecx, [ebp - 0x7c]
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
call fcn.0040e250
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403ea5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040e2d7
lea eax, [ebp - 0x7c]
push eax
call fcn.00402fd0
mov ebx, dword [ebp - 0x7c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403db3
cmp eax, edi
pop ecx
pop ecx
push 0x20
pop esi
je 0x405054
cmp word [eax], 0x3a
jne 0x405054
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x40503e
mov word [0x41a690], ax
jmp 0x40503e
inc ebx
inc ebx
cmp word [ebx], si
ja 0x40503c
jmp 0x40504c
cmp ax, si
ja 0x405054
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x405045
call fcn.00404cd5
push str.sfxversion
push ebx
call fcn.00403db3
test eax, eax
pop ecx
pop ecx
je 0x40509e
call fcn.00404441
xor esi, esi
push dword [ebp - 0x7c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x50]
call fcn.00404c71
push dword [ebp - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, esi
jmp 0x406595
push str.sfxwaitall
push ebx
call fcn.00403db3
cmp eax, edi
pop ecx
pop ecx
je 0x4050ba
push eax
call fcn.00404608
pop ecx
mov esi, eax
jmp 0x405071
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.00403db3
cmp eax, edi
pop ecx
pop ecx
je 0x4050e6
mov byte [ebp + 0x65], 1
jmp 0x4050dc
cmp cx, si
ja 0x4050e4
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4050d5
mov ebx, eax
mov eax, 0x208
push eax
push eax
mov ecx, 0x41a738
call fcn.00402cf8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405115
xor esi, esi
inc esi
push 6
push esi
call fcn.004085fa
pop ecx
pop ecx
jmp 0x405071
mov esi, dword [0x41a738]
push esi
call fcn.004019f3
mov dword [0x41a73c], eax
mov dword [esp], str.sfxtest
push ebx
mov word [esi + eax*2], di
call fcn.00403db3
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4052d9
cmp word [esi], 0x3a
je 0x405151
push 0x64
pop esi
jmp 0x405071
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x40525c
dec eax
dec eax
je 0x405248
dec eax
je 0x4051c7
sub eax, 0xb
je 0x405185
sub eax, 7
jne 0x405149
mov esi, 0x4eeb
jmp 0x405071
cmp word [esi + 4], 0x3a
jne 0x40506f
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4051bf
dec eax
je 0x4051b5
dec eax
je 0x4051b1
dec eax
je 0x4051ad
dec eax
jne 0x40506f
push 7
jmp 0x40514b
push 0x7f
jmp 0x40514b
push 0x1f
jmp 0x40514b
mov esi, 0x437
jmp 0x405071
xor esi, esi
inc esi
jmp 0x405071
cmp cx, 0x44
jne 0x405208
cmp word [esi + 4], 0x3a
jne 0x405149
add esi, 6
jmp 0x4051f3
cmp ax, 0x3a
je 0x4051fb
movzx eax, ax
push eax
mov ecx, 0x41a784
call fcn.00401192
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x4051dd
cmp dword [0x41a788], edi
jne 0x40520b
jmp 0x405149
add esi, 4
mov dword [0x41a77c], edi
cmp word [esi], 0x3a
jne 0x405232
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41a77c], eax
ja 0x405232
cmp eax, edi
jne 0x40523c
mov dword [0x41a77c], 0xa
mov dword [0x41a780], 1
jmp 0x40526a
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41a780], eax
jmp 0x40526a
mov dword [0x41a780], 2
jmp 0x40526a
inc esi
inc esi
cmp word [esi], bx
ja 0x405268
jmp 0x405278
cmp ax, bx
ja 0x405280
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405271
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403db3
cmp eax, edi
pop ecx
pop ecx
je 0x4052d9
cmp word [eax], 0x3a
jne 0x4052a3
jmp 0x4052a1
cmp cx, 0x20
ja 0x4052ab
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x40529b
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], edi
mov word [ecx], di
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.00403ea5
cmp dword [0x41a780], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4052d9
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x41a738
call fcn.0040df29
mov esi, 0x41a738
push esi
mov ecx, 0x41a6fc
call fcn.0040df29
mov edi, 0x41a708
push esi
mov ecx, edi
call fcn.0040df29
push esi
call fcn.00401e1e
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405390
mov dword [0x41a700], eax
lea esi, [eax + eax]
mov eax, dword [0x41a6fc]
and word [eax + esi], 0
mov eax, dword [0x41a738]
lea eax, [eax + esi + 2]
push eax
mov ecx, edi
call fcn.0040e27f
mov eax, dword [0x41a738]
lea eax, [eax + esi + 2]
mov esi, 0x41a720
push eax
mov ecx, esi
call fcn.0040e27f
push 0x2e
mov ecx, esi
call fcn.0040dfe0
test eax, eax
jle 0x40535d
mov ecx, dword [0x41a720]
mov dword [0x41a724], eax
and word [ecx + eax*2], 0
push esi
mov esi, 0x41a714
mov ecx, esi
call fcn.0040df29
push 4
call fcn.004022a7
pop ecx
push eax
mov ecx, esi
call fcn.0040e2d7
mov eax, dword [0x41a720]
mov dword [0x41a6c0], eax
mov eax, dword [0x41a714]
mov dword [0x41a6c8], eax
xor esi, esi
call fcn.004024c0
push eax
mov ecx, 0x41a72c
call fcn.0040e27f
push 0x24
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4053b8
mov ecx, eax
call fcn.0040ea49
mov dword [ebp + 0x48], eax
jmp 0x4053bb
mov dword [ebp + 0x48], esi
mov edi, dword [ebp + 0x48]
push edi
lea ecx, [ebp + 0x60]
call fcn.0040fbbd
push dword [0x41a738]
lea ecx, [edi + 0x14]
call fcn.0040d910
test al, al
jne 0x4053ff
push dword [0x41a738]
push 7
push 1
call fcn.004085fa
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x4053f8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x40514b
lea ecx, [ebp + 0x38]
call fcn.0040dd2c
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x38]
push eax
push edi
call fcn.00402ad2
test al, al
pop ecx
pop ecx
jne 0x40543e
push 9
push esi
call fcn.004085fa
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405437
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x40514b
cmp dword [0x41a780], esi
jne 0x4054d0
push str.sfxconfig
push ebx
call fcn.00403db3
cmp eax, esi
pop ecx
pop ecx
je 0x4054d0
cmp word [eax], 0x3a
jne 0x405463
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x4054b4
cmp cx, 0x20
ja 0x40547b
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x40546b
cmp word [eax], si
je 0x4054b4
lea ecx, [ebp + 0x38]
push ecx
push eax
call fcn.00404e13
test al, al
pop ecx
pop ecx
jne 0x4054b4
push 0xa
push esi
call fcn.004085fa
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x4054ad
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x40514b
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x40506f
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x40506f
lea ecx, [ebp + 0x50]
call fcn.00404ca5
cmp dword [ebp + 0x3c], esi
je 0x4054fd
push esi
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.0040385a
add esp, 0xc
test al, al
jne 0x4054fd
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4054a3
cmp dword [0x41a780], 4
je 0x4054b4
mov eax, dword [0x41a090]
mov esi, 0x41a090
jmp 0x405573
push eax
lea eax, [ebp - 0xfc]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.0040dede
lea ecx, [ebp - 0x58]
call fcn.0040dede
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040e27f
push dword [esi]
call fcn.004022a7
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0040e27f
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x41a744
call fcn.004037cd
lea ecx, [ebp - 0x64]
add esi, 0x10
call fcn.00411975
mov eax, dword [esi]
test eax, eax
jne 0x405512
lea eax, [ebp + 0x50]
push eax
call fcn.0040407f
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x1c], ebx
cmp word [ebx], di
jbe 0x4055a1
inc ebx
inc ebx
cmp word [ebx], di
ja 0x40558e
jmp 0x40559e
cmp ax, di
ja 0x4055a9
inc ebx
inc ebx
mov dword [ebp + 0x1c], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405597
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x4055bc
cmp ax, 0x2d
jne 0x405801
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x4057fb
push 0x417958
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x405626
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x4055ec
cmp ax, 0x39
jbe 0x405604
cmp ax, 0x61
jb 0x4055f8
cmp ax, 0x7a
jbe 0x405604
cmp ax, 0x41
jb 0x405614
cmp ax, 0x5a
ja 0x405614
mov dword [ebp + 0x44], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405589
cmp ax, di
ja 0x405801
mov dword [ebp + 0x44], 0x417704
jmp 0x405607
push 0x417950
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x405649
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x40578f
push 0x417948
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x40568d
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405801
cmp cx, 0x32
ja 0x405801
cmp word [ebx + 8], di
ja 0x405801
lea ecx, [ebp + 0x50]
push ecx
push eax
push str.GUIMode
jmp 0x40578f
push 0x417940
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x4056b0
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x40578f
push 0x417938
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x4056d3
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x40578f
push 0x417930
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x405710
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x4056fa
cmp cx, 0x31
jne 0x405801
cmp word [ebx + 8], di
ja 0x405801
lea ecx, [ebp + 0x50]
push ecx
push eax
push str.SelfDelete
jmp 0x40578f
push 0x417928
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x405734
cmp word [ebx + 6], di
ja 0x405801
mov byte [ebp + 0x5f], 1
jmp 0x405589
push 0x417920
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x405771
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405801
cmp cx, 0x39
ja 0x405801
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41a380], eax
jmp 0x405589
push 0x417918
push esi
call fcn.00403bd6
test eax, eax
pop ecx
pop ecx
je 0x40579c
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.004042c9
add esp, 0xc
jmp 0x405589
movzx eax, word [esi]
cmp ax, 0x79
je 0x4057ab
cmp ax, 0x59
jne 0x4057ba
cmp word [ebx + 4], di
ja 0x4057ba
mov byte [ebp + 0x66], 1
jmp 0x405589
cmp ax, 0x3f
je 0x4057cc
cmp ax, 0x68
je 0x4057cc
cmp ax, 0x48
jne 0x4057db
cmp word [ebx + 4], di
ja 0x4057db
mov byte [ebp + 0x64], 1
jmp 0x405589
lea eax, [ebp + 0x50]
push eax
push esi
call fcn.00403f84
test eax, eax
pop ecx
pop ecx
je 0x405801
cmp eax, 1
je 0x405942
mov ebx, eax
jmp 0x405586
add ebx, 4
mov dword [ebp + 0x1c], ebx
lea eax, [ebp + 0x50]
push eax
call fcn.0040407f
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x405995
test byte [0x41a6d0], 4
je 0x405995
call fcn.0040256e
test eax, eax
jne 0x405995
lea ecx, [ebp - 0x10]
call fcn.0040dede
lea ecx, [ebp - 0x70]
call fcn.0040dede
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403ea5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0040e250
push str.sfxelevation
push 0x417770
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x20]
push 0x4176f8
push eax
call fcn.0040e22b
add esp, 0xc
push eax
lea eax, [ebp]
push eax
call fcn.0040e206
add esp, 0xc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e206
add esp, 0xc
push edi
push eax
lea ecx, [ebp + 0x10]
call fcn.0040e1a3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e1e6
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.0040e27f
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
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 - 0x70]
call fcn.00404528
add esp, 0xc
test eax, eax
push dword [ebp - 0x34]
jne 0x40595f
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x70]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x10
cmp eax, esi
je 0x40593b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x40514b
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
je 0x405958
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x405071
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x70]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x10
cmp eax, esi
je 0x405071
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405071
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
mov ebx, str.SetEnvironment
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.004030e0
add esp, 0xc
jmp 0x405a36
push edi
lea ecx, [ebp + 0x10]
call fcn.0040e250
push 0x3d
push dword [ebp + 0x10]
call fcn.0040dbc0
test eax, eax
pop ecx
pop ecx
jle 0x405a42
mov dword [ebp + 0x14], eax
lea esi, [eax + eax]
mov eax, dword [ebp + 0x10]
and word [eax + esi], 0
lea ecx, [ebp - 0x64]
call fcn.0040dede
lea ecx, [ebp - 0x58]
call fcn.0040dede
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040df29
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040e27f
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x41a744
call fcn.004037cd
inc dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
call fcn.00411975
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.004030e0
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4059b4
jmp 0x405a4b
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00404714
cmp dword [0x41a374], 0xffffffff
jne 0x405a60
and dword [0x41a374], 0
cmp byte [ebp + 0x64], 0
je 0x405ad4
push 0
lea eax, [ebp + 0x50]
push str.HelpText
push eax
call fcn.004030e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405a89
push 0x18
call fcn.004022a7
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf4]
call fcn.00403b66
push 0
push edi
push dword [0x41a6c0]
lea ecx, [ebp - 0xf4]
push 0x11
call fcn.004074db
lea ecx, [ebp - 0xf4]
call fcn.004072e9
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
je 0x40506f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40506f
cmp byte [ebp + 0x66], 0
je 0x405ae4
and dword [0x41a374], 0xfffffeff
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
lea eax, [ebp + 0x50]
push str.InstallPath
push eax
call fcn.004030e0
add esp, 0xc
cmp eax, ebx
mov esi, 0x41a6f0
je 0x405b10
push eax
mov ecx, esi
call fcn.0040e27f
push esi
call fcn.00403b7f
push ebx
lea eax, [ebp + 0x50]
push str.BeginPromptTimeout
push eax
call fcn.004030e0
add esp, 0x10
cmp eax, ebx
je 0x405b39
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41a6dc], eax
cmp dword [0x41a788], ebx
je 0x405b5f
lea eax, [ebp + 0x50]
push eax
call fcn.004087bc
push dword [ebp + 0x38]
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
pop ecx
cmp eax, ebx
jmp 0x40594f
cmp dword [0x41a780], 3
jne 0x405b73
lea eax, [ebp + 0x50]
push eax
call fcn.004086ef
jmp 0x405b4a
mov ebx, str.ExecuteFile
xor edi, edi
push edi
lea eax, [ebp + 0x50]
push str.BeginPrompt
push eax
call fcn.004030e0
add esp, 0xc
cmp eax, edi
je 0x405bcf
cmp byte [ebp + 0x66], 0
jne 0x405bcf
push eax
push dword [0x41a6c0]
call fcn.004083aa
test eax, eax
pop ecx
pop ecx
je 0x405cfb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x405bbd
mov byte [ebp + 0x67], 1
cmp dword [0x41a768], edi
je 0x405bcf
and dword [0x41a374], 0xffffff7f
lea ecx, [ebp + 0x2c]
call fcn.0040dede
cmp byte [ebp + 0x67], 0
je 0x405c59
mov edi, dword [ebp + 0x44]
push str.AutoInstall
lea ecx, [ebp + 0x2c]
call fcn.0040e27f
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00401192
push 0
push dword [ebp + 0x2c]
lea eax, [ebp + 0x50]
push eax
call fcn.004030e0
add esp, 0xc
test eax, eax
je 0x405d18
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x405c23
cmp ax, 0x39
jbe 0x405be0
cmp ax, 0x61
jb 0x405c2f
cmp ax, 0x7a
jbe 0x405be0
cmp ax, 0x41
jb 0x405c3b
cmp ax, 0x5a
jbe 0x405be0
push str.AutoInstall
lea ecx, [ebp + 0x2c]
call fcn.0040e27f
mov eax, dword [ebp + 0x44]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00401192
xor edi, edi
cmp dword [ebp + 0x30], edi
mov byte [ebp + 0x65], 0
jne 0x405ca9
push edi
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.004030e0
add esp, 0xc
test eax, eax
je 0x405c81
push ebx
lea ecx, [ebp + 0x2c]
call fcn.0040e27f
mov byte [ebp + 0x65], 1
cmp dword [ebp + 0x30], edi
jne 0x405ca9
push edi
lea eax, [ebp + 0x50]
push str.RunProgram
push eax
call fcn.004030e0
add esp, 0xc
test eax, eax
je 0x405ca9
push str.RunProgram
lea ecx, [ebp + 0x2c]
call fcn.0040e27f
cmp byte [ebp + 0x67], 0
jne 0x405d5b
cmp byte [ebp + 0x66], 0
jne 0x405d5b
mov eax, dword [0x41a374]
and ax, 0xc0
cmp al, 0x80
jne 0x405d5b
push dword [0x41a6b4]
push dword [0x41a6b8]
call fcn.00408428
test eax, eax
pop ecx
pop ecx
jne 0x405d5b
cmp byte [0x41a6e0], al
push dword [ebp + 0x2c]
je 0x405d4b
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405b7a
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
je 0x405d11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x40514b
push dword [ebp + 0x2c]
push 0xe
push 0
call fcn.004085fa
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x14
test eax, eax
je 0x405d44
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x40514b
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405d03
cmp dword [0x41a6f4], edi
jne 0x405d8c
lea eax, [ebp - 0x34]
push str.7ZipSfx._03x
push eax
call fcn.00404665
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0040df29
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41a6a4], 0
jmp 0x405dbe
push esi
lea ecx, [ebp - 0x10]
call fcn.0040df01
lea eax, [ebp - 0x10]
push eax
call fcn.00403b7f
cmp dword [ebp - 0xc], edi
pop ecx
je 0x405daf
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040df29
push dword [ebp - 0x10]
mov byte [0x41a6a4], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41a6f0]
pop ecx
mov ecx, dword [0x41a6f4]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405ddb
cmp dx, 0x2f
jne 0x405deb
dec ecx
mov dword [0x41a6f4], ecx
mov word [eax + ecx*2], di
mov eax, dword [0x41a6f0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [ebp + 0x66], 0
je 0x405dff
or dword [0x41a6d0], 3
cmp dword [0x41a77c], edi
jne 0x405e14
push esi
push dword [ebp + 0x48]
call fcn.0040190a
pop ecx
pop ecx
jmp 0x405e22
call fcn.00408484
test eax, eax
jne 0x405e51
mov eax, 0x80004005
cmp eax, edi
je 0x405e51
call fcn.00404512
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
pop ecx
je 0x405e4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x40514b
call fcn.00404714
cmp byte [ebp + 0x5f], 0
je 0x405e69
cmp byte [0x41a6a4], 0
jne 0x40647a
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x48], edi
call fcn.0040dede
cmp byte [ebp + 0x67], 0
jne 0x405e89
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.00403e4f
pop ecx
pop ecx
mov eax, dword [ebp + 0x44]
mov byte [ebp + 0x67], 0
mov dword [ebp - 0x40], eax
lea ecx, [ebp + 0x20]
mov dword [ebp - 4], edi
mov byte [ebp + 0x64], 0
call fcn.0040dede
lea ecx, [ebp]
call fcn.0040dede
cmp dword [ebp + 0x30], edi
mov dword [ebp + 0x4c], edi
jne 0x405f51
cmp byte [0x41a6a4], 0
jne 0x40630a
mov edi, str.setup.exe
push edi
push 0x41668c
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0040e206
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e206
add esp, 0xc
push dword [eax]
lea ecx, [ebp + 0x20]
call fcn.0040e27f
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x70]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406321
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp]
call fcn.0040e27f
lea eax, [ebp]
push eax
call fcn.00403bb3
mov esi, dword [ebp]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
je 0x405fd7
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x405f32
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x2c]
lea eax, [ebp + 0x50]
push eax
call fcn.004030e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405f1a
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
mov dword [ebp - 0x40], edi
jb 0x405f81
cmp ax, 0x39
jbe 0x405fa1
cmp ax, 0x61
jb 0x405f8d
cmp ax, 0x7a
jbe 0x405fa1
cmp ax, 0x41
jb 0x406370
cmp ax, 0x5a
ja 0x406370
push str.AutoInstall
lea ecx, [ebp + 0x2c]
call fcn.0040e27f
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00401192
push dword [ebp]
and dword [ebp + 0x48], 0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor edi, edi
jmp 0x405e93
push ebx
push str.hidcon
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
je 0x405ff5
or dword [ebp + 0x4c], 1
mov esi, eax
jmp 0x405f32
push ebx
push str.nowait
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
je 0x406019
cmp byte [0x41a6a4], 0
mov esi, eax
je 0x405f32
jmp 0x40602e
push ebx
push str.forcenowait
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
je 0x40603a
mov esi, eax
or dword [ebp + 0x4c], 0x10000
jmp 0x405f32
push 2
push 0x417920
push esi
call fcn.00403c10
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x406070
cmp dword [0x41a380], 0xffffffff
jne 0x406069
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41a380], eax
mov esi, edi
jmp 0x405f32
push 3
push 0x417898
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
je 0x406090
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
jmp 0x4060ae
push 3
push 0x417890
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
je 0x4060b5
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x38], ecx
mov esi, eax
jmp 0x405f32
push ebx
push 0x41660c
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
jne 0x40610f
push ebx
push str.i386
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
jne 0x40610f
push ebx
push str.amd64
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
jne 0x406101
push ebx
push 0x416604
push esi
call fcn.00403c10
add esp, 0xc
cmp eax, ebx
je 0x40611d
mov esi, eax
mov dword [ebp - 4], 2
jmp 0x405f32
mov esi, eax
mov dword [ebp - 4], 1
jmp 0x405f32
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 0x20]
je 0x406178
cmp word [esi], 0x22
je 0x40614b
mov edi, 0x4176f8
push edi
call fcn.0040e27f
push esi
lea ecx, [ebp + 0x20]
call fcn.0040e2d7
push edi
lea ecx, [ebp + 0x20]
call fcn.0040e2d7
jmp 0x406151
push esi
call fcn.0040e27f
push ebx
lea eax, [ebp + 0x50]
push str.ExecuteParameters
push eax
call fcn.004030e0
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40618a
push 0x4179c8
lea ecx, [ebp + 0x20]
call fcn.0040e2d7
jmp 0x406181
lea eax, [ebp + 0x10]
push eax
call fcn.0040df29
push esi
lea ecx, [ebp + 0x20]
call fcn.0040e2d7
lea ecx, [ebp - 0x1c]
call fcn.0040dede
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x20]
call fcn.00403ea5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e250
lea eax, [ebp - 0x1c]
push eax
call fcn.00403bb3
cmp dword [0x41a780], ebx
pop ecx
jne 0x4062bb
push dword [ebp - 4]
call fcn.0040253d
test eax, eax
pop ecx
je 0x4062bb
mov esi, dword [ebp + 0x1c]
cmp word [esi], bx
je 0x4061f0
push esi
lea ecx, [ebp - 0x28]
call fcn.0040e2d7
cmp word [esi], bx
je 0x4061f0
inc esi
inc esi
cmp word [esi], bx
jne 0x4061e6
mov dword [ebp + 0x1c], esi
lea eax, [ebp - 0x28]
push eax
call fcn.00403bb3
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x40629d
push dword [0x41a6f0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x28]
push eax
push 0x417768
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x58]
push 0x4176f8
push eax
call fcn.0040e22b
add esp, 0xc
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e206
add esp, 0xc
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040e1e6
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x34]
call fcn.0040e250
push dword [ebp - 0x94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xa0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x41a6f0]
push dword [ebp + 0x4c]
push dword [ebp - 0x34]
call fcn.00404528
add esp, 0x18
test eax, eax
push dword [ebp - 0x34]
je 0x406387
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4062b6
push dword [ebp + 0x4c]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.00404848
add esp, 0xc
cmp eax, ebx
jne 0x40638f
call fcn.004024d5
cmp byte [ebp + 0x65], 0
jne 0x4063f6
cmp byte [ebp + 0x67], 0
jne 0x4063f6
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], ebx
mov word [eax], bx
push dword [ebp - 0x28]
inc dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor edi, edi
mov esi, 0x41a6f0
jmp 0x405e93
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x40641b
call fcn.00404512
push 0xf
push 0
call fcn.004085fa
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x1c
test eax, eax
je 0x4051a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4051a9
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406419
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406396
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x20]
push 0x10
push 1
call fcn.004085fa
call fcn.00404512
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x28
cmp eax, ebx
je 0x4063ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x40514b
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor edi, edi
cmp dword [0x41a780], edi
jne 0x406471
call fcn.00404714
push dword [ebp - 0x3c]
lea eax, [ebp + 0x50]
push dword [ebp + 0x44]
push str.Shortcut
push eax
push 0x40476b
call fcn.00404356
add esp, 0x14
push dword [0x41a6fc]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x38]
lea eax, [ebp + 0x50]
push dword [ebp + 0x44]
push str.Delete
push eax
push 0x404327
call fcn.00404356
add esp, 0x14
call fcn.00404512
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41a380], 0xffffffff
jne 0x406493
cmp byte [ebp + 0x66], 0
jne 0x4064f2
mov dword [0x41a380], 1
cmp dword [0x41a380], edi
jle 0x4064f2
push 0
lea eax, [ebp + 0x50]
push str.FinishMessage
push eax
call fcn.004030e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4064f2
mov eax, 0x3e7
cmp dword [0x41a380], eax
jle 0x4064c6
mov dword [0x41a380], eax
lea ecx, [ebp - 0xf0]
call fcn.00403e36
push 0
push edi
push dword [0x41a6c0]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.004074db
lea ecx, [ebp - 0xf0]
call fcn.004072e9
cmp byte [ebp + 0x5f], 0
jne 0x406535
cmp dword [0x41a780], 0
jne 0x406535
push 0
lea eax, [ebp + 0x50]
push str.SelfDelete
push eax
call fcn.004030e0
add esp, 0xc
test eax, eax
je 0x406535
cmp word [eax], 0x31
jne 0x406535
sub esp, 0xc
mov ecx, esp
push 0x41a738
call fcn.0040df01
call fcn.00404ab1
add esp, 0xc
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
pop ecx
je 0x406554
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x7c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x50]
call fcn.00404c71
push dword [ebp - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor eax, eax
jmp 0x406595
push 0x10
push 0x41744c
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