Function at 0x404f66
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Create process on windows
Get file attributes
Log keystrokes via polling
Self delete
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2a0
push ebx
push esi
push edi
push 0x403d88
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401b1d
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x40646c
cmp dword [ebp - 0x228], 2
jne 0x40646c
cmp dword [ebp - 0x234], 5
jb 0x40646c
or dword [ebp - 0x44], 0xffffffff
or dword [ebp - 0x3c], 0xffffffff
lea ecx, [ebp - 0x50]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x54], 0x414870
xor esi, esi
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x64], 0
mov byte [ebp + 0x65], 0
call fcn.004013fd
lea ecx, [ebp - 0x80]
call fcn.004013fd
push 4
pop edi
push 0x20
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x28], 0x414564
call fcn.00403dc9
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call fcn.00404547
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.004024c5
lea eax, [ebp - 0x74]
push eax
call fcn.004029e3
mov ebx, dword [ebp - 0x74]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403d1c
pop ecx
pop ecx
cmp eax, esi
je 0x405098
cmp word [eax], 0x3a
jne 0x405098
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405080
mov word [0x41774c], ax
jmp 0x405080
inc ebx
inc ebx
cmp word [ebx], 0x20
ja 0x40507e
jmp 0x405090
cmp ax, 0x20
ja 0x405098
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, si
jne 0x405088
call fcn.004043b8
push str.sfxversion
push ebx
call fcn.00403d1c
pop ecx
pop ecx
test eax, eax
je 0x4050df
call fcn.00404949
xor esi, esi
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403e16
push dword [ebp - 0x80]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, esi
jmp 0x406483
mov esi, 0x208
cmp dword [0x4177ec], esi
jg 0x4050f7
push esi
mov ecx, 0x4177e4
call fcn.00401112
push esi
push dword [0x4177e4]
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x405119
xor esi, esi
inc esi
push 6
push esi
call fcn.00407784
pop ecx
pop ecx
jmp 0x4050b5
mov esi, dword [0x4177e4]
push esi
call fcn.004010fe
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [esp], str.sfxtest
push ebx
mov dword [0x4177e8], eax
call fcn.00403d1c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4052a6
cmp word [esi], 0x3a
je 0x405157
push 0x64
pop esi
jmp 0x4050b5
movzx ecx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x405228
sub eax, ebx
je 0x405214
dec eax
je 0x405195
sub eax, ebx
je 0x40518b
sub eax, 0x10
jne 0x40514f
mov esi, 0x4834
jmp 0x4050b5
mov esi, 0x2033
jmp 0x4050b5
cmp cx, 0x44
jne 0x4051d4
cmp word [esi + 4], 0x3a
jne 0x40514f
add esi, 6
jmp 0x4051bd
cmp ax, 0x3a
je 0x4051c6
movzx eax, ax
push eax
mov ecx, 0x417814
call fcn.00401415
add esi, ebx
movzx eax, word [esi]
cmp ax, 0x20
ja 0x4051a7
cmp dword [0x417818], 0
jne 0x4051d6
jmp 0x40514f
add esi, edi
and dword [0x41780c], 0
cmp word [esi], 0x3a
jne 0x4051fe
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41780c], eax
cmp eax, 0xe10
ja 0x4051fe
test eax, eax
jne 0x405208
mov dword [0x41780c], 0xa
mov dword [0x417810], 1
jmp 0x405232
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x417810], eax
jmp 0x405232
mov dword [0x417810], ebx
jmp 0x405232
add esi, ebx
cmp word [esi], 0x20
ja 0x405230
jmp 0x405242
cmp ax, 0x20
ja 0x40524a
add esi, ebx
movzx eax, word [esi]
test ax, ax
jne 0x40523a
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403d1c
pop ecx
pop ecx
test eax, eax
je 0x4052a6
cmp word [eax], 0x3a
jne 0x40526d
jmp 0x40526b
cmp cx, 0x20
ja 0x405275
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x405265
mov edx, dword [ebp - 0x50]
and dword [ebp - 0x4c], 0
xor ecx, ecx
mov word [edx], cx
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.00404547
cmp dword [0x417810], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4052a6
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x4177e4
call fcn.0040134b
mov esi, 0x4177e4
push esi
mov ecx, 0x4177b4
call fcn.0040134b
mov edi, 0x4177c0
push esi
mov ecx, edi
call fcn.0040134b
push esi
call fcn.00402cd9
xor esi, esi
cmp eax, esi
pop ecx
jl 0x405360
mov edx, dword [0x4177b4]
lea esi, [eax + eax]
xor ecx, ecx
mov word [esi + edx], cx
mov dword [0x4177b8], eax
mov eax, dword [0x4177e4]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401311
mov eax, dword [0x4177e4]
lea eax, [esi + eax + 2]
mov esi, 0x4177d8
push eax
mov ecx, esi
call fcn.00401311
push 0x2e
mov ecx, esi
call fcn.004024fb
test eax, eax
jle 0x40532d
mov edx, dword [0x4177d8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [0x4177dc], eax
push esi
mov esi, 0x4177cc
mov ecx, esi
call fcn.0040134b
push 4
call fcn.00401f88
pop ecx
push eax
mov ecx, esi
call fcn.004024c5
mov eax, dword [0x4177d8]
mov dword [0x41777c], eax
mov eax, dword [0x4177cc]
mov dword [0x417784], eax
xor esi, esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x405377
mov ecx, eax
call fcn.0040415f
mov edi, eax
jmp 0x405379
xor edi, edi
push edi
lea ecx, [ebp + 0x60]
call fcn.0040945d
push dword [0x4177e4]
mov ecx, edi
call fcn.0040dc8f
test al, al
jne 0x4053b9
push dword [0x4177e4]
push 7
push 1
call fcn.00407784
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x4053b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405151
lea ecx, [ebp + 0x48]
call fcn.00402526
lea ecx, [ebp + 0x1c]
call fcn.00402526
lea ecx, [ebp + 0x10]
call fcn.00402526
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
movzx eax, word [0x41774c]
push eax
call fcn.00404dfb
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push edi
call fcn.004027be
add esp, 0x1c
test al, al
jne 0x40544f
lea eax, [ebp + 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.004027be
add esp, 0x10
test al, al
jne 0x40544f
push 9
push esi
call fcn.00407784
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
cmp edi, esi
je 0x405448
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405151
cmp dword [0x417810], esi
jne 0x405507
push str.sfxconfig
push ebx
call fcn.00403d1c
pop ecx
pop ecx
cmp eax, esi
je 0x405507
cmp word [eax], 0x3a
jne 0x405478
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x4054d9
cmp cx, 0x20
ja 0x405490
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405480
cmp word [eax], si
je 0x4054d9
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00404c76
pop ecx
pop ecx
test al, al
jne 0x4054d9
push 0xa
push esi
call fcn.00407784
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
cmp edi, esi
je 0x4054d2
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405151
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x4050b5
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4050b5
lea ecx, [ebp + 0x28]
call fcn.0040e96c
cmp dword [ebp + 0x4c], esi
je 0x405546
push esi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00403017
add esp, 0xc
test al, al
jne 0x405546
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x4054c8
cmp dword [0x417810], 4
je 0x4054d9
mov eax, dword [0x417058]
mov esi, 0x417058
jmp 0x4055bc
push eax
lea eax, [ebp - 0x124]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.004013fd
lea ecx, [ebp - 0x5c]
call fcn.004013fd
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401311
push dword [esi]
call fcn.00401f88
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401311
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x417384
call fcn.00402ef0
lea ecx, [ebp - 0x68]
add esi, 0x10
call fcn.00401a52
mov eax, dword [esi]
test eax, eax
jne 0x40555b
lea eax, [ebp + 0x28]
push eax
call fcn.004045b6
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x58], ebx
cmp word [ebx], di
jbe 0x4055ea
inc ebx
inc ebx
cmp word [ebx], di
ja 0x4055d7
jmp 0x4055e7
cmp ax, di
ja 0x4055f2
inc ebx
inc ebx
mov dword [ebp + 0x58], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x4055e0
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405605
cmp ax, 0x2d
jne 0x405834
lea esi, [ebx + 2]
cmp word [esi], 0x21
jne 0x405618
cmp word [ebx + 4], di
jbe 0x40581d
push 0x414a8c
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x405675
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x40563b
cmp ax, 0x39
jbe 0x405653
cmp ax, 0x61
jb 0x405647
cmp ax, 0x7a
jbe 0x405653
cmp ax, 0x41
jb 0x405663
cmp ax, 0x5a
ja 0x405663
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x4055d2
cmp ax, di
ja 0x405834
mov dword [ebp + 0x54], 0x414870
jmp 0x405656
push 0x414a84
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x405698
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405754
push 0x414a7c
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x4056d9
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405834
cmp cx, 0x32
ja 0x405834
cmp word [ebx + 8], di
ja 0x405834
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.GUIMode
jmp 0x405754
push 0x414a74
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x4056f9
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405754
push 0x414a6c
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x405719
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405754
push 0x414a64
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x405761
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405740
cmp cx, 0x31
jne 0x405834
cmp word [ebx + 8], di
ja 0x405834
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.SelfDelete
call fcn.00404800
add esp, 0xc
jmp 0x4055d2
push 0x414a5c
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x405785
cmp word [ebx + 6], di
ja 0x405834
mov byte [ebp + 0x64], 1
jmp 0x4055d2
push 0x414a54
push esi
call fcn.00403b3f
pop ecx
pop ecx
test eax, eax
je 0x4057c2
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405834
cmp cx, 0x39
ja 0x405834
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x417358], eax
jmp 0x4055d2
movzx eax, word [esi]
cmp ax, 0x79
je 0x4057d1
cmp ax, 0x59
jne 0x4057e0
cmp word [ebx + 4], di
ja 0x4057e0
mov byte [ebp + 0x66], 1
jmp 0x4055d2
cmp ax, 0x3f
je 0x4057f2
cmp ax, 0x68
je 0x4057f2
cmp ax, 0x48
jne 0x405801
cmp word [ebx + 4], di
ja 0x405801
mov byte [ebp + 0x65], 1
jmp 0x4055d2
lea eax, [ebp + 0x28]
push eax
push esi
call fcn.00404033
pop ecx
pop ecx
test eax, eax
je 0x405834
cmp eax, 1
je 0x40584b
mov ebx, eax
jmp 0x4055cf
add ebx, 4
jmp 0x405829
cmp ax, di
ja 0x405834
inc ebx
inc ebx
movzx eax, word [ebx]
mov dword [ebp + 0x58], ebx
test ax, ax
jne 0x405822
lea eax, [ebp + 0x28]
push eax
call fcn.004045b6
and dword [ebp], 0
mov ebx, str.SetEnvironment
jmp 0x4058ec
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x405873
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x4050b5
push edi
lea ecx, [ebp - 0x10]
call fcn.0040248c
push 0
push 0x3d
lea ecx, [ebp - 0x10]
call fcn.00402601
test eax, eax
jle 0x405909
mov edx, dword [ebp - 0x10]
xor ecx, ecx
lea esi, [eax + eax]
mov word [esi + edx], cx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xc], eax
call fcn.004013fd
lea ecx, [ebp - 0x5c]
call fcn.004013fd
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040134b
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401311
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x417384
call fcn.00402ef0
inc dword [ebp]
lea ecx, [ebp - 0x68]
call fcn.00401a52
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp]
push eax
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.004023cb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40587a
jmp 0x405912
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00403fdc
xor esi, esi
cmp dword [0x41734c], 0xffffffff
jne 0x405928
mov dword [0x41734c], esi
cmp byte [ebp + 0x65], 0
je 0x4059ac
push esi
lea eax, [ebp + 0x28]
push str.HelpText
push eax
call fcn.004023cb
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x405950
push 0x18
call fcn.00401f88
pop ecx
mov edi, eax
lea ecx, [ebp - 0x108]
call fcn.00403ad5
push esi
push edi
push dword [0x41777c]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.004073d9
lea ecx, [ebp - 0x108]
call fcn.00406651
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x4050b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4050b3
cmp byte [ebp + 0x66], 0
je 0x4059bc
and dword [0x41734c], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x28]
push str.InstallPath
push eax
call fcn.004023cb
add esp, 0xc
mov esi, 0x4177a8
test eax, eax
je 0x4059e6
push eax
mov ecx, esi
call fcn.00401311
push esi
call fcn.00403aee
cmp dword [0x417818], 0
pop ecx
je 0x405a21
lea eax, [ebp + 0x28]
push eax
call fcn.004083c9
push dword [ebp + 0x10]
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405866
cmp dword [0x417810], 3
jne 0x405a35
lea eax, [ebp + 0x28]
push eax
call fcn.004082fa
jmp 0x4059ff
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x28]
push str.BeginPrompt
push eax
call fcn.004023cb
add esp, 0xc
cmp eax, edi
je 0x405a89
cmp byte [ebp + 0x66], 0
jne 0x405a89
push eax
push dword [0x41777c]
call fcn.0040761f
pop ecx
pop ecx
test eax, eax
je 0x405bb2
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x405a89
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x3c]
call fcn.004013fd
cmp byte [ebp + 0x67], 0
je 0x405b13
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401311
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401415
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.004023cb
add esp, 0xc
test eax, eax
je 0x405be1
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x405add
cmp ax, 0x39
jbe 0x405a9a
cmp ax, 0x61
jb 0x405ae9
cmp ax, 0x7a
jbe 0x405a9a
cmp ax, 0x41
jb 0x405af5
cmp ax, 0x5a
jbe 0x405a9a
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401311
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401415
xor edi, edi
mov byte [ebp + 0x65], 0
cmp dword [ebp + 0x40], edi
jne 0x405b5b
push edi
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.004023cb
add esp, 0xc
test eax, eax
je 0x405b40
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00401311
mov byte [ebp + 0x65], 1
cmp dword [ebp + 0x40], edi
jne 0x405b5b
push edi
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.004023cb
add esp, 0xc
test eax, eax
je 0x405b5b
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401311
cmp byte [ebp + 0x67], 0
jne 0x405c46
cmp byte [ebp + 0x66], 0
jne 0x405c46
mov eax, dword [0x41734c]
and eax, 0xc0
cmp al, 0x80
jne 0x405c46
push dword [0x417770]
push dword [0x417774]
call fcn.00407681
pop ecx
pop ecx
test eax, eax
jne 0x405c46
push dword [ebp + 0x3c]
cmp byte [0x417798], al
je 0x405c24
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405a41
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, dword [ebp + 0x60]
cmp eax, edi
je 0x405bda
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405151
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.00407784
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
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
test eax, eax
je 0x405c1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405151
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405bcd
cmp dword [0x4177ac], edi
jne 0x405c7c
lea eax, [ebp - 0x1c]
push str.7ZipSfx._03x
push eax
call fcn.00403f2b
pop ecx
pop ecx
mov esi, 0x4177a8
push eax
mov ecx, esi
call fcn.0040134b
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x417760], 0
jmp 0x405cb3
mov esi, 0x4177a8
push esi
lea ecx, [ebp - 0x1c]
call fcn.004012df
lea eax, [ebp - 0x1c]
push eax
call fcn.00403aee
pop ecx
cmp dword [ebp - 0x18], edi
jne 0x405ca4
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040134b
push dword [ebp - 0x1c]
mov byte [0x417760], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x4177a8]
pop ecx
mov ecx, dword [0x4177ac]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405cd0
cmp dx, 0x2f
jne 0x405cdd
dec ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [0x4177ac], ecx
cmp byte [ebp + 0x66], 0
je 0x405cea
or dword [0x41778c], 3
cmp dword [0x41780c], edi
jne 0x405d00
push esi
mov esi, dword [ebp + 0x60]
push esi
call fcn.004049f7
pop ecx
pop ecx
jmp 0x405d11
call fcn.0040787a
mov esi, dword [ebp + 0x60]
test eax, eax
jne 0x405d4e
mov eax, 0x80004005
cmp eax, edi
je 0x405d4e
call fcn.00403db3
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp esi, edi
je 0x405d47
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x405151
call fcn.00403fdc
cmp byte [ebp + 0x64], 0
je 0x405d66
cmp byte [0x417760], 0
jne 0x406351
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004013fd
cmp byte [ebp + 0x67], 0
jne 0x405d86
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004044f1
pop ecx
pop ecx
mov eax, dword [ebp + 0x54]
mov byte [ebp + 0x5e], 0
mov dword [ebp - 0x40], eax
lea ecx, [ebp + 4]
mov dword [ebp - 0x20], edi
mov byte [ebp + 0x5f], 0
mov byte [ebp + 0x67], 0
call fcn.004013fd
lea ecx, [ebp - 0x2c]
call fcn.004013fd
cmp dword [ebp + 0x40], edi
jne 0x405e58
cmp byte [0x417760], 0
jne 0x4061d8
mov edi, str.setup.exe
push edi
push 0x41350c
lea eax, [ebp - 0x5c]
push 0x4177a8
push eax
call fcn.00404379
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00404379
add esp, 0xc
push eax
lea ecx, [ebp + 4]
call fcn.0040134b
push dword [ebp - 0xc8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x5c]
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
je 0x4061ef
mov byte [ebp + 0x5e], 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401311
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b1c
mov esi, dword [ebp - 0x2c]
pop ecx
xor edi, edi
push edi
push str.hidcon
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
je 0x405ede
mov esi, eax
mov byte [ebp + 0x5f], 1
jmp 0x405e39
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.004023cb
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405e21
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
mov dword [ebp - 0x40], edi
cmp ax, 0x30
jb 0x405e88
cmp ax, 0x39
jbe 0x405ea8
cmp ax, 0x61
jb 0x405e94
cmp ax, 0x7a
jbe 0x405ea8
cmp ax, 0x41
jb 0x406249
cmp ax, 0x5a
ja 0x406249
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401311
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401415
push dword [ebp - 0x2c]
and dword [ebp - 4], 0
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
xor edi, edi
jmp 0x405d90
push edi
push str.nowait
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
je 0x405f00
mov esi, eax
mov al, byte [0x417760]
mov byte [ebp + 0x67], al
jmp 0x405e39
push edi
push str.forcenowait
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
je 0x405f1e
mov esi, eax
mov byte [ebp + 0x67], 1
jmp 0x405e39
push 2
push 0x414a54
push esi
call fcn.00403b79
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x405f54
cmp dword [0x417358], 0xffffffff
jne 0x405f4d
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x417358], eax
mov esi, ebx
jmp 0x405e39
push 3
push 0x4149b4
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
je 0x405f74
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
jmp 0x405f92
push 3
push 0x4149ac
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
je 0x405f99
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
mov esi, eax
jmp 0x405e39
push edi
push 0x4149a4
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
jne 0x405ff3
push edi
push str.i386
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
jne 0x405ff3
push edi
push 0x41498c
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
jne 0x405fe5
push edi
push 0x414984
push esi
call fcn.00403b79
add esp, 0xc
cmp eax, edi
je 0x406001
mov esi, eax
mov dword [ebp - 0x20], 2
jmp 0x405e39
mov esi, eax
mov dword [ebp - 0x20], 1
jmp 0x405e39
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 4]
je 0x40605c
cmp word [esi], 0x22
je 0x40602f
mov ebx, 0x414864
push ebx
call fcn.00401311
push esi
lea ecx, [ebp + 4]
call fcn.004024c5
push ebx
lea ecx, [ebp + 4]
call fcn.004024c5
jmp 0x406035
push esi
call fcn.00401311
push edi
lea eax, [ebp + 0x28]
push str.ExecuteParameters
push eax
call fcn.004023cb
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x40606e
push 0x414980
lea ecx, [ebp + 4]
call fcn.004024c5
jmp 0x406065
lea eax, [ebp - 0x10]
push eax
call fcn.0040134b
push esi
lea ecx, [ebp + 4]
call fcn.004024c5
lea ecx, [ebp - 0x1c]
call fcn.004013fd
lea ecx, [ebp - 0x38]
call fcn.004013fd
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x4177a8]
add esp, 0xc
cmp byte [ebp + 0x5f], 0
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xb8], 0x740
mov dword [ebp - 0xa0], 1
je 0x4060cd
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xb8], 0x8740
mov ebx, dword [ebp + 4]
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00404547
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401311
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b1c
mov eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xac], eax
cmp dword [0x417810], edi
jne 0x40618d
push dword [ebp - 0x20]
call fcn.0040217b
pop ecx
test eax, eax
je 0x40618d
mov esi, dword [ebp + 0x58]
cmp word [esi], di
je 0x40613b
push 0x20
lea ecx, [ebp - 0x38]
call fcn.00401415
push esi
lea ecx, [ebp - 0x38]
call fcn.004024c5
cmp word [esi], di
je 0x40613b
inc esi
inc esi
cmp word [esi], di
jne 0x406131
mov dword [ebp + 0x58], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00403b1c
pop ecx
cmp dword [ebp - 0x34], edi
je 0x406153
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x406260
cmp byte [ebp + 0x67], 0
jne 0x40617c
push 0xffffffffffffffff
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00402113
cmp byte [ebp + 0x65], 0
jne 0x4062cc
cmp byte [ebp + 0x5e], 0
jne 0x4062cc
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0xc], edi
mov word [ecx], ax
push dword [ebp - 0x38]
inc dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 0x60]
add esp, 0x10
jmp 0x405ed7
push dword [ebp - 0x2c]
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
jmp 0x4062f2
call fcn.00403db3
push 0xf
push 0
call fcn.00407784
push dword [ebp - 0x2c]
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 - 0x10]
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 + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x24
test esi, esi
je 0x406242
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 7
jmp 0x405151
push dword [ebp - 0x2c]
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
jmp 0x4062f0
push ebx
push 0x10
push 1
call fcn.00407784
call fcn.00403db3
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
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, 0x30
cmp eax, edi
je 0x4062c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405151
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 0x60]
add esp, 0x10
xor edi, edi
cmp dword [0x417810], edi
jne 0x406348
call fcn.00403fdc
push dword [ebp - 0x44]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Shortcut
push eax
push 0x404e9b
call fcn.0040485e
add esp, 0x14
push dword [0x4177b4]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push dword [ebp - 0x3c]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Delete
push eax
push 0x404130
call fcn.0040485e
add esp, 0x14
call fcn.00403db3
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x417358], 0xffffffff
jne 0x40636a
cmp byte [ebp + 0x66], 0
jne 0x4063d5
mov dword [0x417358], 1
cmp dword [0x417358], edi
jle 0x4063d5
push 0
lea eax, [ebp + 0x28]
push str.FinishMessage
push eax
call fcn.004023cb
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4063d5
mov eax, 0x3e7
cmp dword [0x417358], eax
jle 0x40639d
mov dword [0x417358], eax
lea ecx, [ebp - 0x110]
call fcn.00403eee
push 0
push edi
push dword [0x41777c]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.004073d9
push dword [ebp - 0xd4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x110]
call fcn.00406651
cmp byte [ebp + 0x64], 0
jne 0x406418
cmp dword [0x417810], 0
jne 0x406418
push 0
lea eax, [ebp + 0x28]
push str.SelfDelete
push eax
call fcn.004023cb
add esp, 0xc
test eax, eax
je 0x406418
cmp word [eax], 0x31
jne 0x406418
sub esp, 0xc
mov ecx, esp
push 0x4177e4
call fcn.004012df
call fcn.00404ab2
add esp, 0xc
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
test esi, esi
je 0x406445
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403e16
push dword [ebp - 0x80]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
xor eax, eax
jmp 0x406483
push 0x10
push 0x414558
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