Function at 0x404f2a
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 0x403e21
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401e2d
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406580
cmp dword [ebp - 0x200], 2
jne 0x406580
cmp dword [ebp - 0x20c], 5
jb 0x406580
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], 0x41a704
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.00410f2d
lea ecx, [ebp - 0x88]
call fcn.00410f2d
push 0x41a9c8
lea ecx, [ebp - 0x7c]
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
call fcn.0041129f
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403ea7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00411326
lea eax, [ebp - 0x7c]
push eax
call fcn.00402fd2
mov ebx, dword [ebp - 0x7c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403db5
cmp eax, edi
pop ecx
pop ecx
push 0x20
pop esi
je 0x405056
cmp word [eax], 0x3a
jne 0x405056
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405040
mov word [0x41d710], ax
jmp 0x405040
inc ebx
inc ebx
cmp word [ebx], si
ja 0x40503e
jmp 0x40504e
cmp ax, si
ja 0x405056
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x405047
call fcn.00404cd7
push str.sfxversion
push ebx
call fcn.00403db5
test eax, eax
pop ecx
pop ecx
je 0x4050a0
call fcn.00404443
xor esi, esi
push dword [ebp - 0x7c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x50]
call fcn.00404c73
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 0x406597
push str.sfxwaitall
push ebx
call fcn.00403db5
cmp eax, edi
pop ecx
pop ecx
je 0x4050bc
push eax
call fcn.0040460a
pop ecx
mov esi, eax
jmp 0x405073
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.00403db5
cmp eax, edi
pop ecx
pop ecx
je 0x4050e8
mov byte [ebp + 0x65], 1
jmp 0x4050de
cmp cx, si
ja 0x4050e6
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4050d7
mov ebx, eax
mov eax, 0x208
push eax
push eax
mov ecx, 0x41d7b8
call fcn.00402cfa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405117
xor esi, esi
inc esi
push 6
push esi
call fcn.004085fc
pop ecx
pop ecx
jmp 0x405073
mov esi, dword [0x41d7b8]
push esi
call fcn.004019df
mov dword [0x41d7bc], eax
mov dword [esp], str.sfxtest
push ebx
mov word [esi + eax*2], di
call fcn.00403db5
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4052db
cmp word [esi], 0x3a
je 0x405153
push 0x64
pop esi
jmp 0x405073
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x40525e
dec eax
dec eax
je 0x40524a
dec eax
je 0x4051c9
sub eax, 0xb
je 0x405187
sub eax, 7
jne 0x40514b
mov esi, 0x4eeb
jmp 0x405073
cmp word [esi + 4], 0x3a
jne 0x405071
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4051c1
dec eax
je 0x4051b7
dec eax
je 0x4051b3
dec eax
je 0x4051af
dec eax
jne 0x405071
push 7
jmp 0x40514d
push 0x7f
jmp 0x40514d
push 0x1f
jmp 0x40514d
mov esi, 0x47f
jmp 0x405073
xor esi, esi
inc esi
jmp 0x405073
cmp cx, 0x44
jne 0x40520a
cmp word [esi + 4], 0x3a
jne 0x40514b
add esi, 6
jmp 0x4051f5
cmp ax, 0x3a
je 0x4051fd
movzx eax, ax
push eax
mov ecx, 0x41d804
call fcn.0040117e
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x4051df
cmp dword [0x41d808], edi
jne 0x40520d
jmp 0x40514b
add esi, 4
mov dword [0x41d7fc], edi
cmp word [esi], 0x3a
jne 0x405234
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41d7fc], eax
ja 0x405234
cmp eax, edi
jne 0x40523e
mov dword [0x41d7fc], 0xa
mov dword [0x41d800], 1
jmp 0x40526c
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41d800], eax
jmp 0x40526c
mov dword [0x41d800], 2
jmp 0x40526c
inc esi
inc esi
cmp word [esi], bx
ja 0x40526a
jmp 0x40527a
cmp ax, bx
ja 0x405282
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405273
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403db5
cmp eax, edi
pop ecx
pop ecx
je 0x4052db
cmp word [eax], 0x3a
jne 0x4052a5
jmp 0x4052a3
cmp cx, 0x20
ja 0x4052ad
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x40529d
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], edi
mov word [ecx], di
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.00403ea7
cmp dword [0x41d800], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4052db
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x41d7b8
call fcn.00410f78
mov esi, 0x41d7b8
push esi
mov ecx, 0x41d77c
call fcn.00410f78
mov edi, 0x41d788
push esi
mov ecx, edi
call fcn.00410f78
push esi
call fcn.00401e0a
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405392
mov dword [0x41d780], eax
lea esi, [eax + eax]
mov eax, dword [0x41d77c]
and word [eax + esi], 0
mov eax, dword [0x41d7b8]
lea eax, [eax + esi + 2]
push eax
mov ecx, edi
call fcn.004112ce
mov eax, dword [0x41d7b8]
lea eax, [eax + esi + 2]
mov esi, 0x41d7a0
push eax
mov ecx, esi
call fcn.004112ce
push 0x2e
mov ecx, esi
call fcn.0041102f
test eax, eax
jle 0x40535f
mov ecx, dword [0x41d7a0]
mov dword [0x41d7a4], eax
and word [ecx + eax*2], 0
push esi
mov esi, 0x41d794
mov ecx, esi
call fcn.00410f78
push 4
call fcn.00402293
pop ecx
push eax
mov ecx, esi
call fcn.00411326
mov eax, dword [0x41d7a0]
mov dword [0x41d740], eax
mov eax, dword [0x41d794]
mov dword [0x41d748], eax
xor esi, esi
call fcn.004024ac
push eax
mov ecx, 0x41d7ac
call fcn.004112ce
push 0x24
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4053ba
mov ecx, eax
call fcn.00411abf
mov dword [ebp + 0x48], eax
jmp 0x4053bd
mov dword [ebp + 0x48], esi
mov edi, dword [ebp + 0x48]
push edi
lea ecx, [ebp + 0x60]
call fcn.00412642
push dword [0x41d7b8]
lea ecx, [edi + 0x14]
call fcn.0041095f
test al, al
jne 0x405401
push dword [0x41d7b8]
push 7
push 1
call fcn.004085fc
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x4053fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x40514d
lea ecx, [ebp + 0x38]
call fcn.00410d7b
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x38]
push eax
push edi
call fcn.00402ad4
test al, al
pop ecx
pop ecx
jne 0x405440
push 9
push esi
call fcn.004085fc
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405439
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x40514d
cmp dword [0x41d800], esi
jne 0x4054d2
push str.sfxconfig
push ebx
call fcn.00403db5
cmp eax, esi
pop ecx
pop ecx
je 0x4054d2
cmp word [eax], 0x3a
jne 0x405465
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x4054b6
cmp cx, 0x20
ja 0x40547d
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x40546d
cmp word [eax], si
je 0x4054b6
lea ecx, [ebp + 0x38]
push ecx
push eax
call fcn.00404e15
test al, al
pop ecx
pop ecx
jne 0x4054b6
push 0xa
push esi
call fcn.004085fc
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x4054af
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x40514d
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x405071
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x405071
lea ecx, [ebp + 0x50]
call fcn.00404ca7
cmp dword [ebp + 0x3c], esi
je 0x4054ff
push esi
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.0040385c
add esp, 0xc
test al, al
jne 0x4054ff
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4054a5
cmp dword [0x41d800], 4
je 0x4054b6
mov eax, dword [0x41d0a0]
mov esi, 0x41d0a0
jmp 0x405575
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.00410f2d
lea ecx, [ebp - 0x58]
call fcn.00410f2d
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x64]
call fcn.004112ce
push dword [esi]
call fcn.00402293
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004112ce
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x41d7c4
call fcn.004037cf
lea ecx, [ebp - 0x64]
add esi, 0x10
call fcn.0040262e
mov eax, dword [esi]
test eax, eax
jne 0x405514
lea eax, [ebp + 0x50]
push eax
call fcn.00404081
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x1c], ebx
cmp word [ebx], di
jbe 0x4055a3
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405590
jmp 0x4055a0
cmp ax, di
ja 0x4055ab
inc ebx
inc ebx
mov dword [ebp + 0x1c], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405599
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x4055be
cmp ax, 0x2d
jne 0x405803
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x4057fd
push 0x41a958
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x405628
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x4055ee
cmp ax, 0x39
jbe 0x405606
cmp ax, 0x61
jb 0x4055fa
cmp ax, 0x7a
jbe 0x405606
cmp ax, 0x41
jb 0x405616
cmp ax, 0x5a
ja 0x405616
mov dword [ebp + 0x44], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x40558b
cmp ax, di
ja 0x405803
mov dword [ebp + 0x44], 0x41a704
jmp 0x405609
push 0x41a950
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x40564b
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405791
push 0x41a948
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x40568f
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405803
cmp cx, 0x32
ja 0x405803
cmp word [ebx + 8], di
ja 0x405803
lea ecx, [ebp + 0x50]
push ecx
push eax
push str.GUIMode
jmp 0x405791
push 0x41a940
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x4056b2
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405791
push 0x41a938
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x4056d5
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405791
push 0x41a930
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x405712
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x4056fc
cmp cx, 0x31
jne 0x405803
cmp word [ebx + 8], di
ja 0x405803
lea ecx, [ebp + 0x50]
push ecx
push eax
push str.SelfDelete
jmp 0x405791
push 0x41a928
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x405736
cmp word [ebx + 6], di
ja 0x405803
mov byte [ebp + 0x5f], 1
jmp 0x40558b
push 0x41a920
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x405773
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405803
cmp cx, 0x39
ja 0x405803
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41d390], eax
jmp 0x40558b
push 0x41a918
push esi
call fcn.00403bd8
test eax, eax
pop ecx
pop ecx
je 0x40579e
lea eax, [ebp + 0x50]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.004042cb
add esp, 0xc
jmp 0x40558b
movzx eax, word [esi]
cmp ax, 0x79
je 0x4057ad
cmp ax, 0x59
jne 0x4057bc
cmp word [ebx + 4], di
ja 0x4057bc
mov byte [ebp + 0x66], 1
jmp 0x40558b
cmp ax, 0x3f
je 0x4057ce
cmp ax, 0x68
je 0x4057ce
cmp ax, 0x48
jne 0x4057dd
cmp word [ebx + 4], di
ja 0x4057dd
mov byte [ebp + 0x64], 1
jmp 0x40558b
lea eax, [ebp + 0x50]
push eax
push esi
call fcn.00403f86
test eax, eax
pop ecx
pop ecx
je 0x405803
cmp eax, 1
je 0x405944
mov ebx, eax
jmp 0x405588
add ebx, 4
mov dword [ebp + 0x1c], ebx
lea eax, [ebp + 0x50]
push eax
call fcn.00404081
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x405997
test byte [0x41d750], 4
je 0x405997
call fcn.0040255a
test eax, eax
jne 0x405997
lea ecx, [ebp - 0x10]
call fcn.00410f2d
lea ecx, [ebp - 0x70]
call fcn.00410f2d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403ea7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0041129f
push str.sfxelevation
push 0x41a770
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x20]
push 0x41a6f8
push eax
call fcn.0041127a
add esp, 0xc
push eax
lea eax, [ebp]
push eax
call fcn.00411255
add esp, 0xc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00411255
add esp, 0xc
push edi
push eax
lea ecx, [ebp + 0x10]
call fcn.004111f2
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00411235
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.004112ce
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.0040452a
add esp, 0xc
test eax, eax
push dword [ebp - 0x34]
jne 0x405961
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 0x40593d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x40514d
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
je 0x40595a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x405073
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 0x405073
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405073
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.004030e2
add esp, 0xc
jmp 0x405a38
push edi
lea ecx, [ebp + 0x10]
call fcn.0041129f
push 0x3d
push dword [ebp + 0x10]
call fcn.00410c0f
test eax, eax
pop ecx
pop ecx
jle 0x405a44
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.00410f2d
lea ecx, [ebp - 0x58]
call fcn.00410f2d
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x64]
call fcn.00410f78
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x58]
call fcn.004112ce
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x41d7c4
call fcn.004037cf
inc dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
call fcn.0040262e
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.004030e2
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4059b6
jmp 0x405a4d
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00404716
cmp dword [0x41d384], 0xffffffff
jne 0x405a62
and dword [0x41d384], 0
cmp byte [ebp + 0x64], 0
je 0x405ad6
push 0
lea eax, [ebp + 0x50]
push str.HelpText
push eax
call fcn.004030e2
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405a8b
push 0x18
call fcn.00402293
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf4]
call fcn.00403b68
push 0
push edi
push dword [0x41d740]
lea ecx, [ebp - 0xf4]
push 0x11
call fcn.004074dd
lea ecx, [ebp - 0xf4]
call fcn.004072eb
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
je 0x405071
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405071
cmp byte [ebp + 0x66], 0
je 0x405ae6
and dword [0x41d384], 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.004030e2
add esp, 0xc
cmp eax, ebx
mov esi, 0x41d770
je 0x405b12
push eax
mov ecx, esi
call fcn.004112ce
push esi
call fcn.00403b81
push ebx
lea eax, [ebp + 0x50]
push str.BeginPromptTimeout
push eax
call fcn.004030e2
add esp, 0x10
cmp eax, ebx
je 0x405b3b
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41d75c], eax
cmp dword [0x41d808], ebx
je 0x405b61
lea eax, [ebp + 0x50]
push eax
call fcn.004087be
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 0x405951
cmp dword [0x41d800], 3
jne 0x405b75
lea eax, [ebp + 0x50]
push eax
call fcn.004086f1
jmp 0x405b4c
mov ebx, str.ExecuteFile
xor edi, edi
push edi
lea eax, [ebp + 0x50]
push str.BeginPrompt
push eax
call fcn.004030e2
add esp, 0xc
cmp eax, edi
je 0x405bd1
cmp byte [ebp + 0x66], 0
jne 0x405bd1
push eax
push dword [0x41d740]
call fcn.004083ac
test eax, eax
pop ecx
pop ecx
je 0x405cfd
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x405bbf
mov byte [ebp + 0x67], 1
cmp dword [0x41d7e8], edi
je 0x405bd1
and dword [0x41d384], 0xffffff7f
lea ecx, [ebp + 0x2c]
call fcn.00410f2d
cmp byte [ebp + 0x67], 0
je 0x405c5b
mov edi, dword [ebp + 0x44]
push str.AutoInstall
lea ecx, [ebp + 0x2c]
call fcn.004112ce
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x2c]
call fcn.0040117e
push 0
push dword [ebp + 0x2c]
lea eax, [ebp + 0x50]
push eax
call fcn.004030e2
add esp, 0xc
test eax, eax
je 0x405d1a
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x405c25
cmp ax, 0x39
jbe 0x405be2
cmp ax, 0x61
jb 0x405c31
cmp ax, 0x7a
jbe 0x405be2
cmp ax, 0x41
jb 0x405c3d
cmp ax, 0x5a
jbe 0x405be2
push str.AutoInstall
lea ecx, [ebp + 0x2c]
call fcn.004112ce
mov eax, dword [ebp + 0x44]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x2c]
call fcn.0040117e
xor edi, edi
cmp dword [ebp + 0x30], edi
mov byte [ebp + 0x65], 0
jne 0x405cab
push edi
lea eax, [ebp + 0x50]
push ebx
push eax
call fcn.004030e2
add esp, 0xc
test eax, eax
je 0x405c83
push ebx
lea ecx, [ebp + 0x2c]
call fcn.004112ce
mov byte [ebp + 0x65], 1
cmp dword [ebp + 0x30], edi
jne 0x405cab
push edi
lea eax, [ebp + 0x50]
push str.RunProgram
push eax
call fcn.004030e2
add esp, 0xc
test eax, eax
je 0x405cab
push str.RunProgram
lea ecx, [ebp + 0x2c]
call fcn.004112ce
cmp byte [ebp + 0x67], 0
jne 0x405d5d
cmp byte [ebp + 0x66], 0
jne 0x405d5d
mov eax, dword [0x41d384]
and ax, 0xc0
cmp al, 0x80
jne 0x405d5d
push dword [0x41d734]
push dword [0x41d738]
call fcn.0040842a
test eax, eax
pop ecx
pop ecx
jne 0x405d5d
cmp byte [0x41d760], al
push dword [ebp + 0x2c]
je 0x405d4d
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405b7c
push dword [ebp + 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
je 0x405d13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x40514d
push dword [ebp + 0x2c]
push 0xe
push 0
call fcn.004085fc
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 0x405d46
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x40514d
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 0x405d05
cmp dword [0x41d774], edi
jne 0x405d8e
lea eax, [ebp - 0x34]
push str.7ZipSfx._03x
push eax
call fcn.00404667
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00410f78
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41d724], 0
jmp 0x405dc0
push esi
lea ecx, [ebp - 0x10]
call fcn.00410f50
lea eax, [ebp - 0x10]
push eax
call fcn.00403b81
cmp dword [ebp - 0xc], edi
pop ecx
je 0x405db1
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00410f78
push dword [ebp - 0x10]
mov byte [0x41d724], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41d770]
pop ecx
mov ecx, dword [0x41d774]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405ddd
cmp dx, 0x2f
jne 0x405ded
dec ecx
mov dword [0x41d774], ecx
mov word [eax + ecx*2], di
mov eax, dword [0x41d770]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [ebp + 0x66], 0
je 0x405e01
or dword [0x41d750], 3
cmp dword [0x41d7fc], edi
jne 0x405e16
push esi
push dword [ebp + 0x48]
call fcn.004018f6
pop ecx
pop ecx
jmp 0x405e24
call fcn.0040846a
test eax, eax
jne 0x405e53
mov eax, 0x80004005
cmp eax, edi
je 0x405e53
call fcn.00404514
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 0x405e4c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x40514d
call fcn.00404716
cmp byte [ebp + 0x5f], 0
je 0x405e6b
cmp byte [0x41d724], 0
jne 0x40647c
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x48], edi
call fcn.00410f2d
cmp byte [ebp + 0x67], 0
jne 0x405e8b
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.00403e51
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.00410f2d
lea ecx, [ebp]
call fcn.00410f2d
cmp dword [ebp + 0x30], edi
mov dword [ebp + 0x4c], edi
jne 0x405f53
cmp byte [0x41d724], 0
jne 0x40630c
mov edi, str.setup.exe
push edi
push 0x41968c
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00411255
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00411255
add esp, 0xc
push dword [eax]
lea ecx, [ebp + 0x20]
call fcn.004112ce
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 0x406323
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp]
call fcn.004112ce
lea eax, [ebp]
push eax
call fcn.00403bb5
mov esi, dword [ebp]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
je 0x405fd9
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x405f34
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x2c]
lea eax, [ebp + 0x50]
push eax
call fcn.004030e2
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405f1c
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
mov dword [ebp - 0x40], edi
jb 0x405f83
cmp ax, 0x39
jbe 0x405fa3
cmp ax, 0x61
jb 0x405f8f
cmp ax, 0x7a
jbe 0x405fa3
cmp ax, 0x41
jb 0x406372
cmp ax, 0x5a
ja 0x406372
push str.AutoInstall
lea ecx, [ebp + 0x2c]
call fcn.004112ce
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x2c]
call fcn.0040117e
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 0x405e95
push ebx
push str.hidcon
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
je 0x405ff7
or dword [ebp + 0x4c], 1
mov esi, eax
jmp 0x405f34
push ebx
push str.nowait
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
je 0x40601b
cmp byte [0x41d724], 0
mov esi, eax
je 0x405f34
jmp 0x406030
push ebx
push str.forcenowait
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
je 0x40603c
mov esi, eax
or dword [ebp + 0x4c], 0x10000
jmp 0x405f34
push 2
push 0x41a920
push esi
call fcn.00403c12
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x406072
cmp dword [0x41d390], 0xffffffff
jne 0x40606b
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41d390], eax
mov esi, edi
jmp 0x405f34
push 3
push 0x41a898
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
je 0x406092
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
jmp 0x4060b0
push 3
push 0x41a890
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
je 0x4060b7
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x38], ecx
mov esi, eax
jmp 0x405f34
push ebx
push 0x41960c
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
jne 0x406111
push ebx
push str.i386
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
jne 0x406111
push ebx
push str.amd64
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
jne 0x406103
push ebx
push 0x419604
push esi
call fcn.00403c12
add esp, 0xc
cmp eax, ebx
je 0x40611f
mov esi, eax
mov dword [ebp - 4], 2
jmp 0x405f34
mov esi, eax
mov dword [ebp - 4], 1
jmp 0x405f34
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 0x20]
je 0x40617a
cmp word [esi], 0x22
je 0x40614d
mov edi, 0x41a6f8
push edi
call fcn.004112ce
push esi
lea ecx, [ebp + 0x20]
call fcn.00411326
push edi
lea ecx, [ebp + 0x20]
call fcn.00411326
jmp 0x406153
push esi
call fcn.004112ce
push ebx
lea eax, [ebp + 0x50]
push str.ExecuteParameters
push eax
call fcn.004030e2
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40618c
push 0x41a9c8
lea ecx, [ebp + 0x20]
call fcn.00411326
jmp 0x406183
lea eax, [ebp + 0x10]
push eax
call fcn.00410f78
push esi
lea ecx, [ebp + 0x20]
call fcn.00411326
lea ecx, [ebp - 0x1c]
call fcn.00410f2d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x20]
call fcn.00403ea7
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0041129f
lea eax, [ebp - 0x1c]
push eax
call fcn.00403bb5
cmp dword [0x41d800], ebx
pop ecx
jne 0x4062bd
push dword [ebp - 4]
call fcn.00402529
test eax, eax
pop ecx
je 0x4062bd
mov esi, dword [ebp + 0x1c]
cmp word [esi], bx
je 0x4061f2
push esi
lea ecx, [ebp - 0x28]
call fcn.00411326
cmp word [esi], bx
je 0x4061f2
inc esi
inc esi
cmp word [esi], bx
jne 0x4061e8
mov dword [ebp + 0x1c], esi
lea eax, [ebp - 0x28]
push eax
call fcn.00403bb5
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x40629f
push dword [0x41d770]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x28]
push eax
push 0x41a768
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x58]
push 0x41a6f8
push eax
call fcn.0041127a
add esp, 0xc
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00411255
add esp, 0xc
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00411235
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x34]
call fcn.0041129f
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 [0x41d770]
push dword [ebp + 0x4c]
push dword [ebp - 0x34]
call fcn.0040452a
add esp, 0x18
test eax, eax
push dword [ebp - 0x34]
je 0x406389
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4062b8
push dword [ebp + 0x4c]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.0040484a
add esp, 0xc
cmp eax, ebx
jne 0x406391
call fcn.004024c1
cmp byte [ebp + 0x65], 0
jne 0x4063f8
cmp byte [ebp + 0x67], 0
jne 0x4063f8
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, 0x41d770
jmp 0x405e95
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 0x40641d
call fcn.00404514
push 0xf
push 0
call fcn.004085fc
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 0x4051ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4051ab
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 sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406398
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x20]
push 0x10
push 1
call fcn.004085fc
call fcn.00404514
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 0x4063f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x40514d
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 [0x41d800], edi
jne 0x406473
call fcn.00404716
push dword [ebp - 0x3c]
lea eax, [ebp + 0x50]
push dword [ebp + 0x44]
push str.Shortcut
push eax
push 0x40476d
call fcn.00404358
add esp, 0x14
push dword [0x41d77c]
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 0x404329
call fcn.00404358
add esp, 0x14
call fcn.00404514
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41d390], 0xffffffff
jne 0x406495
cmp byte [ebp + 0x66], 0
jne 0x4064f4
mov dword [0x41d390], 1
cmp dword [0x41d390], edi
jle 0x4064f4
push 0
lea eax, [ebp + 0x50]
push str.FinishMessage
push eax
call fcn.004030e2
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4064f4
mov eax, 0x3e7
cmp dword [0x41d390], eax
jle 0x4064c8
mov dword [0x41d390], eax
lea ecx, [ebp - 0xf0]
call fcn.00403e38
push 0
push edi
push dword [0x41d740]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.004074dd
lea ecx, [ebp - 0xf0]
call fcn.004072eb
cmp byte [ebp + 0x5f], 0
jne 0x406537
cmp dword [0x41d800], 0
jne 0x406537
push 0
lea eax, [ebp + 0x50]
push str.SelfDelete
push eax
call fcn.004030e2
add esp, 0xc
test eax, eax
je 0x406537
cmp word [eax], 0x31
jne 0x406537
sub esp, 0xc
mov ecx, esp
push 0x41d7b8
call fcn.00410f50
call fcn.00404ab3
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 0x406556
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.00404c73
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 0x406597
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