Function at 0x405750
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 0x4044ac
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401d4d
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406d80
cmp dword [ebp - 0x1fc], 2
jne 0x406d80
cmp dword [ebp - 0x208], 5
jb 0x406d80
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], 0x4156cc
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.00401484
lea ecx, [ebp - 0x84]
call fcn.00401484
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], 0x415400
call fcn.004044f2
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404ac6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004027ee
lea eax, [ebp - 0x6c]
push eax
call fcn.00402e02
mov ebx, dword [ebp - 0x6c]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00404424
cmp eax, edi
pop ecx
pop ecx
je 0x405886
cmp word [eax], 0x3a
jne 0x405886
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405870
mov word [0x418770], ax
jmp 0x405870
inc ebx
inc ebx
cmp word [ebx], si
ja 0x40586e
jmp 0x40587e
cmp ax, si
ja 0x405886
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x405877
call fcn.00404932
push str.sfxversion
push ebx
call fcn.00404424
test eax, eax
pop ecx
pop ecx
je 0x4058d0
call fcn.00404ec8
xor esi, esi
push dword [ebp - 0x6c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x18]
call fcn.0040453f
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 0x406d97
push str.sfxwaitall
push ebx
call fcn.00404424
cmp eax, edi
pop ecx
pop ecx
je 0x4058ec
push eax
call fcn.004052d6
pop ecx
mov esi, eax
jmp 0x4058a3
push str.sfxelevation
push ebx
mov byte [ebp + 0x65], 0
call fcn.00404424
cmp eax, edi
pop ecx
pop ecx
je 0x405918
mov byte [ebp + 0x65], 1
jmp 0x40590e
cmp cx, si
ja 0x405916
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405907
mov ebx, eax
mov esi, 0x208
cmp dword [0x418820], esi
jg 0x405930
push esi
mov ecx, 0x418818
call fcn.0040119e
push esi
push dword [0x418818]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405954
xor esi, esi
inc esi
push 6
push esi
call fcn.00408dd2
pop ecx
pop ecx
jmp 0x4058a3
mov esi, dword [0x418818]
push esi
call fcn.0040118a
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41881c], eax
call fcn.00404424
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405b12
cmp word [esi], 0x3a
je 0x405990
push 0x64
pop esi
jmp 0x4058a3
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405a95
dec eax
dec eax
je 0x405a81
dec eax
je 0x405a00
sub eax, 0xb
je 0x4059c4
sub eax, 7
jne 0x405988
mov esi, 0x4a98
jmp 0x4058a3
cmp word [esi + 4], 0x3a
jne 0x4058a1
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4059f8
dec eax
je 0x4059f4
dec eax
je 0x4059f0
dec eax
je 0x4059ec
dec eax
jne 0x4058a1
push 7
jmp 0x40598a
push 0x7f
jmp 0x40598a
push 0x1f
jmp 0x40598a
push 0x17
jmp 0x40598a
xor esi, esi
inc esi
jmp 0x4058a3
cmp cx, 0x44
jne 0x405a41
cmp word [esi + 4], 0x3a
jne 0x405988
add esi, 6
jmp 0x405a2c
cmp ax, 0x3a
je 0x405a34
movzx eax, ax
push eax
mov ecx, 0x418858
call fcn.00401552
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x405a16
cmp dword [0x41885c], edi
jne 0x405a44
jmp 0x405988
add esi, 4
mov dword [0x418850], edi
cmp word [esi], 0x3a
jne 0x405a6b
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x418850], eax
ja 0x405a6b
cmp eax, edi
jne 0x405a75
mov dword [0x418850], 0xa
mov dword [0x418854], 1
jmp 0x405aa3
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x418854], eax
jmp 0x405aa3
mov dword [0x418854], 2
jmp 0x405aa3
inc esi
inc esi
cmp word [esi], bx
ja 0x405aa1
jmp 0x405ab1
cmp ax, bx
ja 0x405ab9
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x405aaa
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00404424
cmp eax, edi
pop ecx
pop ecx
je 0x405b12
cmp word [eax], 0x3a
jne 0x405adc
jmp 0x405ada
cmp cx, 0x20
ja 0x405ae4
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405ad4
mov ecx, dword [ebp - 0x3c]
mov word [ecx], di
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x38], edi
call fcn.00404ac6
cmp dword [0x418854], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405b12
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x418818
call fcn.004013d5
mov esi, 0x418818
push esi
mov ecx, 0x4187dc
call fcn.004013d5
mov edi, 0x4187e8
push esi
mov ecx, edi
call fcn.004013d5
push esi
call fcn.004030f3
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405bca
mov ecx, dword [0x4187dc]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x4187e0], eax
mov eax, dword [0x418818]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.0040139c
mov eax, dword [0x418818]
lea eax, [esi + eax + 2]
mov esi, 0x418800
push eax
mov ecx, esi
call fcn.0040139c
push 0x2e
mov ecx, esi
call fcn.00402824
test eax, eax
jle 0x405b97
mov ecx, dword [0x418800]
and word [ecx + eax*2], 0
mov dword [0x418804], eax
push esi
mov esi, 0x4187f4
mov ecx, esi
call fcn.004013d5
push 4
call fcn.004021b3
pop ecx
push eax
mov ecx, esi
call fcn.004027ee
mov eax, dword [0x418800]
mov dword [0x4187a0], eax
mov eax, dword [0x4187f4]
mov dword [0x4187a8], eax
xor esi, esi
call fcn.004023cc
push eax
mov ecx, 0x41880c
call fcn.0040139c
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405bf2
mov ecx, eax
call fcn.004047a1
mov dword [ebp + 0x54], eax
jmp 0x405bf5
mov dword [ebp + 0x54], esi
mov edi, dword [ebp + 0x54]
push edi
lea ecx, [ebp + 0x5c]
call fcn.00401132
push dword [0x418818]
lea ecx, [edi + 0xc]
call fcn.0040bf94
test al, al
jne 0x405c39
push dword [0x418818]
push 7
push 1
call fcn.00408dd2
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, esi
je 0x405c32
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x40598a
lea ecx, [ebp + 0x2c]
call fcn.0040284f
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x2c]
push eax
push edi
call fcn.00403cbf
test al, al
pop ecx
pop ecx
jne 0x405c78
push 9
push esi
call fcn.00408dd2
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405c71
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x40598a
cmp dword [0x418854], esi
jne 0x405d0a
push str.sfxconfig
push ebx
call fcn.00404424
cmp eax, esi
pop ecx
pop ecx
je 0x405d0a
cmp word [eax], 0x3a
jne 0x405c9d
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405cee
cmp cx, 0x20
ja 0x405cb5
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405ca5
cmp word [eax], si
je 0x405cee
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.004054f0
test al, al
pop ecx
pop ecx
jne 0x405cee
push 0xa
push esi
call fcn.00408dd2
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405ce7
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x40598a
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x4058a1
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4058a1
lea ecx, [ebp + 0x18]
call fcn.0040c397
cmp dword [ebp + 0x30], esi
je 0x405d37
push esi
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.0040342c
add esp, 0xc
test al, al
jne 0x405d37
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405cdd
cmp dword [0x418854], 4
je 0x405cee
mov eax, dword [0x418080]
mov esi, 0x418080
jmp 0x405dad
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.00401484
lea ecx, [ebp - 0x48]
call fcn.00401484
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040139c
push dword [esi]
call fcn.004021b3
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0040139c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x41839c
call fcn.00403305
lea ecx, [ebp - 0x54]
add esi, 0x10
call fcn.004026c6
mov eax, dword [esi]
test eax, eax
jne 0x405d4c
lea eax, [ebp + 0x18]
push eax
call fcn.00404b35
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x14], ebx
cmp word [ebx], di
jbe 0x405ddb
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405dc8
jmp 0x405dd8
cmp ax, di
ja 0x405de3
inc ebx
inc ebx
mov dword [ebp + 0x14], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405dd1
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405df6
cmp ax, 0x2d
jne 0x40603b
lea esi, [ebx + 2]
cmp word [esi], 0x21
je 0x406035
push 0x415904
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405e60
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405e26
cmp ax, 0x39
jbe 0x405e3e
cmp ax, 0x61
jb 0x405e32
cmp ax, 0x7a
jbe 0x405e3e
cmp ax, 0x41
jb 0x405e4e
cmp ax, 0x5a
ja 0x405e4e
mov dword [ebp + 0x38], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405dc3
cmp ax, di
ja 0x40603b
mov dword [ebp + 0x38], 0x4156cc
jmp 0x405e41
push 0x4158fc
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405e83
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405fc9
push 0x4158f4
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405ec7
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40603b
cmp cx, 0x32
ja 0x40603b
cmp word [ebx + 8], di
ja 0x40603b
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.GUIMode
jmp 0x405fc9
push 0x4158ec
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405eea
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405fc9
push 0x4158e4
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405f0d
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405fc9
push 0x4158dc
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405f4a
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405f34
cmp cx, 0x31
jne 0x40603b
cmp word [ebx + 8], di
ja 0x40603b
lea ecx, [ebp + 0x18]
push ecx
push eax
push str.SelfDelete
jmp 0x405fc9
push 0x4158d4
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405f6e
cmp word [ebx + 6], di
ja 0x40603b
mov byte [ebp + 0x63], 1
jmp 0x405dc3
push 0x4158cc
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405fab
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40603b
cmp cx, 0x39
ja 0x40603b
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x418370], eax
jmp 0x405dc3
push 0x4158c4
push esi
call fcn.00404247
test eax, eax
pop ecx
pop ecx
je 0x405fd6
lea eax, [ebp + 0x18]
push eax
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.00404d7f
add esp, 0xc
jmp 0x405dc3
movzx eax, word [esi]
cmp ax, 0x79
je 0x405fe5
cmp ax, 0x59
jne 0x405ff4
cmp word [ebx + 4], di
ja 0x405ff4
mov byte [ebp + 0x66], 1
jmp 0x405dc3
cmp ax, 0x3f
je 0x406006
cmp ax, 0x68
je 0x406006
cmp ax, 0x48
jne 0x406015
cmp word [ebx + 4], di
ja 0x406015
mov byte [ebp + 0x64], 1
jmp 0x405dc3
lea eax, [ebp + 0x18]
push eax
push esi
call fcn.00404677
test eax, eax
pop ecx
pop ecx
je 0x40603b
cmp eax, 1
je 0x406179
mov ebx, eax
jmp 0x405dc0
add ebx, 4
mov dword [ebp + 0x14], ebx
lea eax, [ebp + 0x18]
push eax
call fcn.00404b35
cmp byte [ebp + 0x65], 0
pop ecx
jne 0x4061cc
test byte [0x4187b0], 4
je 0x4061cc
call fcn.0040247a
test eax, eax
jne 0x4061cc
lea ecx, [ebp - 8]
call fcn.00401484
lea ecx, [ebp + 0x48]
call fcn.00401484
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404ac6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040279d
lea eax, [ebp - 0x24]
push eax
push edi
push str.sfxelevation
push 0x415730
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x78]
push 0x22
push eax
call fcn.004048d8
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.004048f6
add esp, 0xc
push eax
lea eax, [ebp + 8]
push eax
call fcn.004048f6
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404914
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040157d
add esp, 0xc
push eax
lea ecx, [ebp + 0x48]
call fcn.004013d5
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.00404f96
add esp, 0xc
test eax, eax
push dword [ebp - 0x24]
jne 0x406196
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 0x406172
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x40598a
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
test eax, eax
pop ecx
je 0x40618f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x4058a3
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 0x4058a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4058a3
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.004026dc
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x40628a
push edi
lea ecx, [ebp + 0x48]
call fcn.0040279d
push 0x3d
push dword [ebp + 0x48]
call fcn.0040c244
test eax, eax
pop ecx
pop ecx
jle 0x40627f
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.00401484
lea ecx, [ebp - 0x48]
call fcn.00401484
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x54]
call fcn.004013d5
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040139c
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x41839c
call fcn.00403305
inc dword [ebp + 4]
lea ecx, [ebp - 0x54]
call fcn.004026c6
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.004026dc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4061f1
jmp 0x406288
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
call fcn.00404620
cmp dword [0x418364], 0xffffffff
jne 0x40629e
mov dword [0x418364], esi
cmp byte [ebp + 0x64], 0
je 0x406310
push esi
lea eax, [ebp + 0x18]
push str.HelpText
push eax
call fcn.004026dc
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x4062c6
push 0x18
call fcn.004021b3
pop ecx
mov edi, eax
lea ecx, [ebp - 0xf0]
call fcn.004041d7
push esi
push edi
push dword [0x4187a0]
lea ecx, [ebp - 0xf0]
push 0x11
call fcn.00407d17
lea ecx, [ebp - 0xf0]
call fcn.00407a8a
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, esi
pop ecx
je 0x4058a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4058a1
cmp byte [ebp + 0x66], 0
je 0x406320
and dword [0x418364], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x18]
push str.InstallPath
push eax
call fcn.004026dc
add esp, 0xc
cmp eax, esi
mov edi, 0x4187d0
je 0x40634a
push eax
mov ecx, edi
call fcn.0040139c
push edi
call fcn.004041f0
push esi
lea eax, [ebp + 0x18]
push str.BeginPromptTimeout
push eax
call fcn.004026dc
add esp, 0x10
cmp eax, esi
je 0x406373
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4187bc], eax
cmp dword [0x41885c], esi
je 0x406399
lea eax, [ebp + 0x18]
push eax
call fcn.00408f94
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 0x406186
cmp dword [0x418854], 3
jne 0x4063ad
lea eax, [ebp + 0x18]
push eax
call fcn.00408ec7
jmp 0x406384
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x18]
push str.BeginPrompt
push eax
call fcn.004026dc
add esp, 0xc
cmp eax, edi
je 0x40640e
cmp byte [ebp + 0x66], 0
jne 0x40640e
push eax
push dword [0x4187a0]
call fcn.00408474
test eax, eax
pop ecx
pop ecx
je 0x406532
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4063fc
mov byte [ebp + 0x67], 1
cmp dword [0x41883c], edi
je 0x40640e
and dword [0x418364], 0xffffff7f
lea ecx, [ebp + 0x3c]
call fcn.00401484
cmp byte [ebp + 0x67], 0
je 0x406498
mov edi, dword [ebp + 0x38]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040139c
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401552
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.004026dc
add esp, 0xc
test eax, eax
je 0x40654f
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x406462
cmp ax, 0x39
jbe 0x40641f
cmp ax, 0x61
jb 0x40646e
cmp ax, 0x7a
jbe 0x40641f
cmp ax, 0x41
jb 0x40647a
cmp ax, 0x5a
jbe 0x40641f
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040139c
mov eax, dword [ebp + 0x38]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401552
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x4064e0
push edi
lea eax, [ebp + 0x18]
push ebx
push eax
call fcn.004026dc
add esp, 0xc
test eax, eax
je 0x4064c5
push ebx
lea ecx, [ebp + 0x3c]
call fcn.0040139c
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x4064e0
push edi
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.004026dc
add esp, 0xc
test eax, eax
je 0x4064e0
push esi
lea ecx, [ebp + 0x3c]
call fcn.0040139c
cmp byte [ebp + 0x67], 0
jne 0x406592
cmp byte [ebp + 0x66], 0
jne 0x406592
mov eax, dword [0x418364]
and ax, 0xc0
cmp al, 0x80
jne 0x406592
push dword [0x418794]
push dword [0x418798]
call fcn.004084f2
test eax, eax
pop ecx
pop ecx
jne 0x406592
cmp byte [0x4187c0], al
push dword [ebp + 0x3c]
je 0x406582
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4063b9
push dword [ebp + 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
cmp eax, edi
pop ecx
je 0x406548
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x40598a
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.00408dd2
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 0x40657b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x40598a
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 0x40653a
cmp dword [0x4187d4], edi
jne 0x4065c8
lea eax, [ebp - 0x78]
push str.7ZipSfx._03x
push eax
call fcn.00404571
pop ecx
pop ecx
mov esi, 0x4187d0
push eax
mov ecx, esi
call fcn.004013d5
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x418784], 0
jmp 0x4065ff
mov esi, 0x4187d0
push esi
lea ecx, [ebp + 0x48]
call fcn.0040136a
lea eax, [ebp + 0x48]
push eax
call fcn.004041f0
cmp dword [ebp + 0x4c], edi
pop ecx
jne 0x4065f0
lea eax, [ebp + 0x48]
push eax
mov ecx, esi
call fcn.004013d5
push dword [ebp + 0x48]
mov byte [0x418784], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x4187d0]
pop ecx
mov ecx, dword [0x4187d4]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x40661c
cmp dx, 0x2f
jne 0x406627
dec ecx
mov word [eax + ecx*2], di
mov dword [0x4187d4], ecx
cmp byte [ebp + 0x66], 0
je 0x406634
or dword [0x4187b0], 3
cmp dword [0x418850], edi
jne 0x406649
push esi
push dword [ebp + 0x54]
call fcn.00401758
pop ecx
pop ecx
jmp 0x406657
call fcn.00408532
test eax, eax
jne 0x406686
mov eax, 0x80004005
cmp eax, edi
je 0x406686
call fcn.004044dc
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 0x40667f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x40598a
call fcn.00404620
cmp byte [ebp + 0x63], 0
je 0x40669e
cmp byte [0x418784], 0
jne 0x406c7c
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x54], edi
call fcn.00401484
cmp byte [ebp + 0x67], 0
jne 0x4066be
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00404a70
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.00401484
lea ecx, [ebp - 0x14]
call fcn.00401484
cmp dword [ebp + 0x40], edi
mov dword [ebp + 0x58], edi
jne 0x40678f
cmp byte [0x418784], 0
jne 0x406b12
mov edi, str.setup.exe
push edi
push 0x41472c
lea eax, [ebp - 0x9c]
push 0x4187d0
push eax
call fcn.004048f6
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004048f6
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.004013d5
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 0x406b29
mov byte [ebp + 0x67], 1
push edi
lea ecx, [ebp - 0x14]
call fcn.0040139c
lea eax, [ebp - 0x14]
push eax
call fcn.00404224
mov esi, dword [ebp - 0x14]
pop ecx
xor ebx, ebx
push ebx
push str.waitall
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
je 0x406815
mov esi, eax
mov byte [ebp + 0x64], 1
jmp 0x406770
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x18]
push eax
call fcn.004026dc
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x406758
mov esi, dword [ebp - 0x2c]
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x2c], esi
jb 0x4067bf
cmp ax, 0x39
jbe 0x4067df
cmp ax, 0x61
jb 0x4067cb
cmp ax, 0x7a
jbe 0x4067df
cmp ax, 0x41
jb 0x406b78
cmp ax, 0x5a
ja 0x406b78
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.0040139c
movzx eax, word [esi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401552
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 0x4066c8
push ebx
push str.hidcon
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
je 0x406833
or dword [ebp + 0x58], 1
mov esi, eax
jmp 0x406770
push ebx
push str.nowait
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
je 0x406857
cmp byte [0x418784], 0
mov esi, eax
je 0x406770
jmp 0x40686c
push ebx
push str.forcenowait
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
je 0x406878
mov esi, eax
or dword [ebp + 0x58], 0x10000
jmp 0x406770
push 2
push 0x4158cc
push esi
call fcn.00404281
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x4068ae
cmp dword [0x418370], 0xffffffff
jne 0x4068a7
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x418370], eax
mov esi, edi
jmp 0x406770
push 3
push 0x415844
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
je 0x4068ce
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x30], ecx
jmp 0x4068ec
push 3
push 0x41583c
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
je 0x4068f3
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x28], ecx
mov esi, eax
jmp 0x406770
push ebx
push 0x41457c
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
jne 0x40694d
push ebx
push str.i386
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
jne 0x40694d
push ebx
push 0x415824
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
jne 0x40693f
push ebx
push 0x414574
push esi
call fcn.00404281
add esp, 0xc
cmp eax, ebx
je 0x40695b
mov esi, eax
mov dword [ebp - 0x18], 2
jmp 0x406770
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x406770
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 8]
je 0x4069b6
cmp word [esi], 0x22
je 0x406989
mov edi, 0x4156c0
push edi
call fcn.0040139c
push esi
lea ecx, [ebp + 8]
call fcn.004027ee
push edi
lea ecx, [ebp + 8]
call fcn.004027ee
jmp 0x40698f
push esi
call fcn.0040139c
push ebx
lea eax, [ebp + 0x18]
push str.ExecuteParameters
push eax
call fcn.004026dc
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4069c8
push 0x415820
lea ecx, [ebp + 8]
call fcn.004027ee
jmp 0x4069bf
lea eax, [ebp + 0x48]
push eax
call fcn.004013d5
push esi
lea ecx, [ebp + 8]
call fcn.004027ee
lea ecx, [ebp - 8]
call fcn.00401484
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
call fcn.00404ac6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040279d
lea eax, [ebp - 8]
push eax
call fcn.00404224
cmp dword [0x418854], ebx
pop ecx
jne 0x406acc
push dword [ebp - 0x18]
call fcn.00402449
test eax, eax
pop ecx
je 0x406acc
mov esi, dword [ebp + 0x14]
cmp word [esi], bx
je 0x406a2f
push esi
lea ecx, [ebp - 0x24]
call fcn.004027ee
cmp word [esi], bx
je 0x406a2f
inc esi
inc esi
cmp word [esi], bx
jne 0x406a25
mov dword [ebp + 0x14], esi
lea eax, [ebp - 0x24]
push eax
call fcn.00404224
cmp byte [ebp + 0x64], 0
pop ecx
jne 0x406aae
lea eax, [ebp - 0x24]
push eax
push 0x415750
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x48]
push 0x22
push eax
call fcn.004048d8
add esp, 0xc
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004048f6
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040157d
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 [0x4187d0]
push dword [ebp + 0x58]
push dword [ebp - 0x60]
call fcn.00404f96
add esp, 0x20
test eax, eax
push dword [ebp - 0x60]
je 0x406b8f
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406ac7
push dword [ebp + 0x58]
push dword [ebp - 0x24]
push dword [ebp - 8]
call fcn.0040506d
add esp, 0xc
cmp eax, ebx
jne 0x406b97
call fcn.004023e1
cmp byte [ebp + 0x65], 0
jne 0x406bfa
cmp byte [ebp + 0x67], 0
jne 0x406bfa
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 0x40680e
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 0x406c1d
call fcn.004044dc
push 0xf
push 0
call fcn.00408dd2
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 0x4059e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4059e8
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 0x406c1b
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406b9e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 0x10
push 1
call fcn.00408dd2
call fcn.004044dc
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 0x406bf3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x40598a
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 [0x418854], edi
jne 0x406c73
call fcn.00404620
push dword [ebp - 0x30]
lea eax, [ebp + 0x18]
push dword [ebp + 0x38]
push str.Shortcut
push eax
push 0x405673
call fcn.00404ddd
add esp, 0x14
push dword [0x4187dc]
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 0x404772
call fcn.00404ddd
add esp, 0x14
call fcn.004044dc
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x418370], 0xffffffff
jne 0x406c95
cmp byte [ebp + 0x66], 0
jne 0x406cf4
mov dword [0x418370], 1
cmp dword [0x418370], edi
jle 0x406cf4
push 0
lea eax, [ebp + 0x18]
push str.FinishMessage
push eax
call fcn.004026dc
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406cf4
mov eax, 0x3e7
cmp dword [0x418370], eax
jle 0x406cc8
mov dword [0x418370], eax
lea ecx, [ebp - 0xec]
call fcn.004044c3
push 0
push edi
push dword [0x4187a0]
lea ecx, [ebp - 0xec]
push 0x11
call fcn.00407d17
lea ecx, [ebp - 0xec]
call fcn.00407a8a
cmp byte [ebp + 0x63], 0
jne 0x406d37
cmp dword [0x418854], 0
jne 0x406d37
push 0
lea eax, [ebp + 0x18]
push str.SelfDelete
push eax
call fcn.004026dc
add esp, 0xc
test eax, eax
je 0x406d37
cmp word [eax], 0x31
jne 0x406d37
sub esp, 0xc
mov ecx, esp
push 0x418818
call fcn.0040136a
call fcn.00405333
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 0x406d56
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.0040453f
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 0x406d97
push 0x10
push 0x4153c4
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