Function at 0x40595f
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2e0
push ebx
push esi
push edi
push 0x405000
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00402afa
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - 0x278], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406e3d
cmp dword [ebp - 0x268], 2
jne 0x406e3d
cmp dword [ebp - 0x274], 5
jb 0x406e3d
lea ecx, [ebp + 0x3c]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x54], 0x41a9c4
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x65], 0
mov byte [ebp + 0x5b], 0
call fcn.004104c6
lea ecx, [ebp - 0x54]
call fcn.004104c6
call fcn.00404a86
push 0x41959c
lea ecx, [ebp - 0x3c]
call fcn.004108b3
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea eax, [ebp + 0x3c]
push eax
call esi
push eax
call fcn.004026e8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041093a
lea eax, [ebp - 0x3c]
push eax
call fcn.00403e6e
mov ebx, dword [ebp - 0x3c]
pop ecx
push ebx
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
inc edi
push edi
lea eax, [ebx + eax*2]
push 0x4195e4
push str.SfxVarModulePlatform
mov dword [ebp - 0x30], eax
call fcn.004046be
add esp, 0xc
push edi
call fcn.004031a4
push eax
push str.SfxVarSystemPlatform
call fcn.004046be
add esp, 0xc
push edi
call esi
push eax
push str.SfxVarCmdLine0
call fcn.004046be
movzx eax, word [0x41d6e4]
add esp, 0xc
push eax
push 0x41aca0
push 0x20
lea ecx, [ebp + 0x3c]
call fcn.00403a76
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0x3c]
push esi
call fcn.0040261b
mov dword [ebp + 0x40], eax
and word [esi + eax*2], 0
push edi
push dword [ebp + 0x3c]
push str.SfxVarSystemLanguage
call fcn.004046be
push str.sfxlang
push ebx
call fcn.00404cea
add esp, 0x24
test eax, eax
je 0x405afe
cmp word [eax], 0x3a
jne 0x405afe
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405ae4
mov word [0x41d6e4], ax
inc ebx
inc ebx
cmp word [ebx], 0x20
ja 0x405ae4
jmp 0x405af6
cmp ax, 0x20
ja 0x405afe
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405aee
push str.sfxversion
push ebx
call fcn.00404cea
test eax, eax
pop ecx
pop ecx
je 0x405b38
call fcn.0040535b
xor esi, esi
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x54]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, esi
jmp 0x406e54
push 0x419584
push ebx
call fcn.00404cea
test eax, eax
pop ecx
pop ecx
je 0x405b54
push eax
call fcn.0040158e
pop ecx
mov esi, eax
jmp 0x405b16
push str.sfxelevation
push ebx
mov byte [ebp + 0x5a], 0
call fcn.00404cea
test eax, eax
pop ecx
pop ecx
je 0x405b81
mov byte [ebp + 0x5a], 1
jmp 0x405b77
cmp cx, 0x20
ja 0x405b7f
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x405b6f
mov ebx, eax
mov eax, 0x208
push eax
push eax
mov ecx, 0x41d7b8
call fcn.00403a76
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405bb0
push 6
push edi
call fcn.00409055
pop ecx
pop ecx
mov esi, edi
jmp 0x405b16
mov esi, dword [0x41d7b8]
push esi
call fcn.0040261b
mov dword [0x41d7bc], eax
and word [esi + eax*2], 0
mov dword [esp], str.sfxtest
push ebx
call fcn.00404cea
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x405d77
cmp word [esi], 0x3a
je 0x405bed
push 0x64
pop esi
jmp 0x405b16
movzx ecx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x405cfa
sub eax, ebx
je 0x405ce6
dec eax
je 0x405c66
sub eax, 0xb
je 0x405c22
sub eax, 7
jne 0x405be5
mov esi, 0x4f21
jmp 0x405b16
cmp word [esi + 4], 0x3a
jne 0x405b14
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x405ba9
dec eax
je 0x405c5c
dec eax
je 0x405c58
dec eax
je 0x405c4e
dec eax
jne 0x405b14
push 7
jmp 0x405be7
mov esi, 0xfff
jmp 0x405b16
push 0x1f
jmp 0x405be7
mov esi, 0x597
jmp 0x405b16
cmp cx, 0x44
jne 0x405ca9
cmp word [esi + 4], 0x3a
jne 0x405be5
add esi, 6
jmp 0x405c92
cmp ax, 0x3a
je 0x405c9b
movzx eax, ax
push eax
mov ecx, 0x41d810
call fcn.0040119e
add esi, ebx
movzx eax, word [esi]
cmp ax, 0x20
ja 0x405c7c
cmp dword [0x41d814], 0
jne 0x405cac
jmp 0x405be5
add esi, 4
and dword [0x41d808], 0
cmp word [esi], 0x3a
jne 0x405cd4
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41d808], eax
ja 0x405cd4
test eax, eax
jne 0x405cde
mov dword [0x41d808], 0xa
mov dword [0x41d80c], edi
jmp 0x405d04
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41d80c], eax
jmp 0x405d04
mov dword [0x41d80c], ebx
jmp 0x405d04
add esi, ebx
cmp word [esi], 0x20
ja 0x405d02
jmp 0x405d14
cmp ax, 0x20
ja 0x405d1c
add esi, ebx
movzx eax, word [esi]
test ax, ax
jne 0x405d0c
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00404cea
test eax, eax
pop ecx
pop ecx
je 0x405d77
cmp word [eax], 0x3a
jne 0x405d3f
jmp 0x405d3d
cmp cx, 0x20
ja 0x405d47
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x405d37
mov ecx, dword [ebp + 0x3c]
and dword [ebp + 0x40], 0
and word [ecx], 0
lea ecx, [ebp + 0x3c]
push ecx
push eax
call fcn.004026e8
cmp dword [0x41d80c], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405d77
lea eax, [ebp + 0x3c]
push eax
mov ecx, 0x41d7b8
call fcn.00410511
mov esi, 0x41d7b8
push esi
mov ecx, 0x41d760
call fcn.00410511
mov edi, 0x41d76c
push esi
mov ecx, edi
call fcn.00410511
push esi
call fcn.00402ad7
test eax, eax
pop ecx
jl 0x405e31
mov dword [0x41d764], eax
lea esi, [eax + eax]
mov eax, dword [0x41d760]
and word [esi + eax], 0
mov eax, dword [0x41d7b8]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.004108e2
mov eax, dword [0x41d7b8]
lea eax, [esi + eax + 2]
mov esi, 0x41d784
push eax
mov ecx, esi
call fcn.004108e2
push 0x2e
mov ecx, esi
call fcn.004105c8
test eax, eax
jle 0x405df9
mov ecx, dword [0x41d784]
mov dword [0x41d788], eax
and word [ecx + eax*2], 0
push esi
mov esi, 0x41d778
mov ecx, esi
call fcn.00410511
push 4
call fcn.00402f91
pop ecx
push eax
mov ecx, esi
call fcn.0041093a
mov eax, dword [0x41d784]
mov ecx, dword [0x41d778]
mov dword [0x41d718], eax
mov dword [0x41d720], ecx
mov dword [0x41d724], eax
xor esi, esi
call fcn.004031a4
push eax
mov ecx, 0x41d790
call fcn.004108e2
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405e66
mov dword [eax + 4], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax], 0x41aab4
mov dword [ebp + 0x10], eax
jmp 0x405e69
mov dword [ebp + 0x10], esi
push dword [ebp + 0x10]
lea ecx, [ebp + 0x60]
call fcn.00411c5e
push dword [0x41d7b8]
mov ecx, dword [ebp + 0x10]
call fcn.004096d1
test al, al
jne 0x405eac
push dword [0x41d7b8]
push 7
push 1
call fcn.00409055
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x405ea5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405be7
lea ecx, [ebp + 0x48]
call fcn.004102dc
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push edi
call fcn.0040382f
test al, al
pop ecx
pop ecx
jne 0x405eeb
push 9
push esi
call fcn.00409055
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405ee4
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405be7
cmp dword [0x41d80c], esi
jne 0x405f7d
push str.sfxconfig
push ebx
call fcn.00404cea
cmp eax, esi
pop ecx
pop ecx
je 0x405f7d
cmp word [eax], 0x3a
jne 0x405f10
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405f61
cmp cx, 0x20
ja 0x405f28
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405f18
cmp word [eax], si
je 0x405f61
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00405832
test al, al
pop ecx
pop ecx
jne 0x405f61
push 0xa
push esi
call fcn.00409055
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405f5a
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405be7
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x405b14
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x405b14
mov ecx, 0x41d7c4
call fcn.004057e3
cmp dword [ebp + 0x4c], esi
je 0x405fa7
lea eax, [ebp + 0x48]
push esi
push eax
call fcn.00404773
test al, al
pop ecx
pop ecx
jne 0x405fa7
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405f50
cmp dword [0x41d80c], 4
je 0x405f61
mov eax, dword [0x41d0a8]
mov edi, 0x41d0a8
jmp 0x405ff1
push eax
lea eax, [ebp - 0xb8]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push dword [edi]
call fcn.00402f91
pop ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004046be
add esp, 0xc
add edi, 0x10
mov eax, dword [edi]
test eax, eax
jne 0x405fbc
call fcn.00404d65
push 1
push 0x41964c
dec ebx
push str.SfxVarCmdLine2
dec ebx
call fcn.004046be
add esp, 0xc
push 0x30
pop esi
jmp 0x406017
inc ebx
inc ebx
cmp word [ebx], 0x20
ja 0x406015
jmp 0x406027
cmp ax, 0x20
ja 0x40602f
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
jne 0x40601f
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x406042
cmp ax, 0x2d
jne 0x4062a8
lea edi, [ebx + 2]
cmp word [edi], 0x21
je 0x40629f
push 0x41abe4
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x4060a9
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, si
jb 0x406071
cmp ax, 0x39
jbe 0x406089
cmp ax, 0x61
jb 0x40607d
cmp ax, 0x7a
jbe 0x406089
cmp ax, 0x41
jb 0x406096
cmp ax, 0x5a
ja 0x406096
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x67], 1
mov byte [ebp + 0x66], 1
jmp 0x406017
cmp ax, 0x20
ja 0x4062a8
mov dword [ebp + 0x54], 0x41a9c4
jmp 0x40608c
push 0x41abdc
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x4060c8
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x4061fa
push 0x41abd4
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x406108
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, si
jb 0x4062a8
cmp cx, 0x32
ja 0x4062a8
cmp word [ebx + 8], 0x20
ja 0x4062a8
push eax
push str.GUIMode
jmp 0x4061fa
push 0x41abcc
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x406127
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x4061fa
push 0x41abc4
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x406146
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x4061fa
push 0x41abbc
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x40617f
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, si
je 0x40616c
cmp cx, 0x31
jne 0x4062a8
cmp word [ebx + 8], 0x20
ja 0x4062a8
push eax
push str.SelfDelete
jmp 0x4061fa
push 0x41abb4
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x4061a4
cmp word [ebx + 6], 0x20
ja 0x4062a8
mov byte [ebp + 0x65], 1
jmp 0x406017
push 0x4195fc
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x4061e0
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, si
jb 0x4062a8
cmp cx, 0x39
ja 0x4062a8
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41d3a8], eax
jmp 0x406017
push 0x41abac
push edi
call fcn.004026ae
test eax, eax
pop ecx
pop ecx
je 0x406206
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.004051f3
pop ecx
pop ecx
jmp 0x406017
movzx eax, word [edi]
cmp ax, 0x70
je 0x40626e
cmp ax, 0x50
je 0x40626e
cmp ax, 0x79
je 0x406221
cmp ax, 0x59
jne 0x406231
cmp word [ebx + 4], 0x20
ja 0x406231
mov byte [ebp + 0x67], 1
jmp 0x406017
cmp ax, 0x3f
je 0x406243
cmp ax, 0x68
je 0x406243
cmp ax, 0x48
jne 0x406253
cmp word [ebx + 4], 0x20
ja 0x406253
mov byte [ebp + 0x5b], 1
jmp 0x406017
push edi
call fcn.004050fb
test eax, eax
pop ecx
je 0x4062a8
cmp eax, 1
je 0x406300
mov ebx, eax
jmp 0x406017
lea ecx, [ebp - 0x14]
call fcn.004104c6
lea eax, [ebp - 0x14]
push eax
add ebx, 4
push ebx
call fcn.004026e8
push dword [ebp - 0x14]
dec eax
dec eax
mov ebx, eax
call fcn.004019fd
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x406017
mov edi, ebx
add ebx, 4
test edi, edi
jne 0x4062aa
mov edi, ebx
cmp dword [ebp + 0x5c], edi
je 0x40631d
push dword [ebp + 0x5c]
lea ecx, [ebp + 4]
call fcn.004108b3
sub edi, dword [ebp + 0x5c]
lea eax, [ebp + 4]
push eax
sar edi, 1
push edi
lea ecx, [ebp + 0x30]
call fcn.0041044f
push dword [ebp + 0x30]
lea ecx, [ebp + 0x3c]
call fcn.004108e2
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
lea ecx, [ebp + 0x3c]
call fcn.004105f3
lea ecx, [ebp + 0x3c]
call fcn.004109bc
push 1
push dword [ebp + 0x3c]
jmp 0x406324
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
je 0x406316
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x405be7
push 1
push 0x41964c
push str.SfxVarCmdLine1
call fcn.004046be
add esp, 0xc
push ebx
lea ecx, [ebp + 4]
call fcn.004108b3
lea eax, [ebp + 4]
push eax
mov eax, dword [ebp - 0x30]
sub eax, ebx
sar eax, 1
push eax
lea ecx, [ebp + 0x30]
call fcn.0041044f
push dword [ebp + 0x30]
lea ecx, [ebp + 0x3c]
call fcn.004108e2
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
lea ecx, [ebp + 0x3c]
call fcn.004105f3
lea ecx, [ebp + 0x3c]
call fcn.004109bc
push 1
push dword [ebp + 0x3c]
push str.SfxVarCmdLine2
call fcn.004046be
add esp, 0xc
call fcn.00404d65
cmp byte [ebp + 0x5a], 0
jne 0x4064ff
test byte [0x41d734], 4
je 0x4064ff
call fcn.00403246
test eax, eax
jne 0x4064ff
lea ecx, [ebp - 8]
call fcn.004104c6
lea ecx, [ebp - 0x14]
call fcn.004104c6
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004026e8
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.004108b3
push str.sfxelevation
push 0x41957c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push 0x419578
push eax
call fcn.0041088e
add esp, 0xc
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00410869
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00410869
add esp, 0xc
push 0x20
push eax
lea ecx, [ebp + 4]
call fcn.00410806
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00410849
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.004108e2
push dword [ebp + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x60]
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 - 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]
push 0
push 2
push dword [ebp - 0x14]
call fcn.0040121c
add esp, 0xc
test eax, eax
push dword [ebp + 0x30]
jne 0x4064c9
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 + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x10
test eax, eax
je 0x4064c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x405be7
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 + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x10
test eax, eax
je 0x405b14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405b14
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
mov esi, str.SetEnvironment
push esi
call fcn.00403f7e
pop ecx
pop ecx
jmp 0x406563
push edi
lea ecx, [ebp + 0x18]
call fcn.004108b3
push 0x3d
push dword [ebp + 0x18]
call fcn.00410170
test eax, eax
pop ecx
pop ecx
jle 0x40656b
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], eax
add eax, eax
and word [eax + ecx], 0
push 0
lea eax, [eax + edi + 2]
push eax
push dword [ebp + 0x18]
call fcn.004046be
push dword [ebp + 0x18]
inc dword [ebp + 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 0x14]
push eax
push esi
call fcn.00403f7e
add esp, 0x18
mov edi, eax
test edi, edi
jne 0x406516
jmp 0x406574
push dword [ebp + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.0040560c
xor edi, edi
cmp dword [0x41d39c], 0xffffffff
jne 0x40658a
mov dword [0x41d39c], edi
cmp byte [ebp + 0x5b], 0
je 0x4065eb
push edi
push 0x41a964
call fcn.00403f7e
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x4065ad
push 0x18
call fcn.00402f91
pop ecx
mov esi, eax
lea ecx, [ebp - 0xb4]
call fcn.00404a6d
push edi
push esi
push dword [0x41d718]
lea ecx, [ebp - 0xb4]
push 0x11
call fcn.00407e31
lea ecx, [ebp - 0xb4]
call fcn.00407c3f
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
pop ecx
cmp eax, edi
jmp 0x4064ee
cmp byte [ebp + 0x67], 0
je 0x4065fb
and dword [0x41d39c], 0xfffffeff
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
push str.SfxAuthor
call fcn.00403f7e
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4066f9
lea eax, [ebp - 0x164]
push eax
call fcn.0040a940
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x164]
push esi
push eax
call fcn.0040aba0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.0040ac60
add esp, 0x14
push 8
pop ecx
mov esi, str.123456789ABCDEFGHJKMNPQRSTUVWXYZ
lea edi, [ebp - 0xfc]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov edx, dword [ebp + ecx*4 - 0xc8]
lea eax, [ebp + ecx*4 - 0xd8]
xor dword [eax], edx
inc ecx
cmp ecx, 4
jl 0x406666
xor edi, edi
mov dword [ebp + 0x5c], edi
mov ecx, dword [ebp + 0x5c]
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
and ecx, 0x80000007
movzx esi, byte [ebp + eax - 0xd8]
jns 0x4066a4
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [ebp + 0x5c]
shr esi, cl
and esi, 0x1f
test eax, eax
je 0x4066c5
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x4066c5
mov word [ebp + edi*2 - 0xa0], 0x2d
inc edi
movsx ax, byte [ebp + esi - 0xfc]
add dword [ebp + 0x5c], 5
mov word [ebp + edi*2 - 0xa0], ax
inc edi
cmp dword [ebp + 0x5c], 0x7d
jl 0x406681
and word [ebp + edi*2 - 0xa0], 0
lea eax, [ebp - 0xa0]
push eax
call fcn.004019fd
pop ecx
xor edi, edi
push edi
push str.InstallPath
call fcn.00403f7e
cmp eax, edi
pop ecx
pop ecx
mov esi, 0x41d754
je 0x40671e
push eax
mov ecx, esi
call fcn.004108e2
mov byte [0x41d6fc], 1
push esi
call fcn.00404b85
push edi
push str.BeginPromptTimeout
call fcn.00403f7e
add esp, 0xc
cmp eax, edi
je 0x406743
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41d740], eax
cmp dword [0x41d814], edi
je 0x406771
call fcn.00409836
push dword [ebp + 0x48]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
je 0x405b16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405b16
cmp dword [0x41d80c], 3
jne 0x406781
call fcn.0040974f
jmp 0x406750
test byte [0x41d734], 8
jne 0x4067bc
mov esi, dword [ebp + 0x60]
push esi
call fcn.00401fe0
test eax, eax
pop ecx
jne 0x4067bc
push 8
push edi
call fcn.00409055
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp esi, edi
je 0x4067b5
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 5
jmp 0x405be7
push 0
mov esi, 0x41964c
push esi
push str.SfxVarApiPath
call fcn.004046be
call fcn.0040560c
push 0
mov edi, str.ExecuteOnLoad
push edi
call fcn.00403f7e
add esp, 0x14
test eax, eax
je 0x40684a
cmp byte [ebp + 0x65], 0
jne 0x40684a
cmp byte [0x41d6fc], 0
je 0x40684a
mov ecx, 0x41d79c
call fcn.00406fa9
push 0
push dword [0x41d7a0]
push str.SfxVarApiPath
call fcn.004046be
add esp, 0xc
call fcn.0040560c
push esi
lea ecx, [ebp + 0x30]
call fcn.004108b3
mov ecx, 0x41d79c
call fcn.00406fa9
push esi
lea eax, [ebp + 0x30]
push eax
push esi
push dword [0x41d7a0]
push edi
call fcn.0040192e
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
xor edi, edi
push edi
push 0x41a91c
call fcn.00403f7e
cmp eax, edi
pop ecx
pop ecx
je 0x4068a0
cmp byte [ebp + 0x67], 0
jne 0x4068a0
push eax
push dword [0x41d718]
call fcn.00408e05
test eax, eax
pop ecx
pop ecx
je 0x4069b6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40688e
mov byte [ebp + 0x67], 1
mov byte [ebp + 0x66], 1
cmp dword [0x41d7f4], edi
je 0x4068a0
and dword [0x41d39c], 0xffffff7f
lea ecx, [ebp + 0x24]
call fcn.004104c6
cmp byte [ebp + 0x66], 0
je 0x406916
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x24]
call fcn.004108e2
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x24]
call fcn.0040119e
push 0
push dword [ebp + 0x24]
call fcn.00403f7e
test eax, eax
pop ecx
pop ecx
je 0x4069d5
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x4068ef
cmp ax, 0x39
jbe 0x4068b1
cmp ax, 0x61
jb 0x4068fb
cmp ax, 0x7a
jbe 0x4068b1
cmp ax, 0x41
jb 0x406907
cmp ax, 0x5a
jbe 0x4068b1
push str.AutoInstall
lea ecx, [ebp + 0x24]
call fcn.004108e2
xor edi, edi
cmp dword [ebp + 0x28], edi
mov byte [ebp + 0x5c], 0
jne 0x406964
push edi
push str.ExecuteFile
call fcn.00403f7e
test eax, eax
pop ecx
pop ecx
je 0x406941
push str.ExecuteFile
lea ecx, [ebp + 0x24]
call fcn.004108e2
mov byte [ebp + 0x5c], 1
cmp dword [ebp + 0x28], edi
jne 0x406964
push edi
push str.RunProgram
call fcn.00403f7e
test eax, eax
pop ecx
pop ecx
je 0x406964
push str.RunProgram
lea ecx, [ebp + 0x24]
call fcn.004108e2
cmp byte [ebp + 0x66], 0
jne 0x406a18
cmp byte [ebp + 0x67], 0
jne 0x406a18
mov eax, dword [0x41d39c]
and ax, 0xc0
cmp al, 0x80
jne 0x406a18
push dword [0x41d70c]
push dword [0x41d710]
call fcn.00408e83
test eax, eax
pop ecx
pop ecx
jne 0x406a18
cmp byte [0x41d744], al
push dword [ebp + 0x24]
je 0x406a08
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40684a
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
je 0x4067b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067b5
push dword [ebp + 0x24]
push 0xe
push 0
call fcn.00409055
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x14
test eax, eax
je 0x406a01
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405be7
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4069be
cmp dword [0x41d758], edi
jne 0x406a4c
lea eax, [ebp - 0x20]
push str.7ZipSfx._03x
push eax
call fcn.00403b1d
pop ecx
pop ecx
push eax
mov ecx, 0x41d754
call fcn.00410511
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41d6fc], 0
jmp 0x406a86
mov edi, 0x41d754
push edi
lea ecx, [ebp - 8]
call fcn.004104e9
lea eax, [ebp - 8]
push eax
call fcn.00404b85
cmp dword [ebp - 4], 0
pop ecx
je 0x406a75
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.00410511
push dword [ebp - 8]
mov byte [0x41d6fc], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor edi, edi
mov eax, dword [0x41d754]
pop ecx
mov ecx, dword [0x41d758]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x406aa3
cmp dx, 0x2f
jne 0x406aae
dec ecx
mov dword [0x41d758], ecx
mov word [eax + ecx*2], di
cmp byte [ebp + 0x67], 0
je 0x406abb
or dword [0x41d734], 3
mov edi, str.PreExtract
push edi
lea ecx, [ebp - 0x2c]
call fcn.004108b3
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040119e
push 0
push dword [ebp - 0x2c]
call fcn.00403f7e
test eax, eax
pop ecx
pop ecx
je 0x406b4d
cmp byte [ebp + 0x65], 0
jne 0x406b4d
cmp byte [0x41d6fc], 0
je 0x406b4d
mov ecx, 0x41d79c
call fcn.00406fa9
push 0
push dword [0x41d7a0]
push str.SfxVarApiPath
call fcn.004046be
add esp, 0xc
call fcn.0040560c
push esi
lea ecx, [ebp + 0x30]
call fcn.004108b3
mov ecx, 0x41d79c
call fcn.00406fa9
push esi
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x54]
push dword [0x41d7a0]
push edi
call fcn.0040192e
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
cmp dword [0x41d808], 0
jne 0x406b67
push 0x41d754
push dword [ebp + 0x10]
call fcn.004024ec
pop ecx
pop ecx
jmp 0x406b75
call fcn.00408edf
test eax, eax
jne 0x406bad
mov eax, 0x80004005
test eax, eax
je 0x406bad
call fcn.00404fea
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0xc
test eax, eax
je 0x406ba6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x405be7
call fcn.0040560c
cmp byte [ebp + 0x65], 0
je 0x406bc5
cmp byte [0x41d6fc], 0
jne 0x406d47
lea ecx, [ebp + 0x18]
call fcn.004104c6
lea ecx, [ebp + 4]
call fcn.004104c6
cmp byte [ebp + 0x66], 0
jne 0x406be5
lea eax, [ebp + 0x18]
push eax
call fcn.004011cb
pop ecx
xor edi, edi
cmp dword [ebp + 0x28], edi
jne 0x406cce
cmp byte [0x41d6fc], 0
jne 0x406ce7
mov esi, str.setup.exe
push esi
push 0x419888
lea eax, [ebp - 0x48]
push 0x41d754
push eax
call fcn.00410869
add esp, 0xc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00410869
add esp, 0xc
push dword [eax]
lea ecx, [ebp + 4]
call fcn.004108e2
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x406c9e
call fcn.00404fea
push 0xf
push edi
call fcn.00409055
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x18]
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 + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x1c
cmp eax, edi
je 0x405c4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405c4a
mov edi, dword [0x41d754]
push esi
lea ecx, [ebp + 0x30]
call fcn.004108b3
push ebx
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x5c]
lea eax, [ebp + 0x30]
push edi
push eax
call fcn.004015eb
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
xor edi, edi
jmp 0x406ce7
push ebx
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x54]
push dword [0x41d754]
push dword [ebp + 0x24]
call fcn.0040192e
add esp, 0x14
cmp dword [0x41d80c], edi
jne 0x406d33
call fcn.0040560c
push 0xffffffffffffffff
push dword [ebp + 0x54]
push str.Shortcut
push 0x405663
call fcn.0040527c
add esp, 0x10
push dword [0x41d760]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0xffffffffffffffff
push dword [ebp + 0x54]
push str.Delete
push 0x40524d
call fcn.0040527c
add esp, 0x10
call fcn.00404fea
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406d49
xor edi, edi
cmp dword [0x41d3a8], 0xffffffff
jne 0x406d62
cmp byte [ebp + 0x67], 0
jne 0x406dba
mov dword [0x41d3a8], 1
cmp dword [0x41d3a8], edi
jle 0x406dba
push edi
push 0x41a978
call fcn.00403f7e
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x406dba
mov eax, 0x3e7
cmp dword [0x41d3a8], eax
jle 0x406d8f
mov dword [0x41d3a8], eax
lea ecx, [ebp - 0xb0]
call fcn.00405072
push edi
push esi
push dword [0x41d718]
lea ecx, [ebp - 0xb0]
push 0x11
call fcn.00407e31
lea ecx, [ebp - 0xb0]
call fcn.00407c3f
cmp byte [ebp + 0x65], 0
jne 0x406df6
cmp dword [0x41d80c], edi
jne 0x406df6
push edi
push str.SelfDelete
call fcn.00403f7e
cmp eax, edi
pop ecx
pop ecx
je 0x406df6
cmp word [eax], 0x31
jne 0x406df6
sub esp, 0xc
mov ecx, esp
push 0x41d7b8
call fcn.004104e9
call fcn.0040544c
add esp, 0xc
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, edi
je 0x406e1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x54]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor eax, eax
jmp 0x406e54
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