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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
call fcn.0040309c
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40632f
cmp dword [ebp - 0x240], 2
jne 0x40632f
cmp dword [ebp - 0x24c], 5
jb 0x40632f
call fcn.00403e78
or dword [ebp - 0xb8], 0xffffffff
or dword [ebp - 0xa4], 0xffffffff
and byte [ebp - 2], 0
and byte [ebp - 1], 0
and byte [ebp - 5], 0
and byte [ebp - 4], 0
xor edi, edi
push 3
lea ecx, [ebp - 0x94]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp - 0x58], 0x41a454
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
call fcn.004017b4
push 3
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], edi
call fcn.004017b4
lea ecx, [ebp - 0x6c]
call fcn.00406abd
mov esi, 0x415398
push 0x20
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x6c], esi
call fcn.004068de
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004043ea
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xc4]
call fcn.0040378e
lea eax, [ebp - 0xc4]
push eax
call fcn.00401eb0
mov eax, dword [ebp - 0xc4]
mov dword [esp], str.sfxversion
lea ebx, [eax + 2]
push ebx
call fcn.00404619
pop ecx
test eax, eax
pop ecx
je 0x404eb2
lea ecx, [ebp - 0x128]
mov dword [0x419a6c], 8
call fcn.004063d0
push 1
mov dword [ebp - 0x128], 0x415374
call fcn.00403b9e
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040372d
cmp dword [0x41a578], edi
mov dword [ebp - 0x2c], edi
jbe 0x404e73
mov ebx, 0x41a478
cmp ebx, 0x41a478
je 0x404e55
push 0x419f9c
lea ecx, [ebp - 0x1c]
call fcn.0040378e
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
push dword [eax + 0x10]
call fcn.0040378e
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add ebx, 4
cmp eax, dword [0x41a578]
jb 0x404e40
push edi
lea ecx, [ebp - 0x128]
push dword [ebp - 0x1c]
push dword [0x41a43c]
push 0x11
call fcn.004071bc
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x128]
call fcn.00406c4c
push dword [ebp - 0xc4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x6c], esi
jmp 0x4057e5
mov esi, 0x208
cmp dword [0x41a3d0], esi
jg 0x404eca
push esi
mov ecx, 0x41a3c8
call fcn.004017b4
push esi
push dword [0x41a3c8]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404eee
push 6
push 1
pop esi
push esi
call fcn.004086c7
pop ecx
pop ecx
jmp 0x4062f0
push dword [0x41a3c8]
call fcn.00406be9
mov ecx, dword [0x41a3c8]
mov dword [esp], str.sfxtest
push ebx
mov word [ecx + eax*2], di
mov dword [0x41a3cc], eax
call fcn.00404619
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x40507c
push 0x3a
pop ebx
cmp word [esi], bx
je 0x404f30
push 0x64
jmp 0x406151
mov cx, word [esi + 2]
movzx eax, cx
or al, 0x20
sub eax, 0x61
je 0x404ff3
dec eax
dec eax
je 0x404fdf
dec eax
je 0x404f6a
dec eax
dec eax
je 0x404f60
sub eax, 0x10
jne 0x404f29
mov esi, 0x45dd
jmp 0x4062f0
mov esi, 0x2033
jmp 0x4062f0
cmp cx, 0x44
jne 0x404fa0
cmp word [esi + 4], bx
jne 0x404f29
add esi, 6
mov ax, word [esi]
cmp ax, 0x20
jbe 0x404f96
cmp ax, bx
je 0x404f96
inc esi
push eax
mov ecx, 0x41a460
inc esi
call fcn.0040171c
jmp 0x404f79
cmp dword [0x41a464], edi
jne 0x404fa3
jmp 0x404f29
add esi, 4
mov dword [0x41a46c], edi
cmp word [esi], bx
jne 0x404fc9
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41a46c], eax
ja 0x404fc9
cmp eax, edi
jne 0x404fd3
mov dword [0x41a46c], 0xa
mov dword [0x41a470], 1
jmp 0x404ffd
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41a470], eax
jmp 0x404ffd
mov dword [0x41a470], 2
cmp word [esi], 0x20
jbe 0x405007
inc esi
inc esi
jmp 0x404ffd
mov ax, word [esi]
cmp ax, di
je 0x405019
cmp ax, 0x20
ja 0x405019
inc esi
inc esi
jmp 0x405007
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00404619
pop ecx
cmp eax, edi
pop ecx
je 0x40507c
cmp word [eax], 0x3a
jne 0x405034
inc eax
inc eax
mov cx, word [eax]
cmp cx, di
je 0x405042
cmp cx, 0x20
jbe 0x405032
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x90], edi
mov word [ecx], di
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.004043ea
cmp dword [0x41a470], 2
pop ecx
pop ecx
mov ebx, eax
je 0x40507c
lea eax, [ebp - 0x94]
mov ecx, 0x41a3c8
push eax
call fcn.004016d1
mov edi, 0x41a3c8
mov ecx, 0x41a408
push edi
call fcn.004016d1
mov esi, 0x41a3f8
push edi
mov ecx, esi
call fcn.004016d1
push edi
call fcn.0040303b
test eax, eax
pop ecx
jl 0x40514a
mov ecx, dword [0x41a408]
lea edi, [eax + eax + 2]
and word [ecx + eax*2], 0
mov dword [0x41a40c], eax
mov eax, dword [0x41a3c8]
mov ecx, esi
add eax, edi
push eax
call fcn.00401628
mov eax, dword [0x41a3c8]
mov ecx, 0x41a3d8
add eax, edi
push eax
call fcn.00401628
mov eax, dword [0x41a3dc]
test eax, eax
je 0x405115
mov ecx, dword [0x41a3d8]
lea eax, [ecx + eax*2 - 2]
cmp word [eax], 0x2e
je 0x4050fe
cmp eax, ecx
je 0x405104
dec eax
dec eax
jmp 0x4050f0
sub eax, ecx
sar eax, 1
jmp 0x405107
or eax, 0xffffffff
test eax, eax
jle 0x405115
and word [ecx + eax*2], 0
mov dword [0x41a3dc], eax
mov esi, 0x41a3e8
push 0x41a3d8
mov ecx, esi
call fcn.004016d1
push 4
call fcn.00403b9e
pop ecx
push eax
mov ecx, esi
call fcn.0040378e
mov eax, dword [0x41a3d8]
mov dword [0x41a43c], eax
mov eax, dword [0x41a3e8]
mov dword [0x41a440], eax
push 0x10
xor esi, esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405163
mov ecx, eax
call fcn.0040641d
mov edi, eax
jmp 0x405165
xor edi, edi
cmp edi, esi
mov dword [ebp - 0xc], edi
je 0x405172
mov eax, dword [edi]
push edi
call dword [eax + 4]
push dword [0x41a3c8]
mov ecx, edi
call fcn.0040f23f
test al, al
jne 0x4051b0
sub esp, 0xc
mov esi, 0x41a3c8
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
push 1
movsd dword es:[edi], dword [esi]
call fcn.004086c7
mov eax, dword [ebp - 0xc]
add esp, 0x14
test eax, eax
je 0x4051a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x406151
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.00403abb
push 3
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.00403abb
push 3
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call fcn.00403abb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.00404685
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x38]
push edi
call fcn.00401baf
add esp, 0x1c
test al, al
jne 0x4052c2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x38]
movzx eax, ax
push ecx
push eax
call fcn.00404685
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x38]
push edi
call fcn.00401baf
add esp, 0x1c
test al, al
jne 0x4052c2
call fcn.0040305e
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x38]
movzx eax, ax
push ecx
push eax
call fcn.00404685
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x38]
push edi
call fcn.00401baf
add esp, 0x1c
test al, al
jne 0x4052c2
lea eax, [ebp - 0x28]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.00401baf
add esp, 0x10
test al, al
jne 0x4052c2
push 9
push esi
call fcn.004086c7
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
cmp edi, esi
je 0x4052bb
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x406151
cmp dword [0x41a470], esi
jne 0x40535d
push str.sfxconfig
push ebx
call fcn.00404619
pop ecx
cmp eax, esi
pop ecx
je 0x40535d
cmp word [eax], 0x3a
jne 0x4052e7
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
je 0x4052f5
cmp cx, 0x20
jbe 0x4052e5
cmp word [eax], si
je 0x40532f
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0040444a
pop ecx
test al, al
pop ecx
jne 0x40532f
push 0xa
push esi
call fcn.004086c7
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x40539a
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x4062f0
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4062f0
lea ecx, [ebp - 0x6c]
call fcn.0040fedb
cmp dword [ebp - 0x24], esi
je 0x4053ab
lea eax, [ebp - 0x6c]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402022
add esp, 0xc
test al, al
jne 0x4053ab
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x4053a4
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x406151
cmp dword [0x41a470], 4
je 0x40532f
lea eax, [ebp - 0x6c]
push eax
call fcn.00404859
dec ebx
pop ecx
dec ebx
mov dword [ebp - 0x54], ebx
cmp word [ebx], 0x20
jbe 0x4053d8
inc ebx
inc ebx
cmp word [ebx], 0x20
ja 0x4053cd
mov dword [ebp - 0x54], ebx
mov ax, word [ebx]
cmp ax, si
je 0x4053ea
cmp ax, 0x20
ja 0x4053ea
inc ebx
inc ebx
jmp 0x4053d5
mov ax, word [ebx]
cmp ax, 0x2f
je 0x4053fd
cmp ax, 0x2d
jne 0x405648
cmp word [ebx + 2], 0x21
lea edi, [ebx + 2]
jne 0x405412
cmp word [ebx + 4], 0x20
jbe 0x405601
push 0x419f70
push edi
call fcn.004041d7
pop ecx
test eax, eax
pop ecx
je 0x405471
mov ax, word [ebx + 6]
lea ecx, [ebx + 6]
cmp ax, 0x30
jb 0x405436
cmp ax, 0x39
jbe 0x40544e
cmp ax, 0x61
jb 0x405442
cmp ax, 0x7a
jbe 0x40544e
cmp ax, 0x41
jb 0x40545e
cmp ax, 0x5a
ja 0x40545e
mov dword [ebp - 0x58], ecx
mov byte [ebp - 2], 1
mov byte [ebp - 1], 1
jmp 0x4053c7
cmp ax, 0x20
ja 0x405648
mov dword [ebp - 0x58], 0x41a454
jmp 0x405451
push 0x419f68
push edi
call fcn.004041d7
pop ecx
test eax, eax
pop ecx
je 0x40549c
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
call fcn.00404a10
add esp, 0xc
jmp 0x4053c7
push 0x419f60
push edi
call fcn.004041d7
pop ecx
test eax, eax
pop ecx
je 0x4054df
mov cx, word [ebx + 6]
lea eax, [ebx + 6]
cmp cx, 0x30
jb 0x405648
cmp cx, 0x32
ja 0x405648
cmp word [ebx + 8], 0x20
ja 0x405648
lea ecx, [ebp - 0x6c]
push ecx
push eax
push str.GUIMode
jmp 0x40548f
push 0x419f58
push edi
call fcn.004041d7
pop ecx
test eax, eax
pop ecx
je 0x4054ff
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x40548f
push 0x419f50
push edi
call fcn.004041d7
pop ecx
test eax, eax
pop ecx
je 0x405541
mov cx, word [ebx + 6]
lea eax, [ebx + 6]
cmp cx, 0x30
je 0x405527
cmp cx, 0x31
jne 0x405648
cmp word [ebx + 8], 0x20
ja 0x405648
lea ecx, [ebp - 0x6c]
push ecx
push eax
push str.SelfDelete
jmp 0x40548f
push 0x419f48
push edi
call fcn.004041d7
pop ecx
test eax, eax
pop ecx
je 0x405566
cmp word [ebx + 6], 0x20
ja 0x405648
mov byte [ebp - 5], 1
jmp 0x4053c7
push 0x419f40
push edi
call fcn.004041d7
pop ecx
test eax, eax
pop ecx
je 0x4055a4
mov cx, word [ebx + 6]
lea eax, [ebx + 6]
cmp cx, 0x30
jb 0x405648
cmp cx, 0x39
ja 0x405648
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x419a78], eax
jmp 0x4053c7
mov ax, word [edi]
cmp ax, 0x79
je 0x4055b3
cmp ax, 0x59
jne 0x4055c3
cmp word [ebx + 4], 0x20
ja 0x4055c3
mov byte [ebp - 2], 1
jmp 0x4053c7
cmp ax, 0x3f
je 0x4055d5
cmp ax, 0x68
je 0x4055d5
cmp ax, 0x48
jne 0x4055e5
cmp word [ebx + 4], 0x20
ja 0x4055e5
mov byte [ebp - 4], 1
jmp 0x4053c7
lea eax, [ebp - 0x6c]
push eax
push edi
call fcn.00404748
pop ecx
cmp eax, esi
pop ecx
je 0x405648
cmp eax, 1
je 0x405619
mov ebx, eax
jmp 0x4053c4
add ebx, 4
mov ax, word [ebx]
mov dword [ebp - 0x54], ebx
cmp ax, si
je 0x405648
cmp ax, 0x20
ja 0x405648
inc ebx
inc ebx
jmp 0x405604
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, esi
je 0x405641
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x406151
lea eax, [ebp - 0x6c]
push eax
call fcn.00404859
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
mov ebx, str.SetEnvironment
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0040252c
add esp, 0x10
mov esi, eax
test esi, esi
je 0x405725
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040372d
push 0
push 0x3d
lea ecx, [ebp - 0x1c]
call fcn.00403987
mov edi, eax
test edi, edi
jle 0x40571c
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xe8]
and word [eax + edi*2], 0
mov dword [ebp - 0x18], edi
call fcn.00403715
lea ecx, [ebp - 0xdc]
call fcn.00403715
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xe8]
push eax
call fcn.004016d1
lea eax, [esi + edi*2 + 2]
lea ecx, [ebp - 0xdc]
push eax
call fcn.00401628
lea eax, [ebp - 0xe8]
mov ecx, 0x41a3b0
push eax
call fcn.0040388f
push dword [ebp - 0xdc]
inc dword [ebp - 0x7c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xe8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0040252c
add esp, 0x18
jmp 0x40566b
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00404166
cmp dword [0x419a6c], 0xffffffff
jne 0x40573d
xor ebx, ebx
mov dword [0x419a6c], ebx
jmp 0x40573f
xor ebx, ebx
cmp byte [ebp - 4], 0
je 0x405814
push ebx
lea eax, [ebp - 0x6c]
push str.HelpText
push eax
call fcn.0040252c
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40576b
push 0x18
call fcn.00403b9e
pop ecx
mov esi, eax
lea ecx, [ebp - 0x128]
call fcn.004063d0
push ebx
push esi
push dword [0x41a43c]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x128], 0x415350
mov dword [ebp - 0xf0], 0x7d6
push 0x11
call fcn.004071bc
lea ecx, [ebp - 0x128]
call fcn.00406c4c
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ebx
je 0x4057d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0xc4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x6c], 0x415398
lea ecx, [ebp - 0x6c]
call fcn.0040fedb
lea ecx, [ebp - 0x6c]
call fcn.0040feb2
push dword [ebp - 0xd0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
pop ecx
jmp 0x406346
cmp byte [ebp - 2], 0
je 0x405821
and byte [0x419a6d], 0xfe
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
lea eax, [ebp - 0x6c]
push str.InstallPath
push eax
call fcn.0040252c
add esp, 0xc
cmp eax, ebx
je 0x405849
push eax
mov ecx, 0x41a418
call fcn.00401628
mov esi, 0x41a418
push esi
call fcn.00404125
cmp dword [0x41a464], ebx
pop ecx
je 0x405899
lea eax, [ebp - 0x6c]
push eax
call fcn.004088dd
push dword [ebp - 0x44]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc]
add esp, 0x10
cmp eax, ebx
je 0x4062f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4062f0
cmp dword [0x41a470], 3
jne 0x4058ad
lea eax, [ebp - 0x6c]
push eax
call fcn.00408b48
jmp 0x405866
mov edi, str.ExecuteFile
push ebx
lea eax, [ebp - 0x6c]
push str.BeginPrompt
push eax
call fcn.0040252c
add esp, 0xc
cmp eax, ebx
je 0x4058f5
cmp byte [ebp - 2], 0
jne 0x4058f5
push eax
push dword [0x41a43c]
call fcn.004085af
pop ecx
test eax, eax
pop ecx
je 0x405a32
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4058f5
mov byte [ebp - 1], 1
push 3
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.004017b4
cmp byte [ebp - 1], 0
je 0x40598c
mov esi, dword [ebp - 0x58]
push str.AutoInstall
lea ecx, [ebp - 0x50]
call fcn.00401628
mov ax, word [esi]
lea ecx, [ebp - 0x50]
push eax
call fcn.0040171c
push ebx
lea eax, [ebp - 0x6c]
push dword [ebp - 0x50]
push eax
call fcn.0040252c
add esp, 0xc
test eax, eax
je 0x405a4f
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x405953
cmp ax, 0x39
jbe 0x405911
cmp ax, 0x61
jb 0x40595f
cmp ax, 0x7a
jbe 0x405911
cmp ax, 0x41
jb 0x40596b
cmp ax, 0x5a
jbe 0x405911
push str.AutoInstall
lea ecx, [ebp - 0x50]
call fcn.00401628
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
mov ax, word [eax]
push eax
call fcn.0040171c
mov esi, 0x41a418
and byte [ebp - 4], 0
cmp dword [ebp - 0x4c], ebx
jne 0x4059dc
push ebx
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.0040252c
add esp, 0xc
test eax, eax
je 0x4059b4
push edi
lea ecx, [ebp - 0x50]
call fcn.00401628
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], ebx
jne 0x4059dc
push ebx
lea eax, [ebp - 0x6c]
push str.RunProgram
push eax
call fcn.0040252c
add esp, 0xc
test eax, eax
je 0x4059dc
push str.RunProgram
lea ecx, [ebp - 0x50]
call fcn.00401628
cmp byte [ebp - 1], 0
jne 0x405ac5
cmp byte [ebp - 2], 0
jne 0x405ac5
mov eax, dword [0x419a6c]
and ax, 0xc0
cmp al, 0x80
jne 0x405ac5
push dword [0x41a430]
push dword [0x41a434]
call fcn.00408666
pop ecx
test eax, eax
pop ecx
jne 0x405ac5
cmp byte [0x41a450], al
push dword [ebp - 0x50]
je 0x405a91
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4058b2
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x405ab1
push dword [ebp - 0x50]
push 0xe
push ebx
call fcn.004086c7
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc]
add esp, 0x1c
cmp eax, ebx
je 0x405a8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x406151
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x405abe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x406151
cmp dword [0x41a41c], ebx
jne 0x405af7
lea eax, [ebp - 0x1c]
push str.7ZipSfx._03x
push eax
call fcn.00404006
pop ecx
pop ecx
push eax
mov ecx, 0x41a418
call fcn.004016d1
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
and byte [ebp - 3], 0
pop ecx
jmp 0x405b2a
push esi
lea ecx, [ebp - 0x1c]
call fcn.004015ee
lea eax, [ebp - 0x1c]
push eax
call fcn.00404125
cmp dword [ebp - 0x18], ebx
pop ecx
jne 0x405b1d
lea eax, [ebp - 0x1c]
mov ecx, 0x41a418
push eax
call fcn.004016d1
push dword [ebp - 0x1c]
mov byte [ebp - 3], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [0x41a41c]
mov eax, dword [0x41a418]
mov dx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405b46
cmp dx, 0x2f
jne 0x405b51
dec ecx
mov word [eax + ecx*2], bx
mov dword [0x41a41c], ecx
cmp dword [0x41a46c], ebx
jne 0x405b67
mov edi, dword [ebp - 0xc]
push esi
push edi
call fcn.004064fe
pop ecx
pop ecx
jmp 0x405b78
call fcn.00408821
test eax, eax
jne 0x405bc2
mov edi, dword [ebp - 0xc]
mov eax, 0x80004005
cmp eax, ebx
je 0x405bc5
cmp byte [ebp - 3], 0
jne 0x405b8e
push dword [0x41a418]
call fcn.004027cb
pop ecx
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp edi, ebx
je 0x405bbb
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 8
jmp 0x406151
mov edi, dword [ebp - 0xc]
call fcn.00404166
cmp byte [ebp - 5], 0
je 0x405bda
cmp byte [ebp - 3], 0
jne 0x4061f8
push 3
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
call fcn.004017b4
cmp byte [ebp - 1], 0
jne 0x405c14
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00404394
pop ecx
pop ecx
mov eax, dword [ebp - 0x58]
and byte [ebp - 0xd], 0
mov dword [ebp - 0xb4], eax
and byte [ebp - 1], 0
and byte [ebp - 0xe], 0
push 3
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call fcn.004017b4
push 3
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
call fcn.004017b4
cmp dword [ebp - 0x4c], ebx
jne 0x405d0f
cmp byte [ebp - 3], 0
jne 0x4060ab
mov esi, str.setup.exe
lea eax, [ebp - 0xdc]
push esi
push 0x4190d0
push 0x41a418
push eax
call fcn.00406b8f
add esp, 0xc
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00406b8f
add esp, 0xc
lea ecx, [ebp - 0x78]
push eax
call fcn.004016d1
push dword [ebp - 0x13c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xdc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406046
mov byte [ebp - 0xd], 1
push esi
lea ecx, [ebp - 0x88]
call fcn.00401628
lea eax, [ebp - 0x88]
push eax
call fcn.0040414b
mov edi, dword [ebp - 0x88]
pop ecx
push ebx
push str.hidcon
push edi
call fcn.00404211
add esp, 0xc
cmp eax, ebx
je 0x405d9b
mov edi, eax
mov byte [ebp - 1], 1
jmp 0x405cf0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x6c]
push dword [ebp - 0x50]
push eax
call fcn.0040252c
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x405cd1
mov esi, dword [ebp - 0xb4]
inc esi
inc esi
mov dword [ebp - 0xb4], esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x405d45
cmp ax, 0x39
jbe 0x405d65
cmp ax, 0x61
jb 0x405d51
cmp ax, 0x7a
jbe 0x405d65
cmp ax, 0x41
jb 0x4060ab
cmp ax, 0x5a
ja 0x4060ab
push str.AutoInstall
lea ecx, [ebp - 0x50]
call fcn.00401628
mov ax, word [esi]
lea ecx, [ebp - 0x50]
push eax
call fcn.0040171c
push dword [ebp - 0x88]
mov dword [ebp - 0x2c], ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x405c21
push ebx
push 0x419ec0
push edi
call fcn.00404211
add esp, 0xc
cmp eax, ebx
je 0x405dbb
mov edi, eax
mov al, byte [ebp - 3]
mov byte [ebp - 0xe], al
jmp 0x405cf0
push 2
push 0x419f40
push edi
call fcn.00404211
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x405df1
cmp dword [0x419a78], 0xffffffff
jne 0x405dea
add edi, 4
push edi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x419a78], eax
mov edi, esi
jmp 0x405cf0
push 3
push 0x419eb8
push edi
call fcn.00404211
add esp, 0xc
cmp eax, ebx
je 0x405e19
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0xb8], ecx
mov edi, eax
jmp 0x405cf0
push 3
push 0x419eb0
push edi
call fcn.00404211
add esp, 0xc
cmp eax, ebx
je 0x405e3c
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0xa4], ecx
jmp 0x405e12
cmp byte [ebp - 4], 0
je 0x405e9b
cmp word [edi], 0x22
je 0x405e6a
mov esi, 0x419e30
lea ecx, [ebp - 0x78]
push esi
call fcn.00401628
push edi
lea ecx, [ebp - 0x78]
call fcn.0040378e
push esi
lea ecx, [ebp - 0x78]
call fcn.0040378e
jmp 0x405e73
push edi
lea ecx, [ebp - 0x78]
call fcn.00401628
push ebx
lea eax, [ebp - 0x6c]
push str.ExecuteParameters
push eax
call fcn.0040252c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x405eb3
push 0x419eac
lea ecx, [ebp - 0x78]
call fcn.0040378e
push esi
jmp 0x405eab
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x78]
push eax
call fcn.004016d1
push edi
lea ecx, [ebp - 0x78]
call fcn.0040378e
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004017b4
push 3
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.004017b4
push 0x3c
lea eax, [ebp - 0x124]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x41a418]
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x120], 0x740
mov dword [ebp - 0x108], 1
je 0x405f34
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x120], 0x8740
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x78]
call fcn.004043ea
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00401628
mov esi, dword [ebp - 0x54]
cmp word [esi], bx
je 0x405f7e
push 0x20
lea ecx, [ebp - 0xa0]
call fcn.0040171c
push esi
lea ecx, [ebp - 0xa0]
call fcn.0040378e
cmp word [esi], bx
je 0x405f7e
inc esi
inc esi
cmp word [esi], bx
jne 0x405f74
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x1c]
push eax
call fcn.0040414b
lea eax, [ebp - 0xa0]
push eax
call fcn.0040414b
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x9c], ebx
pop ecx
mov dword [ebp - 0x114], eax
pop ecx
je 0x405fb2
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x110], eax
cmp dword [0x41a470], ebx
jne 0x405fef
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4060c5
cmp byte [ebp - 0xe], 0
jne 0x405fe3
push 0xffffffffffffffff
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 4], 0
jne 0x406157
cmp byte [ebp - 0xd], 0
jne 0x406157
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], ebx
mov word [eax], bx
push dword [ebp - 0xa0]
inc dword [ebp - 0x2c]
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 - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x405c21
push dword [0x41a418]
call fcn.004027cb
push 0xf
push ebx
call fcn.004086c7
push dword [ebp - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xb0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x28
cmp edi, ebx
je 0x4060a4
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 7
jmp 0x406151
push dword [ebp - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406183
sub esp, 0xc
lea esi, [ebp - 0x78]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 1
movsd dword es:[edi], dword [esi]
call fcn.004086c7
add esp, 0x14
cmp byte [ebp - 3], 0
jne 0x4060ee
push dword [0x41a418]
call fcn.004027cb
pop ecx
push dword [ebp - 0xa0]
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 - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xb0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc]
add esp, 0x24
cmp eax, ebx
je 0x40614f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
pop esi
jmp 0x4062f0
push dword [ebp - 0xa0]
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 - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp - 0xc]
add esp, 0x10
cmp dword [0x41a470], ebx
jne 0x4061ec
call fcn.00404166
push dword [ebp - 0xb8]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x58]
push str.Shortcut
push eax
push 0x404a87
call fcn.00404bc7
add esp, 0x14
push dword [0x41a408]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0xa4]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x58]
push str.Delete
push eax
push 0x404b7f
call fcn.00404bc7
add esp, 0x14
cmp byte [ebp - 3], 0
jne 0x4061ec
push dword [0x41a418]
call fcn.004027cb
pop ecx
push dword [ebp - 0xb0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x419a78], 0xffffffff
jne 0x406211
cmp byte [ebp - 2], 0
jne 0x40627a
mov dword [0x419a78], 1
cmp dword [0x419a78], ebx
jle 0x40627a
push ebx
lea eax, [ebp - 0x6c]
push str.FinishMessage
push eax
call fcn.0040252c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40627a
mov eax, 0x3e7
cmp dword [0x419a78], eax
jle 0x406243
mov dword [0x419a78], eax
lea ecx, [ebp - 0x130]
call fcn.00406365
push ebx
push esi
push dword [0x41a43c]
lea ecx, [ebp - 0x130]
push 0x11
call fcn.004071bc
push dword [ebp - 0xf4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x130]
call fcn.00406c4c
cmp byte [ebp - 5], 0
jne 0x4062c1
cmp dword [0x41a470], ebx
jne 0x4062c1
push ebx
lea eax, [ebp - 0x6c]
push str.SelfDelete
push eax
call fcn.0040252c
add esp, 0xc
cmp eax, ebx
je 0x4062c1
cmp word [eax], 0x31
jne 0x4062c1
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x41a3c8
call fcn.004015ee
call fcn.004066d9
add esp, 0xc
push dword [ebp - 0x50]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x44]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x38]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp edi, ebx
je 0x4062ee
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor esi, esi
push dword [ebp - 0xc4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x6c], 0x415398
lea ecx, [ebp - 0x6c]
call fcn.0040fedb
lea ecx, [ebp - 0x6c]
call fcn.0040feb2
push dword [ebp - 0xd0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
pop ecx
jmp 0x406346
push 0x10
push str.7_Zip_SFX
push str.Sorry__this_program_requires_Microsoft_Windows_2000_or_later.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x14
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10