Function at 0x404faa
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
call fcn.00401b37
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40648e
cmp dword [ebp - 0x228], 2
jne 0x40648e
cmp dword [ebp - 0x234], 5
jb 0x40648e
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], 0x414440
xor edi, edi
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x64], 0
mov byte [ebp + 0x65], 0
call fcn.00401411
lea ecx, [ebp - 0x80]
call fcn.00401411
push 0x20
pop esi
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x38], 4
mov dword [ebp + 0x28], 0x414134
call fcn.00403e23
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404594
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.0040254d
lea eax, [ebp - 0x74]
push eax
call fcn.00402a69
mov ebx, dword [ebp - 0x74]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403d71
cmp eax, edi
pop ecx
pop ecx
je 0x4050d1
cmp word [eax], 0x3a
jne 0x4050d1
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x4050bb
mov word [0x41772c], ax
jmp 0x4050bb
inc ebx
inc ebx
cmp word [ebx], si
ja 0x4050b9
jmp 0x4050c9
cmp ax, si
ja 0x4050d1
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x4050c2
call fcn.00404405
push str.sfxversion
push ebx
call fcn.00403d71
test eax, eax
pop ecx
pop ecx
je 0x405118
call fcn.00404996
xor esi, esi
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403e70
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 0x4064a5
mov esi, 0x208
cmp dword [0x4177cc], esi
jg 0x405130
push esi
mov ecx, 0x4177c4
call fcn.0040112b
push esi
push dword [0x4177c4]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405151
xor esi, esi
inc esi
push 6
push esi
call fcn.00407776
pop ecx
pop ecx
jmp 0x4050ee
mov esi, dword [0x4177c4]
push esi
call fcn.00401117
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x4177c8], eax
call fcn.00403d71
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4052d5
cmp word [esi], 0x3a
je 0x40518d
push 0x64
pop esi
jmp 0x4050ee
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405258
dec eax
dec eax
je 0x405244
dec eax
je 0x4051ca
dec eax
dec eax
je 0x4051c0
sub eax, 0x10
jne 0x405185
mov esi, 0x4703
jmp 0x4050ee
mov esi, 0x2033
jmp 0x4050ee
cmp cx, 0x44
jne 0x405204
cmp word [esi + 4], 0x3a
jne 0x405185
add esi, 6
jmp 0x4051f2
cmp ax, 0x3a
je 0x4051fa
movzx eax, ax
push eax
mov ecx, 0x4177f4
call fcn.00401429
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x4051dc
cmp dword [0x4177f8], edi
jne 0x405207
jmp 0x405185
add esi, 4
mov dword [0x4177ec], edi
cmp word [esi], 0x3a
jne 0x40522e
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x4177ec], eax
ja 0x40522e
cmp eax, edi
jne 0x405238
mov dword [0x4177ec], 0xa
mov dword [0x4177f0], 1
jmp 0x405266
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x4177f0], eax
jmp 0x405266
mov dword [0x4177f0], 2
jmp 0x405266
inc esi
inc esi
cmp word [esi], bx
ja 0x405264
jmp 0x405274
cmp ax, bx
ja 0x40527c
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x40526d
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403d71
cmp eax, edi
pop ecx
pop ecx
je 0x4052d5
cmp word [eax], 0x3a
jne 0x40529f
jmp 0x40529d
cmp cx, 0x20
ja 0x4052a7
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405297
mov ecx, dword [ebp - 0x50]
mov word [ecx], di
lea ecx, [ebp - 0x50]
push ecx
push eax
mov dword [ebp - 0x4c], edi
call fcn.00404594
cmp dword [0x4177f0], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4052d5
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x4177c4
call fcn.00401362
mov esi, 0x4177c4
push esi
mov ecx, 0x417794
call fcn.00401362
mov edi, 0x4177a0
push esi
mov ecx, edi
call fcn.00401362
push esi
call fcn.00402d5a
xor esi, esi
cmp eax, esi
pop ecx
jl 0x40538d
mov ecx, dword [0x417794]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x417798], eax
mov eax, dword [0x4177c4]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401329
mov eax, dword [0x4177c4]
lea eax, [esi + eax + 2]
mov esi, 0x4177b8
push eax
mov ecx, esi
call fcn.00401329
push 0x2e
mov ecx, esi
call fcn.00402583
test eax, eax
jle 0x40535a
mov ecx, dword [0x4177b8]
and word [ecx + eax*2], 0
mov dword [0x4177bc], eax
push esi
mov esi, 0x4177ac
mov ecx, esi
call fcn.00401362
push 4
call fcn.00401f9d
pop ecx
push eax
mov ecx, esi
call fcn.0040254d
mov eax, dword [0x4177b8]
mov dword [0x41775c], eax
mov eax, dword [0x4177ac]
mov dword [0x417764], eax
xor esi, esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4053a4
mov ecx, eax
call fcn.004041b5
mov edi, eax
jmp 0x4053a6
xor edi, edi
push edi
lea ecx, [ebp + 0x60]
call fcn.004010e2
push dword [0x4177c4]
mov ecx, edi
call fcn.0040dc1b
test al, al
jne 0x4053e6
push dword [0x4177c4]
push 7
push 1
call fcn.00407776
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x4053df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405187
lea ecx, [ebp + 0x48]
call fcn.004025ae
lea ecx, [ebp + 0x1c]
call fcn.004025ae
lea ecx, [ebp + 0x10]
call fcn.004025ae
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
movzx eax, word [0x41772c]
push eax
call fcn.00404e3f
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push edi
call fcn.00402844
add esp, 0x1c
test al, al
jne 0x40547c
lea eax, [ebp + 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.00402844
add esp, 0x10
test al, al
jne 0x40547c
push 9
push esi
call fcn.00407776
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 0x405475
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405187
cmp dword [0x4177f0], esi
jne 0x405534
push str.sfxconfig
push ebx
call fcn.00403d71
cmp eax, esi
pop ecx
pop ecx
je 0x405534
cmp word [eax], 0x3a
jne 0x4054a5
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405506
cmp cx, 0x20
ja 0x4054bd
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x4054ad
cmp word [eax], si
je 0x405506
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00404cbc
test al, al
pop ecx
pop ecx
jne 0x405506
push 0xa
push esi
call fcn.00407776
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 0x4054ff
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405187
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 0x4050ee
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4050ee
lea ecx, [ebp + 0x28]
call fcn.0040e8da
cmp dword [ebp + 0x4c], esi
je 0x405573
push esi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00403093
add esp, 0xc
test al, al
jne 0x405573
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 0x4054f5
cmp dword [0x4177f0], 4
je 0x405506
mov eax, dword [0x417058]
mov esi, 0x417058
jmp 0x4055e9
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.00401411
lea ecx, [ebp - 0x5c]
call fcn.00401411
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401329
push dword [esi]
call fcn.00401f9d
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401329
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x417384
call fcn.00402f6c
lea ecx, [ebp - 0x68]
add esi, 0x10
call fcn.00402425
mov eax, dword [esi]
test eax, eax
jne 0x405588
lea eax, [ebp + 0x28]
push eax
call fcn.00404603
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x58], ebx
cmp word [ebx], di
jbe 0x405617
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405604
jmp 0x405614
cmp ax, di
ja 0x40561f
inc ebx
inc ebx
mov dword [ebp + 0x58], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x40560d
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405632
cmp ax, 0x2d
jne 0x405861
lea esi, [ebx + 2]
cmp word [esi], 0x21
jne 0x405645
cmp word [ebx + 4], di
jbe 0x40584a
push 0x414668
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x4056a2
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405668
cmp ax, 0x39
jbe 0x405680
cmp ax, 0x61
jb 0x405674
cmp ax, 0x7a
jbe 0x405680
cmp ax, 0x41
jb 0x405690
cmp ax, 0x5a
ja 0x405690
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x4055ff
cmp ax, di
ja 0x405861
mov dword [ebp + 0x54], 0x414440
jmp 0x405683
push 0x414660
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x4056c5
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405781
push 0x414658
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x405706
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405861
cmp cx, 0x32
ja 0x405861
cmp word [ebx + 8], di
ja 0x405861
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.GUIMode
jmp 0x405781
push 0x414650
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x405726
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405781
push 0x414648
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x405746
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405781
push 0x414640
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x40578e
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x40576d
cmp cx, 0x31
jne 0x405861
cmp word [ebx + 8], di
ja 0x405861
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.SelfDelete
call fcn.0040484d
add esp, 0xc
jmp 0x4055ff
push 0x414638
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x4057b2
cmp word [ebx + 6], di
ja 0x405861
mov byte [ebp + 0x64], 1
jmp 0x4055ff
push 0x414630
push esi
call fcn.00403b94
test eax, eax
pop ecx
pop ecx
je 0x4057ef
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405861
cmp cx, 0x39
ja 0x405861
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x417358], eax
jmp 0x4055ff
movzx eax, word [esi]
cmp ax, 0x79
je 0x4057fe
cmp ax, 0x59
jne 0x40580d
cmp word [ebx + 4], di
ja 0x40580d
mov byte [ebp + 0x66], 1
jmp 0x4055ff
cmp ax, 0x3f
je 0x40581f
cmp ax, 0x68
je 0x40581f
cmp ax, 0x48
jne 0x40582e
cmp word [ebx + 4], di
ja 0x40582e
mov byte [ebp + 0x65], 1
jmp 0x4055ff
lea eax, [ebp + 0x28]
push eax
push esi
call fcn.0040408b
test eax, eax
pop ecx
pop ecx
je 0x405861
cmp eax, 1
je 0x405878
mov ebx, eax
jmp 0x4055fc
add ebx, 4
jmp 0x405856
cmp ax, di
ja 0x405861
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
mov dword [ebp + 0x58], ebx
jne 0x40584f
lea eax, [ebp + 0x28]
push eax
call fcn.00404603
and dword [ebp], 0
mov ebx, str.SetEnvironment
jmp 0x405918
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 0x4058a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x4050ee
push edi
lea ecx, [ebp - 0x10]
call fcn.004024fc
push 0
push 0x3d
lea ecx, [ebp - 0x10]
call fcn.00402689
test eax, eax
jle 0x405935
mov ecx, dword [ebp - 0x10]
lea esi, [eax + eax]
and word [esi + ecx], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xc], eax
call fcn.00401411
lea ecx, [ebp - 0x5c]
call fcn.00401411
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401362
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401329
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x417384
call fcn.00402f6c
inc dword [ebp]
lea ecx, [ebp - 0x68]
call fcn.00402425
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.0040243b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4058a7
jmp 0x40593e
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00404034
xor esi, esi
cmp dword [0x41734c], 0xffffffff
jne 0x405954
mov dword [0x41734c], esi
cmp byte [ebp + 0x65], 0
je 0x4059d8
push esi
lea eax, [ebp + 0x28]
push str.HelpText
push eax
call fcn.0040243b
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x40597c
push 0x18
call fcn.00401f9d
pop ecx
mov edi, eax
lea ecx, [ebp - 0x108]
call fcn.00403b40
push esi
push edi
push dword [0x41775c]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.004073d1
lea ecx, [ebp - 0x108]
call fcn.00406673
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 0x4050ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4050ec
cmp byte [ebp + 0x66], 0
je 0x4059e8
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.0040243b
add esp, 0xc
test eax, eax
mov esi, 0x417788
je 0x405a12
push eax
mov ecx, esi
call fcn.00401329
push esi
call fcn.00403b59
cmp dword [0x4177f8], 0
pop ecx
je 0x405a4d
lea eax, [ebp + 0x28]
push eax
call fcn.004083b6
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 0x405893
cmp dword [0x4177f0], 3
jne 0x405a61
lea eax, [ebp + 0x28]
push eax
call fcn.004082e9
jmp 0x405a2b
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x28]
push str.BeginPrompt
push eax
call fcn.0040243b
add esp, 0xc
cmp eax, edi
je 0x405ab0
cmp byte [ebp + 0x66], 0
jne 0x405ab0
push eax
push dword [0x41775c]
call fcn.00407613
test eax, eax
pop ecx
pop ecx
je 0x405bd8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x405ab0
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x3c]
call fcn.00401411
cmp byte [ebp + 0x67], 0
je 0x405b3a
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401329
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401429
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.0040243b
add esp, 0xc
test eax, eax
je 0x405c07
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x405b04
cmp ax, 0x39
jbe 0x405ac1
cmp ax, 0x61
jb 0x405b10
cmp ax, 0x7a
jbe 0x405ac1
cmp ax, 0x41
jb 0x405b1c
cmp ax, 0x5a
jbe 0x405ac1
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401329
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401429
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x405b82
push edi
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.0040243b
add esp, 0xc
test eax, eax
je 0x405b67
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00401329
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x405b82
push edi
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.0040243b
add esp, 0xc
test eax, eax
je 0x405b82
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401329
cmp byte [ebp + 0x67], 0
jne 0x405c6c
cmp byte [ebp + 0x66], 0
jne 0x405c6c
mov eax, dword [0x41734c]
and ax, 0xc0
cmp al, 0x80
jne 0x405c6c
push dword [0x417750]
push dword [0x417754]
call fcn.00407674
test eax, eax
pop ecx
pop ecx
jne 0x405c6c
cmp byte [0x417778], al
push dword [ebp + 0x3c]
je 0x405c4a
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405a6d
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 0x405c00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405187
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.00407776
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 0x405c43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405187
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 0x405bf3
cmp dword [0x41778c], edi
jne 0x405ca2
lea eax, [ebp - 0x1c]
push str.7ZipSfx._03x
push eax
call fcn.00403f85
pop ecx
pop ecx
mov esi, 0x417788
push eax
mov ecx, esi
call fcn.00401362
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x417740], 0
jmp 0x405cd9
mov esi, 0x417788
push esi
lea ecx, [ebp - 0x1c]
call fcn.004012f7
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b59
cmp dword [ebp - 0x18], edi
pop ecx
jne 0x405cca
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00401362
push dword [ebp - 0x1c]
mov byte [0x417740], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x417788]
pop ecx
mov ecx, dword [0x41778c]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405cf6
cmp dx, 0x2f
jne 0x405d01
dec ecx
mov word [eax + ecx*2], di
mov dword [0x41778c], ecx
cmp byte [ebp + 0x66], 0
je 0x405d0e
or dword [0x41776c], 3
cmp dword [0x4177ec], edi
jne 0x405d24
push esi
mov esi, dword [ebp + 0x60]
push esi
call fcn.00404a44
pop ecx
pop ecx
jmp 0x405d35
call fcn.0040786b
test eax, eax
mov esi, dword [ebp + 0x60]
jne 0x405d72
mov eax, 0x80004005
cmp eax, edi
je 0x405d72
call fcn.00403e0d
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 0x405d6b
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x405187
call fcn.00404034
cmp byte [ebp + 0x64], 0
je 0x405d8a
cmp byte [0x417740], 0
jne 0x406373
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00401411
cmp byte [ebp + 0x67], 0
jne 0x405daa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.0040453e
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.00401411
lea ecx, [ebp - 0x2c]
call fcn.00401411
cmp dword [ebp + 0x40], edi
jne 0x405e7c
cmp byte [0x417740], 0
jne 0x4061fa
mov edi, str.setup.exe
push edi
push 0x41350c
lea eax, [ebp - 0x5c]
push 0x417788
push eax
call fcn.004043c6
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004043c6
add esp, 0xc
push eax
lea ecx, [ebp + 4]
call fcn.00401362
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 0x406211
mov byte [ebp + 0x5e], 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401329
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b7f
mov esi, dword [ebp - 0x2c]
pop ecx
xor edi, edi
push edi
push str.hidcon
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
je 0x405f02
mov esi, eax
mov byte [ebp + 0x5f], 1
jmp 0x405e5d
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.0040243b
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405e45
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
mov dword [ebp - 0x40], edi
jb 0x405eac
cmp ax, 0x39
jbe 0x405ecc
cmp ax, 0x61
jb 0x405eb8
cmp ax, 0x7a
jbe 0x405ecc
cmp ax, 0x41
jb 0x40626b
cmp ax, 0x5a
ja 0x40626b
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401329
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401429
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 0x405db4
push edi
push str.nowait
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
je 0x405f24
mov esi, eax
mov al, byte [0x417740]
mov byte [ebp + 0x67], al
jmp 0x405e5d
push edi
push str.forcenowait
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
je 0x405f42
mov esi, eax
mov byte [ebp + 0x67], 1
jmp 0x405e5d
push 2
push 0x414630
push esi
call fcn.00403bce
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x405f78
cmp dword [0x417358], 0xffffffff
jne 0x405f71
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x417358], eax
mov esi, ebx
jmp 0x405e5d
push 3
push 0x414590
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
je 0x405f98
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
jmp 0x405fb6
push 3
push 0x414588
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
je 0x405fbd
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
mov esi, eax
jmp 0x405e5d
push edi
push 0x414580
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
jne 0x406017
push edi
push str.i386
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
jne 0x406017
push edi
push 0x414568
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
jne 0x406009
push edi
push 0x414560
push esi
call fcn.00403bce
add esp, 0xc
cmp eax, edi
je 0x406025
mov esi, eax
mov dword [ebp - 0x20], 2
jmp 0x405e5d
mov esi, eax
mov dword [ebp - 0x20], 1
jmp 0x405e5d
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 4]
je 0x406080
cmp word [esi], 0x22
je 0x406053
mov ebx, 0x414434
push ebx
call fcn.00401329
push esi
lea ecx, [ebp + 4]
call fcn.0040254d
push ebx
lea ecx, [ebp + 4]
call fcn.0040254d
jmp 0x406059
push esi
call fcn.00401329
push edi
lea eax, [ebp + 0x28]
push str.ExecuteParameters
push eax
call fcn.0040243b
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x406092
push 0x41455c
lea ecx, [ebp + 4]
call fcn.0040254d
jmp 0x406089
lea eax, [ebp - 0x10]
push eax
call fcn.00401362
push esi
lea ecx, [ebp + 4]
call fcn.0040254d
lea ecx, [ebp - 0x1c]
call fcn.00401411
lea ecx, [ebp - 0x38]
call fcn.00401411
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x417788]
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 0x4060f1
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.00404594
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401329
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b7f
cmp dword [0x4177f0], edi
mov eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xac], eax
jne 0x4061b1
push dword [ebp - 0x20]
call fcn.004021ed
test eax, eax
pop ecx
je 0x4061b1
mov esi, dword [ebp + 0x58]
cmp word [esi], di
je 0x40615f
push 0x20
lea ecx, [ebp - 0x38]
call fcn.00401429
push esi
lea ecx, [ebp - 0x38]
call fcn.0040254d
cmp word [esi], di
je 0x40615f
inc esi
inc esi
cmp word [esi], di
jne 0x406155
mov dword [ebp + 0x58], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00403b7f
cmp dword [ebp - 0x34], edi
pop ecx
je 0x406177
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 0x406282
cmp byte [ebp + 0x67], 0
jne 0x4061a0
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.00402185
cmp byte [ebp + 0x65], 0
jne 0x4062ee
cmp byte [ebp + 0x5e], 0
jne 0x4062ee
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov word [eax], di
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 0x405efb
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 0x406314
call fcn.00403e0d
push 0xf
push 0
call fcn.00407776
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 0x406264
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 7
jmp 0x405187
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 0x406312
push ebx
push 0x10
push 1
call fcn.00407776
call fcn.00403e0d
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 0x4062e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405187
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 [0x4177f0], edi
jne 0x40636a
call fcn.00404034
push dword [ebp - 0x44]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Shortcut
push eax
push 0x404edf
call fcn.004048ab
add esp, 0x14
push dword [0x417794]
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 0x404186
call fcn.004048ab
add esp, 0x14
call fcn.00403e0d
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x417358], 0xffffffff
jne 0x40638c
cmp byte [ebp + 0x66], 0
jne 0x4063f7
mov dword [0x417358], 1
cmp dword [0x417358], edi
jle 0x4063f7
push 0
lea eax, [ebp + 0x28]
push str.FinishMessage
push eax
call fcn.0040243b
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4063f7
mov eax, 0x3e7
cmp dword [0x417358], eax
jle 0x4063bf
mov dword [0x417358], eax
lea ecx, [ebp - 0x110]
call fcn.00403f48
push 0
push edi
push dword [0x41775c]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.004073d1
push dword [ebp - 0xd4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x110]
call fcn.00406673
cmp byte [ebp + 0x64], 0
jne 0x40643a
cmp dword [0x4177f0], 0
jne 0x40643a
push 0
lea eax, [ebp + 0x28]
push str.SelfDelete
push eax
call fcn.0040243b
add esp, 0xc
test eax, eax
je 0x40643a
cmp word [eax], 0x31
jne 0x40643a
sub esp, 0xc
mov ecx, esp
push 0x4177c4
call fcn.004012f7
call fcn.00404aff
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 0x406467
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.00403e70
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 0x4064a5
push 0x10
push 0x41452c
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