Function at 0x40570d
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Get file attributes
Log keystrokes via polling
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x274
push ebx
push esi
push edi
push 0x404450
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401d0d
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x406d39
cmp dword [ebp - 0x1fc], 2
jne 0x406d39
cmp dword [ebp - 0x208], 5
jb 0x406d39
or dword [ebp - 0x30], 0xffffffff
or dword [ebp - 0x28], 0xffffffff
lea ecx, [ebp - 0x3c]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x38], 0x4196dc
xor edi, edi
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x63], 0
mov byte [ebp + 0x64], 0
call fcn.00401444
lea ecx, [ebp - 0x84]
call fcn.00401444
push 0x20
pop esi
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x28], 4
mov dword [ebp + 0x18], 0x419410
call fcn.004044af
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call fcn.00404a83
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004027ae
lea eax, [ebp - 0x6c]
push eax
call fcn.00402dc2
mov ebx, dword [ebp - 0x6c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x405843
cmp word [eax], 0x3a
jne 0x405843
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x40582d
mov word [0x41c7f0], ax
jmp 0x40582d
inc ebx
inc ebx
cmp word [ebx], si
ja 0x40582b
jmp 0x40583b
cmp ax, si
ja 0x405843
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x405834
call fcn.004048ef
push str.sfxversion
push ebx
call fcn.004043e4
test eax, eax
pop ecx
pop ecx
je 0x40588d
call fcn.00404e85
xor esi, esi
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.004044fc
push dword [ebp - 0x84]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, esi
jmp 0x406d50
push str.sfxwaitall
push ebx
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x4058a9
push eax
call fcn.00405293
pop ecx
mov esi, eax
jmp 0x405860
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x4058d5
mov byte [ebp + 0x65], 1
jmp 0x4058cb
cmp cx, si
ja 0x4058d3
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4058c4
mov ebx, eax
mov esi, 0x208
cmp dword [0x41c8a0], esi
jg 0x4058ed
push esi
mov ecx, 0x41c898
call fcn.0040115e
push esi
push dword [0x41c898]
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x405911
xor esi, esi
inc esi
push 6
push esi
call fcn.00408da7
pop ecx
pop ecx
jmp 0x405860
mov esi, dword [0x41c898]
push esi
call fcn.0040114a
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41c89c], eax
call fcn.004043e4
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405acb
cmp word [esi], 0x3a
je 0x40594d
push 0x64
pop esi
jmp 0x405860
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405a4e
dec eax
dec eax
je 0x405a3a
dec eax
je 0x4059b9
sub eax, 0xb
je 0x405981
sub eax, 7
jne 0x405945
mov esi, 0x49ae
jmp 0x405860
cmp word [esi + 4], 0x3a
jne 0x40585e
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4059b1
dec eax
je 0x4059ad
dec eax
je 0x4059a9
dec eax
je 0x4059ad
dec eax
jne 0x40585e
push 7
jmp 0x405947
push 0x1f
jmp 0x405947
push 0x7f
jmp 0x405947
xor esi, esi
inc esi
jmp 0x405860
cmp cx, 0x44
jne 0x4059fa
cmp word [esi + 4], 0x3a
jne 0x405945
add esi, 6
jmp 0x4059e5
cmp ax, 0x3a
je 0x4059ed
movzx eax, ax
push eax
mov ecx, 0x41c8d8
call fcn.00401512
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x4059cf
cmp dword [0x41c8dc], edi
jne 0x4059fd
jmp 0x405945
add esi, 4
mov dword [0x41c8d0], edi
cmp word [esi], 0x3a
jne 0x405a24
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41c8d0], eax
ja 0x405a24
cmp eax, edi
jne 0x405a2e
mov dword [0x41c8d0], 0xa
mov dword [0x41c8d4], 1
jmp 0x405a5c
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41c8d4], eax
jmp 0x405a5c
mov dword [0x41c8d4], 2
jmp 0x405a5c
inc esi
inc esi
cmp word [esi], bx
ja 0x405a5a
jmp 0x405a6a
cmp ax, bx
ja 0x405a72
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405a63
push str.sfxconfig
push esi
mov ebx, esi
call fcn.004043e4
cmp eax, edi
pop ecx
pop ecx
je 0x405acb
cmp word [eax], 0x3a
jne 0x405a95
jmp 0x405a93
cmp cx, 0x20
ja 0x405a9d
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405a8d
mov ecx, dword [ebp - 0x3c]
mov word [ecx], di
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.00404a83
cmp dword [0x41c8d4], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405acb
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x41c898
call fcn.00401395
mov esi, 0x41c898
push esi
mov ecx, 0x41c85c
call fcn.00401395
mov edi, 0x41c868
push esi
mov ecx, edi
call fcn.00401395
push esi
call fcn.004030b3
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405b83
mov ecx, dword [0x41c85c]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x41c860], eax
mov eax, dword [0x41c898]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.0040135c
mov eax, dword [0x41c898]
lea eax, [esi + eax + 2]
mov esi, 0x41c880
push eax
mov ecx, esi
call fcn.0040135c
push 0x2e
mov ecx, esi
call fcn.004027e4
test eax, eax
jle 0x405b50
mov ecx, dword [0x41c880]
and word [ecx + eax*2], 0
mov dword [0x41c884], eax
push esi
mov esi, 0x41c874
mov ecx, esi
call fcn.00401395
push 4
call fcn.00402173
pop ecx
push eax
mov ecx, esi
call fcn.004027ae
mov eax, dword [0x41c880]
mov dword [0x41c820], eax
mov eax, dword [0x41c874]
mov dword [0x41c828], eax
xor esi, esi
call fcn.0040238c
push eax
mov ecx, 0x41c88c
call fcn.0040135c
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405bab
mov ecx, eax
call fcn.0040475e
mov dword [ebp + 0x54], eax
jmp 0x405bae
mov dword [ebp + 0x54], esi
mov edi, dword [ebp + 0x54]
push edi
lea ecx, [ebp + 0x5c]
call fcn.00404467
push dword [0x41c898]
lea ecx, [edi + 0xc]
call fcn.0040fa63
test al, al
jne 0x405bf2
push dword [0x41c898]
push 7
push 1
call fcn.00408da7
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, esi
je 0x405beb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405947
lea ecx, [ebp + 0x2c]
call fcn.0040280f
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x2c]
push eax
push edi
call fcn.00403c7f
test al, al
pop ecx
pop ecx
jne 0x405c31
push 9
push esi
call fcn.00408da7
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405c2a
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405947
cmp dword [0x41c8d4], esi
jne 0x405cc3
push str.sfxconfig
push ebx
call fcn.004043e4
cmp eax, esi
pop ecx
pop ecx
je 0x405cc3
cmp word [eax], 0x3a
jne 0x405c56
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405ca7
cmp cx, 0x20
ja 0x405c6e
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405c5e
cmp word [eax], si
je 0x405ca7
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.004054ad
test al, al
pop ecx
pop ecx
jne 0x405ca7
push 0xa
push esi
call fcn.00408da7
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405ca0
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405947
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x40585e
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x40585e
lea ecx, [ebp + 0x18]
call fcn.0040fe66
cmp dword [ebp + 0x30], esi
je 0x405cf0
push esi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004033ec
add esp, 0xc
test al, al
jne 0x405cf0
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405c96
cmp dword [0x41c8d4], 4
je 0x405ca7
mov eax, dword [0x41c090]
mov esi, 0x41c090
jmp 0x405d66
push eax
lea eax, [ebp - 0xf8]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00401444
lea ecx, [ebp - 0x48]
call fcn.00401444
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040135c
push dword [esi]
call fcn.00402173
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0040135c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x41c3ac
call fcn.004032c5
lea ecx, [ebp - 0x54]
add esi, 0x10
call fcn.00402686
mov eax, dword [esi]
test eax, eax
jne 0x405d05
lea eax, [ebp + 0x18]
push eax
call fcn.00404af2
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x14], ebx
cmp word [ebx], di
jbe 0x405d94
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405d81
jmp 0x405d91
cmp ax, di
ja 0x405d9c
inc ebx
inc ebx
mov dword [ebp + 0x14], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405d8a
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405daf
cmp ax, 0x2d
jne 0x405ff4
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x405fee
push 0x419914
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405e19
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405ddf
cmp ax, 0x39
jbe 0x405df7
cmp ax, 0x61
jb 0x405deb
cmp ax, 0x7a
jbe 0x405df7
cmp ax, 0x41
jb 0x405e07
cmp ax, 0x5a
ja 0x405e07
mov dword [ebp + 0x38], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405d7c
cmp ax, di
ja 0x405ff4
mov dword [ebp + 0x38], 0x4196dc
jmp 0x405dfa
push 0x41990c
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405e3c
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405f82
push 0x419904
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405e80
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405ff4
cmp cx, 0x32
ja 0x405ff4
cmp word [ebx + 8], di
ja 0x405ff4
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.GUIMode
jmp 0x405f82
push 0x4198fc
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405ea3
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405f82
push 0x4198f4
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405ec6
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405f82
push 0x4198ec
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f03
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405eed
cmp cx, 0x31
jne 0x405ff4
cmp word [ebx + 8], di
ja 0x405ff4
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.SelfDelete
jmp 0x405f82
push 0x4198e4
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f27
cmp word [ebx + 6], di
ja 0x405ff4
mov byte [ebp + 0x63], 1
jmp 0x405d7c
push 0x4198dc
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f64
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405ff4
cmp cx, 0x39
ja 0x405ff4
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c380], eax
jmp 0x405d7c
push 0x4198d4
push esi
call fcn.00404207
test eax, eax
pop ecx
pop ecx
je 0x405f8f
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.00404d3c
add esp, 0xc
jmp 0x405d7c
movzx eax, word [esi]
cmp ax, 0x79
je 0x405f9e
cmp ax, 0x59
jne 0x405fad
cmp word [ebx + 4], di
ja 0x405fad
mov byte [ebp + 0x66], 1
jmp 0x405d7c
cmp ax, 0x3f
je 0x405fbf
cmp ax, 0x68
je 0x405fbf
cmp ax, 0x48
jne 0x405fce
cmp word [ebx + 4], di
ja 0x405fce
mov byte [ebp + 0x64], 1
jmp 0x405d7c
lea eax, [ebp + 0x18]
push eax
push esi
call fcn.00404634
test eax, eax
pop ecx
pop ecx
je 0x405ff4
cmp eax, 1
je 0x406132
mov ebx, eax
jmp 0x405d79
add ebx, 4
mov dword [ebp + 0x14], ebx
lea eax, [ebp + 0x18]
push eax
call fcn.00404af2
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x406185
test byte [0x41c830], 4
je 0x406185
call fcn.0040243a
test eax, eax
jne 0x406185
lea ecx, [ebp - 8]
call fcn.00401444
lea ecx, [ebp + 0x48]
call fcn.00401444
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call fcn.00404a83
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040275d
lea eax, [ebp - 0x24]
push eax
push edi
push str.sfxelevation
push 0x419740
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push 0x22
push eax
call fcn.00404895
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.004048b3
add esp, 0xc
push eax
lea eax, [ebp + 8]
push eax
call fcn.004048b3
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004048d1
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040153d
add esp, 0xc
push eax
lea ecx, [ebp + 0x48]
call fcn.00401395
push dword [ebp - 0x60]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
xor esi, esi
push esi
push 2
push dword [ebp + 0x48]
call fcn.00404f53
add esp, 0xc
test eax, eax
push dword [ebp - 0x24]
jne 0x40614f
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, esi
je 0x40612b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x405947
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
je 0x406148
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x405860
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, esi
je 0x405860
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405860
lea eax, [ebp + 4]
push eax
mov ebx, str.SetEnvironment
lea eax, [ebp + 0x18]
push ebx
xor esi, esi
push eax
mov dword [ebp + 4], esi
call fcn.0040269c
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x406243
push edi
lea ecx, [ebp + 0x48]
call fcn.0040275d
push 0x3d
push dword [ebp + 0x48]
call fcn.0040fd13
test eax, eax
pop ecx
pop ecx
jle 0x406238
mov ecx, dword [ebp + 0x48]
lea esi, [eax + eax]
and word [esi + ecx], 0
lea ecx, [ebp - 0x54]
mov dword [ebp + 0x4c], eax
call fcn.00401444
lea ecx, [ebp - 0x48]
call fcn.00401444
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401395
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040135c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x41c3ac
call fcn.004032c5
inc dword [ebp + 4]
lea ecx, [ebp - 0x54]
call fcn.00402686
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.0040269c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4061aa
jmp 0x406241
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
call fcn.004045dd
cmp dword [0x41c374], 0xffffffff
jne 0x406257
mov dword [0x41c374], esi
cmp byte [ebp + 0x64], 0
je 0x4062c9
push esi
lea eax, [ebp + 0x18]
push str.HelpText
push eax
call fcn.0040269c
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x40627f
push 0x18
call fcn.00402173
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf0]
call fcn.00404197
push esi
push edi
push dword [0x41c820]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.00407cec
lea ecx, [ebp - 0xf0]
call fcn.00407a43
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, esi
pop ecx
je 0x40585e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40585e
cmp byte [ebp + 0x66], 0
je 0x4062d9
and dword [0x41c374], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x18]
push str.InstallPath
push eax
call fcn.0040269c
add esp, 0xc
cmp eax, esi
mov edi, 0x41c850
je 0x406303
push eax
mov ecx, edi
call fcn.0040135c
push edi
call fcn.004041b0
push esi
lea eax, [ebp + 0x18]
push str.BeginPromptTimeout
push eax
call fcn.0040269c
add esp, 0x10
cmp eax, esi
je 0x40632c
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c83c], eax
cmp dword [0x41c8dc], esi
je 0x406352
lea eax, [ebp + 0x18]
push eax
call fcn.00408f69
push dword [ebp + 0x2c]
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
pop ecx
cmp eax, esi
jmp 0x40613f
cmp dword [0x41c8d4], 3
jne 0x406366
lea eax, [ebp + 0x18]
push eax
call fcn.00408e9c
jmp 0x40633d
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x18]
push str.BeginPrompt
push eax
call fcn.0040269c
add esp, 0xc
cmp eax, edi
je 0x4063c7
cmp byte [ebp + 0x66], 0
jne 0x4063c7
push eax
push dword [0x41c820]
call fcn.00408449
test eax, eax
pop ecx
pop ecx
je 0x4064eb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4063b5
mov byte [ebp + 0x67], 1
cmp dword [0x41c8bc], edi
je 0x4063c7
and dword [0x41c374], 0xffffff7f
lea ecx, [ebp + 0x3c]
call fcn.00401444
cmp byte [ebp + 0x67], 0
je 0x406451
mov edi, dword [ebp + 0x38]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040135c
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401512
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x406508
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x40641b
cmp ax, 0x39
jbe 0x4063d8
cmp ax, 0x61
jb 0x406427
cmp ax, 0x7a
jbe 0x4063d8
cmp ax, 0x41
jb 0x406433
cmp ax, 0x5a
jbe 0x4063d8
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040135c
mov eax, dword [ebp + 0x38]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401512
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x406499
push edi
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x40647e
push ebx
lea ecx, [ebp + 0x3c]
call fcn.0040135c
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x406499
push edi
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x406499
push esi
lea ecx, [ebp + 0x3c]
call fcn.0040135c
cmp byte [ebp + 0x67], 0
jne 0x40654b
cmp byte [ebp + 0x66], 0
jne 0x40654b
mov eax, dword [0x41c374]
and ax, 0xc0
cmp al, 0x80
jne 0x40654b
push dword [0x41c814]
push dword [0x41c818]
call fcn.004084c7
test eax, eax
pop ecx
pop ecx
jne 0x40654b
cmp byte [0x41c840], al
push dword [ebp + 0x3c]
je 0x40653b
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406372
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
je 0x406501
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405947
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.00408da7
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x406534
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405947
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4064f3
cmp dword [0x41c854], edi
jne 0x406581
lea eax, [ebp - 0x78]
push str.7ZipSfx._03x
push eax
call fcn.0040452e
pop ecx
pop ecx
mov esi, 0x41c850
push eax
mov ecx, esi
call fcn.00401395
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41c804], 0
jmp 0x4065b8
mov esi, 0x41c850
push esi
lea ecx, [ebp + 0x48]
call fcn.0040132a
lea eax, [ebp + 0x48]
push eax
call fcn.004041b0
cmp dword [ebp + 0x4c], edi
pop ecx
jne 0x4065a9
lea eax, [ebp + 0x48]
push eax
mov ecx, esi
call fcn.00401395
push dword [ebp + 0x48]
mov byte [0x41c804], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41c850]
pop ecx
mov ecx, dword [0x41c854]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x4065d5
cmp dx, 0x2f
jne 0x4065e0
dec ecx
mov word [eax + ecx*2], di
mov dword [0x41c854], ecx
cmp byte [ebp + 0x66], 0
je 0x4065ed
or dword [0x41c830], 3
cmp dword [0x41c8d0], edi
jne 0x406602
push esi
push dword [ebp + 0x54]
call fcn.00401718
pop ecx
pop ecx
jmp 0x406610
call fcn.00408507
test eax, eax
jne 0x40663f
mov eax, 0x80004005
cmp eax, edi
je 0x40663f
call fcn.00404499
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
pop ecx
je 0x406638
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x405947
call fcn.004045dd
cmp byte [ebp + 0x63], 0
je 0x406657
cmp byte [0x41c804], 0
jne 0x406c35
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x54], edi
call fcn.00401444
cmp byte [ebp + 0x67], 0
jne 0x406677
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00404a2d
pop ecx
pop ecx
mov eax, dword [ebp + 0x38]
mov byte [ebp + 0x67], 0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], edi
mov byte [ebp + 0x64], 0
call fcn.00401444
lea ecx, [ebp - 0x14]
call fcn.00401444
cmp dword [ebp + 0x40], edi
mov dword [ebp + 0x58], edi
jne 0x406748
cmp byte [0x41c804], 0
jne 0x406acb
mov edi, str.setup.exe
push edi
push 0x41872c
lea eax, [ebp - 0x9c]
push 0x41c850
push eax
call fcn.004048b3
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004048b3
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.00401395
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x9c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406ae2
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp - 0x14]
call fcn.0040135c
lea eax, [ebp - 0x14]
push eax
call fcn.004041e4
mov esi, dword [ebp - 0x14]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x4067ce
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x406729
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.0040269c
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x406711
mov esi, dword [ebp - 0x2c]
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x2c], esi
jb 0x406778
cmp ax, 0x39
jbe 0x406798
cmp ax, 0x61
jb 0x406784
cmp ax, 0x7a
jbe 0x406798
cmp ax, 0x41
jb 0x406b31
cmp ax, 0x5a
ja 0x406b31
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040135c
movzx eax, word [esi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401512
push dword [ebp - 0x14]
and dword [ebp + 0x54], 0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor edi, edi
jmp 0x406681
push ebx
push str.hidcon
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x4067ec
or dword [ebp + 0x58], 1
mov esi, eax
jmp 0x406729
push ebx
push str.nowait
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x406810
cmp byte [0x41c804], 0
mov esi, eax
je 0x406729
jmp 0x406825
push ebx
push str.forcenowait
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x406831
mov esi, eax
or dword [ebp + 0x58], 0x10000
jmp 0x406729
push 2
push 0x4198dc
push esi
call fcn.00404241
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x406867
cmp dword [0x41c380], 0xffffffff
jne 0x406860
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41c380], eax
mov esi, edi
jmp 0x406729
push 3
push 0x419854
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x406887
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x30], ecx
jmp 0x4068a5
push 3
push 0x41984c
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x4068ac
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x28], ecx
mov esi, eax
jmp 0x406729
push ebx
push 0x41857c
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
jne 0x406906
push ebx
push str.i386
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
jne 0x406906
push ebx
push 0x419834
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
jne 0x4068f8
push ebx
push 0x418574
push esi
call fcn.00404241
add esp, 0xc
cmp eax, ebx
je 0x406914
mov esi, eax
mov dword [ebp - 0x18], 2
jmp 0x406729
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x406729
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 8]
je 0x40696f
cmp word [esi], 0x22
je 0x406942
mov edi, 0x4196d0
push edi
call fcn.0040135c
push esi
lea ecx, [ebp + 8]
call fcn.004027ae
push edi
lea ecx, [ebp + 8]
call fcn.004027ae
jmp 0x406948
push esi
call fcn.0040135c
push ebx
lea eax, [ebp + 0x18]
push str.ExecuteParameters
push eax
call fcn.0040269c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x406981
push 0x419830
lea ecx, [ebp + 8]
call fcn.004027ae
jmp 0x406978
lea eax, [ebp + 0x48]
push eax
call fcn.00401395
push esi
lea ecx, [ebp + 8]
call fcn.004027ae
lea ecx, [ebp - 8]
call fcn.00401444
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
call fcn.00404a83
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040275d
lea eax, [ebp - 8]
push eax
call fcn.004041e4
cmp dword [0x41c8d4], ebx
pop ecx
jne 0x406a85
push dword [ebp - 0x18]
call fcn.00402409
test eax, eax
pop ecx
je 0x406a85
mov esi, dword [ebp + 0x14]
cmp word [esi], bx
je 0x4069e8
push esi
lea ecx, [ebp - 0x24]
call fcn.004027ae
cmp word [esi], bx
je 0x4069e8
inc esi
inc esi
cmp word [esi], bx
jne 0x4069de
mov dword [ebp + 0x14], esi
lea eax, [ebp - 0x24]
push eax
call fcn.004041e4
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x406a67
lea eax, [ebp - 0x24]
push eax
push 0x419760
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x22
push eax
call fcn.00404895
add esp, 0xc
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004048b3
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040153d
push dword [ebp - 0x90]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x41c850]
push dword [ebp + 0x58]
push dword [ebp - 0x60]
call fcn.00404f53
add esp, 0x20
test eax, eax
push dword [ebp - 0x60]
je 0x406b48
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406a80
push dword [ebp + 0x58]
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.0040502a
add esp, 0xc
cmp eax, ebx
jne 0x406b50
call fcn.004023a1
cmp byte [ebp + 0x65], 0
jne 0x406bb3
cmp byte [ebp + 0x67], 0
jne 0x406bb3
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x4c], ebx
mov word [eax], bx
push dword [ebp - 0x24]
inc dword [ebp + 0x54]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4067c7
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406bd6
call fcn.00404499
push 0xf
push 0
call fcn.00408da7
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x1c
test eax, eax
je 0x4059a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4059a5
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406bd4
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406b57
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push 0x10
push 1
call fcn.00408da7
call fcn.00404499
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x28
cmp eax, ebx
je 0x406bac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405947
push dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor edi, edi
cmp dword [0x41c8d4], edi
jne 0x406c2c
call fcn.004045dd
push dword [ebp - 0x30]
lea eax, [ebp + 0x18]
push dword [ebp + 0x38]
push str.Shortcut
push eax
push 0x405630
call fcn.00404d9a
add esp, 0x14
push dword [0x41c85c]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push dword [ebp - 0x28]
lea eax, [ebp + 0x18]
push dword [ebp + 0x38]
push str.Delete
push eax
push 0x40472f
call fcn.00404d9a
add esp, 0x14
call fcn.00404499
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41c380], 0xffffffff
jne 0x406c4e
cmp byte [ebp + 0x66], 0
jne 0x406cad
mov dword [0x41c380], 1
cmp dword [0x41c380], edi
jle 0x406cad
push 0
lea eax, [ebp + 0x18]
push str.FinishMessage
push eax
call fcn.0040269c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406cad
mov eax, 0x3e7
cmp dword [0x41c380], eax
jle 0x406c81
mov dword [0x41c380], eax
lea ecx, [ebp - 0xec]
call fcn.00404480
push 0
push edi
push dword [0x41c820]
lea ecx, [ebp - 0xec]
push 0x11
call fcn.00407cec
lea ecx, [ebp - 0xec]
call fcn.00407a43
cmp byte [ebp + 0x63], 0
jne 0x406cf0
cmp dword [0x41c8d4], 0
jne 0x406cf0
push 0
lea eax, [ebp + 0x18]
push str.SelfDelete
push eax
call fcn.0040269c
add esp, 0xc
test eax, eax
je 0x406cf0
cmp word [eax], 0x31
jne 0x406cf0
sub esp, 0xc
mov ecx, esp
push 0x41c898
call fcn.0040132a
call fcn.004052f0
add esp, 0xc
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
pop ecx
je 0x406d0f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.004044fc
push dword [ebp - 0x84]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor eax, eax
jmp 0x406d50
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