Function at 0x404dde
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.00401af0
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406298
cmp dword [ebp - 0x228], 2
jne 0x406298
cmp dword [ebp - 0x234], 5
jb 0x406298
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], 0x417248
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.00401394
lea ecx, [ebp - 0x80]
call fcn.00401394
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], 0x416f3c
call fcn.00403ce8
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0040444d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.00402464
lea eax, [ebp - 0x74]
push eax
call fcn.00402980
mov ebx, dword [ebp - 0x74]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403c52
cmp eax, edi
pop ecx
pop ecx
je 0x404f05
cmp word [eax], 0x3a
jne 0x404f05
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x404eef
mov word [0x41a72c], ax
jmp 0x404eef
inc ebx
inc ebx
cmp word [ebx], si
ja 0x404eed
jmp 0x404efd
cmp ax, si
ja 0x404f05
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x404ef6
call fcn.004042ca
push str.sfxversion
push ebx
call fcn.00403c52
test eax, eax
pop ecx
pop ecx
je 0x404f4c
call fcn.004047db
xor esi, esi
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403d35
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 0x4062af
mov esi, 0x208
cmp dword [0x41a7b8], esi
jg 0x404f64
push esi
mov ecx, 0x41a7b0
call fcn.0040112f
push esi
push dword [0x41a7b0]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x404f85
xor esi, esi
inc esi
push 6
push esi
call fcn.00407511
pop ecx
pop ecx
jmp 0x404f22
mov esi, dword [0x41a7b0]
push esi
call fcn.0040111b
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41a7b4], eax
call fcn.00403c52
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x40510c
cmp word [esi], 0x3a
je 0x404fc1
push 0x64
pop esi
jmp 0x404f22
movzx ecx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x405091
sub eax, ebx
je 0x40507d
dec eax
je 0x404fff
sub eax, ebx
je 0x404ff5
sub eax, 0x10
jne 0x404fb9
mov esi, 0x46a8
jmp 0x404f22
mov esi, 0x203f
jmp 0x404f22
cmp cx, 0x44
jne 0x40503d
cmp word [esi + 4], 0x3a
jne 0x404fb9
add esi, 6
jmp 0x405027
cmp ax, 0x3a
je 0x405030
movzx eax, ax
push eax
mov ecx, 0x41a7e0
call fcn.004013ac
add esi, ebx
movzx eax, word [esi]
cmp ax, 0x20
ja 0x405011
cmp dword [0x41a7e4], edi
jne 0x405040
jmp 0x404fb9
add esi, 4
mov dword [0x41a7d8], edi
cmp word [esi], 0x3a
jne 0x405067
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41a7d8], eax
ja 0x405067
cmp eax, edi
jne 0x405071
mov dword [0x41a7d8], 0xa
mov dword [0x41a7dc], 1
jmp 0x40509b
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41a7dc], eax
jmp 0x40509b
mov dword [0x41a7dc], ebx
jmp 0x40509b
add esi, ebx
cmp word [esi], 0x20
ja 0x405099
jmp 0x4050ab
cmp ax, 0x20
ja 0x4050b3
add esi, ebx
movzx eax, word [esi]
cmp ax, di
jne 0x4050a3
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403c52
cmp eax, edi
pop ecx
pop ecx
je 0x40510c
cmp word [eax], 0x3a
jne 0x4050d6
jmp 0x4050d4
cmp cx, 0x20
ja 0x4050de
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4050ce
mov ecx, dword [ebp - 0x50]
mov word [ecx], di
lea ecx, [ebp - 0x50]
push ecx
push eax
mov dword [ebp - 0x4c], edi
call fcn.0040444d
cmp dword [0x41a7dc], 2
pop ecx
pop ecx
mov ebx, eax
je 0x40510c
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x41a7b0
call fcn.004012e5
mov esi, 0x41a7b0
push esi
mov ecx, 0x41a780
call fcn.004012e5
mov edi, 0x41a78c
push esi
mov ecx, edi
call fcn.004012e5
push esi
call fcn.00402c71
xor esi, esi
cmp eax, esi
pop ecx
jl 0x4051c4
mov ecx, dword [0x41a780]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x41a784], eax
mov eax, dword [0x41a7b0]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.004012ac
mov eax, dword [0x41a7b0]
lea eax, [esi + eax + 2]
mov esi, 0x41a7a4
push eax
mov ecx, esi
call fcn.004012ac
push 0x2e
mov ecx, esi
call fcn.0040249a
test eax, eax
jle 0x405191
mov ecx, dword [0x41a7a4]
and word [ecx + eax*2], 0
mov dword [0x41a7a8], eax
push esi
mov esi, 0x41a798
mov ecx, esi
call fcn.004012e5
push 4
call fcn.00401f56
pop ecx
push eax
mov ecx, esi
call fcn.00402464
mov eax, dword [0x41a7a4]
mov dword [0x41a75c], eax
mov eax, dword [0x41a798]
mov dword [0x41a760], eax
xor esi, esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4051db
mov ecx, eax
call fcn.0040407a
mov edi, eax
jmp 0x4051dd
xor edi, edi
push edi
lea ecx, [ebp + 0x60]
call fcn.0040918e
push dword [0x41a7b0]
mov ecx, edi
call fcn.0040d806
test al, al
jne 0x40521d
push dword [0x41a7b0]
push 7
push 1
call fcn.00407511
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x405216
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x404fbb
lea ecx, [ebp + 0x48]
call fcn.004024c5
lea ecx, [ebp + 0x1c]
call fcn.004024c5
lea ecx, [ebp + 0x10]
call fcn.004024c5
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
movzx eax, word [0x41a72c]
push eax
call fcn.00404c73
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push edi
call fcn.0040275b
add esp, 0x1c
test al, al
jne 0x4052b3
lea eax, [ebp + 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.0040275b
add esp, 0x10
test al, al
jne 0x4052b3
push 9
push esi
call fcn.00407511
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 0x4052ac
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x404fbb
cmp dword [0x41a7dc], esi
jne 0x40536b
push str.sfxconfig
push ebx
call fcn.00403c52
cmp eax, esi
pop ecx
pop ecx
je 0x40536b
cmp word [eax], 0x3a
jne 0x4052dc
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x40533d
cmp cx, 0x20
ja 0x4052f4
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x4052e4
cmp word [eax], si
je 0x40533d
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00404af0
test al, al
pop ecx
pop ecx
jne 0x40533d
push 0xa
push esi
call fcn.00407511
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 0x405336
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x404fbb
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 0x404f22
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x404f22
lea ecx, [ebp + 0x28]
call fcn.0040e4c5
cmp dword [ebp + 0x4c], esi
je 0x4053aa
push esi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00402faa
add esp, 0xc
test al, al
jne 0x4053aa
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 0x40532c
cmp dword [0x41a7dc], 4
je 0x40533d
mov eax, dword [0x41a068]
mov esi, 0x41a068
jmp 0x405420
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.00401394
lea ecx, [ebp - 0x5c]
call fcn.00401394
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x68]
call fcn.004012ac
push dword [esi]
call fcn.00401f56
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004012ac
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x41a344
call fcn.00402e83
lea ecx, [ebp - 0x68]
add esi, 0x10
call fcn.004023de
mov eax, dword [esi]
test eax, eax
jne 0x4053bf
lea eax, [ebp + 0x28]
push eax
call fcn.004044bc
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x58], ebx
cmp word [ebx], di
jbe 0x40544e
inc ebx
inc ebx
cmp word [ebx], di
ja 0x40543b
jmp 0x40544b
cmp ax, di
ja 0x405456
inc ebx
inc ebx
mov dword [ebp + 0x58], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405444
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405469
cmp ax, 0x2d
jne 0x405678
lea esi, [ebx + 2]
cmp word [esi], 0x21
jne 0x40547c
cmp word [ebx + 4], di
jbe 0x405661
push 0x417464
push esi
call fcn.00403a9d
test eax, eax
pop ecx
pop ecx
je 0x4054d9
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x40549f
cmp ax, 0x39
jbe 0x4054b7
cmp ax, 0x61
jb 0x4054ab
cmp ax, 0x7a
jbe 0x4054b7
cmp ax, 0x41
jb 0x4054c7
cmp ax, 0x5a
ja 0x4054c7
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x405436
cmp ax, di
ja 0x405678
mov dword [ebp + 0x54], 0x417248
jmp 0x4054ba
push 0x41745c
push esi
call fcn.00403a9d
test eax, eax
pop ecx
pop ecx
je 0x4054fc
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405598
push 0x417454
push esi
call fcn.00403a9d
test eax, eax
pop ecx
pop ecx
je 0x40553d
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405678
cmp cx, 0x32
ja 0x405678
cmp word [ebx + 8], di
ja 0x405678
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.GUIMode
jmp 0x405598
push 0x41744c
push esi
call fcn.00403a9d
test eax, eax
pop ecx
pop ecx
je 0x40555d
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405598
push 0x417444
push esi
call fcn.00403a9d
test eax, eax
pop ecx
pop ecx
je 0x4055a5
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405584
cmp cx, 0x31
jne 0x405678
cmp word [ebx + 8], di
ja 0x405678
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.SelfDelete
call fcn.00404692
add esp, 0xc
jmp 0x405436
push 0x41743c
push esi
call fcn.00403a9d
test eax, eax
pop ecx
pop ecx
je 0x4055c9
cmp word [ebx + 6], di
ja 0x405678
mov byte [ebp + 0x64], 1
jmp 0x405436
push 0x417434
push esi
call fcn.00403a9d
test eax, eax
pop ecx
pop ecx
je 0x405606
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405678
cmp cx, 0x39
ja 0x405678
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41a318], eax
jmp 0x405436
movzx eax, word [esi]
cmp ax, 0x79
je 0x405615
cmp ax, 0x59
jne 0x405624
cmp word [ebx + 4], di
ja 0x405624
mov byte [ebp + 0x66], 1
jmp 0x405436
cmp ax, 0x3f
je 0x405636
cmp ax, 0x68
je 0x405636
cmp ax, 0x48
jne 0x405645
cmp word [ebx + 4], di
ja 0x405645
mov byte [ebp + 0x65], 1
jmp 0x405436
lea eax, [ebp + 0x28]
push eax
push esi
call fcn.00403f50
test eax, eax
pop ecx
pop ecx
je 0x405678
cmp eax, 1
je 0x40568f
mov ebx, eax
jmp 0x405433
add ebx, 4
jmp 0x40566d
cmp ax, di
ja 0x405678
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
mov dword [ebp + 0x58], ebx
jne 0x405666
lea eax, [ebp + 0x28]
push eax
call fcn.004044bc
and dword [ebp], 0
mov ebx, str.SetEnvironment
jmp 0x40572f
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 0x4056b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x404f22
push edi
lea ecx, [ebp - 0x10]
call fcn.00402413
push 0
push 0x3d
lea ecx, [ebp - 0x10]
call fcn.004025a0
test eax, eax
jle 0x40574c
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.00401394
lea ecx, [ebp - 0x5c]
call fcn.00401394
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.004012e5
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004012ac
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x41a344
call fcn.00402e83
inc dword [ebp]
lea ecx, [ebp - 0x68]
call fcn.004023de
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.004023f4
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4056be
jmp 0x405755
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00403ef9
xor esi, esi
cmp dword [0x41a30c], 0xffffffff
jne 0x40576b
mov dword [0x41a30c], esi
cmp byte [ebp + 0x65], 0
je 0x4057ef
push esi
lea eax, [ebp + 0x28]
push str.HelpText
push eax
call fcn.004023f4
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x405793
push 0x18
call fcn.00401f56
pop ecx
mov edi, eax
lea ecx, [ebp - 0x108]
call fcn.00403a49
push esi
push edi
push dword [0x41a75c]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.004071db
lea ecx, [ebp - 0x108]
call fcn.0040647d
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 0x404f20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404f20
cmp byte [ebp + 0x66], 0
je 0x4057ff
and dword [0x41a30c], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x28]
push str.InstallPath
push eax
call fcn.004023f4
add esp, 0xc
test eax, eax
mov esi, 0x41a774
je 0x405829
push eax
mov ecx, esi
call fcn.004012ac
push esi
call fcn.00403a62
cmp dword [0x41a7e4], 0
pop ecx
je 0x405864
lea eax, [ebp + 0x28]
push eax
call fcn.0040813d
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 0x4056aa
cmp dword [0x41a7dc], 3
jne 0x405878
lea eax, [ebp + 0x28]
push eax
call fcn.0040808b
jmp 0x405842
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x28]
push str.BeginPrompt
push eax
call fcn.004023f4
add esp, 0xc
cmp eax, edi
je 0x4058c7
cmp byte [ebp + 0x66], 0
jne 0x4058c7
push eax
push dword [0x41a75c]
call fcn.0040741d
test eax, eax
pop ecx
pop ecx
je 0x4059ef
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4058c7
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x3c]
call fcn.00401394
cmp byte [ebp + 0x67], 0
je 0x405951
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.004012ac
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.004013ac
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.004023f4
add esp, 0xc
test eax, eax
je 0x405a1e
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x40591b
cmp ax, 0x39
jbe 0x4058d8
cmp ax, 0x61
jb 0x405927
cmp ax, 0x7a
jbe 0x4058d8
cmp ax, 0x41
jb 0x405933
cmp ax, 0x5a
jbe 0x4058d8
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.004012ac
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.004013ac
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x405999
push edi
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.004023f4
add esp, 0xc
test eax, eax
je 0x40597e
push ebx
lea ecx, [ebp + 0x3c]
call fcn.004012ac
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x405999
push edi
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.004023f4
add esp, 0xc
test eax, eax
je 0x405999
push esi
lea ecx, [ebp + 0x3c]
call fcn.004012ac
cmp byte [ebp + 0x67], 0
jne 0x405a83
cmp byte [ebp + 0x66], 0
jne 0x405a83
mov eax, dword [0x41a30c]
and ax, 0xc0
cmp al, 0x80
jne 0x405a83
push dword [0x41a750]
push dword [0x41a754]
call fcn.0040747e
test eax, eax
pop ecx
pop ecx
jne 0x405a83
cmp byte [0x41a770], al
push dword [ebp + 0x3c]
je 0x405a61
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405884
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 0x405a17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x404fbb
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.00407511
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 0x405a5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x404fbb
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 0x405a0a
cmp dword [0x41a778], edi
jne 0x405ab9
lea eax, [ebp - 0x1c]
push str.7ZipSfx._03x
push eax
call fcn.00403e4a
pop ecx
pop ecx
mov esi, 0x41a774
push eax
mov ecx, esi
call fcn.004012e5
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41a740], 0
jmp 0x405af0
mov esi, 0x41a774
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040127a
lea eax, [ebp - 0x1c]
push eax
call fcn.00403a62
cmp dword [ebp - 0x18], edi
pop ecx
jne 0x405ae1
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004012e5
push dword [ebp - 0x1c]
mov byte [0x41a740], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41a774]
pop ecx
mov ecx, dword [0x41a778]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405b0d
cmp dx, 0x2f
jne 0x405b18
dec ecx
mov word [eax + ecx*2], di
mov dword [0x41a778], ecx
cmp dword [0x41a7d8], edi
jne 0x405b2e
push esi
mov esi, dword [ebp + 0x60]
push esi
call fcn.00404878
pop ecx
pop ecx
jmp 0x405b3f
call fcn.00407619
test eax, eax
mov esi, dword [ebp + 0x60]
jne 0x405b7c
mov eax, 0x80004005
cmp eax, edi
je 0x405b7c
call fcn.00403cd2
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 0x405b75
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x404fbb
call fcn.00403ef9
cmp byte [ebp + 0x64], 0
je 0x405b94
cmp byte [0x41a740], 0
jne 0x40617d
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00401394
cmp byte [ebp + 0x67], 0
jne 0x405bb4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004043f7
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.00401394
lea ecx, [ebp - 0x2c]
call fcn.00401394
cmp dword [ebp + 0x40], edi
jne 0x405c86
cmp byte [0x41a740], 0
jne 0x406004
mov edi, str.setup.exe
push edi
push 0x4164f0
lea eax, [ebp - 0x5c]
push 0x41a774
push eax
call fcn.0040428b
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0040428b
add esp, 0xc
push eax
lea ecx, [ebp + 4]
call fcn.004012e5
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 0x40601b
mov byte [ebp + 0x5e], 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.004012ac
lea eax, [ebp - 0x2c]
push eax
call fcn.00403a88
mov esi, dword [ebp - 0x2c]
pop ecx
xor edi, edi
push edi
push str.hidcon
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
je 0x405d0c
mov esi, eax
mov byte [ebp + 0x5f], 1
jmp 0x405c67
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.004023f4
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405c4f
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
mov dword [ebp - 0x40], edi
jb 0x405cb6
cmp ax, 0x39
jbe 0x405cd6
cmp ax, 0x61
jb 0x405cc2
cmp ax, 0x7a
jbe 0x405cd6
cmp ax, 0x41
jb 0x406075
cmp ax, 0x5a
ja 0x406075
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.004012ac
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.004013ac
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 0x405bbe
push edi
push str.nowait
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
je 0x405d2e
mov esi, eax
mov al, byte [0x41a740]
mov byte [ebp + 0x67], al
jmp 0x405c67
push edi
push str.forcenowait
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
je 0x405d4c
mov esi, eax
mov byte [ebp + 0x67], 1
jmp 0x405c67
push 2
push 0x417434
push esi
call fcn.00403ad7
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x405d82
cmp dword [0x41a318], 0xffffffff
jne 0x405d7b
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41a318], eax
mov esi, ebx
jmp 0x405c67
push 3
push 0x417394
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
je 0x405da2
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
jmp 0x405dc0
push 3
push 0x41738c
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
je 0x405dc7
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
mov esi, eax
jmp 0x405c67
push edi
push 0x417384
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
jne 0x405e21
push edi
push str.i386
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
jne 0x405e21
push edi
push 0x41736c
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
jne 0x405e13
push edi
push 0x417364
push esi
call fcn.00403ad7
add esp, 0xc
cmp eax, edi
je 0x405e2f
mov esi, eax
mov dword [ebp - 0x20], 2
jmp 0x405c67
mov esi, eax
mov dword [ebp - 0x20], 1
jmp 0x405c67
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 4]
je 0x405e8a
cmp word [esi], 0x22
je 0x405e5d
mov ebx, 0x41723c
push ebx
call fcn.004012ac
push esi
lea ecx, [ebp + 4]
call fcn.00402464
push ebx
lea ecx, [ebp + 4]
call fcn.00402464
jmp 0x405e63
push esi
call fcn.004012ac
push edi
lea eax, [ebp + 0x28]
push str.ExecuteParameters
push eax
call fcn.004023f4
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x405e9c
push 0x417360
lea ecx, [ebp + 4]
call fcn.00402464
jmp 0x405e93
lea eax, [ebp - 0x10]
push eax
call fcn.004012e5
push esi
lea ecx, [ebp + 4]
call fcn.00402464
lea ecx, [ebp - 0x1c]
call fcn.00401394
lea ecx, [ebp - 0x38]
call fcn.00401394
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x41a774]
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 0x405efb
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.0040444d
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004012ac
lea eax, [ebp - 0x1c]
push eax
call fcn.00403a88
cmp dword [0x41a7dc], edi
mov eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xac], eax
jne 0x405fbb
push dword [ebp - 0x20]
call fcn.004021a6
test eax, eax
pop ecx
je 0x405fbb
mov esi, dword [ebp + 0x58]
cmp word [esi], di
je 0x405f69
push 0x20
lea ecx, [ebp - 0x38]
call fcn.004013ac
push esi
lea ecx, [ebp - 0x38]
call fcn.00402464
cmp word [esi], di
je 0x405f69
inc esi
inc esi
cmp word [esi], di
jne 0x405f5f
mov dword [ebp + 0x58], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00403a88
cmp dword [ebp - 0x34], edi
pop ecx
je 0x405f81
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 0x40608c
cmp byte [ebp + 0x67], 0
jne 0x405faa
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.0040213e
cmp byte [ebp + 0x65], 0
jne 0x4060f8
cmp byte [ebp + 0x5e], 0
jne 0x4060f8
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 0x405d05
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 0x40611e
call fcn.00403cd2
push 0xf
push 0
call fcn.00407511
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 0x40606e
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 7
jmp 0x404fbb
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 0x40611c
push ebx
push 0x10
push 1
call fcn.00407511
call fcn.00403cd2
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 0x4060f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x404fbb
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 [0x41a7dc], edi
jne 0x406174
call fcn.00403ef9
push dword [ebp - 0x44]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Shortcut
push eax
push 0x404d13
call fcn.004046f0
add esp, 0x14
push dword [0x41a780]
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 0x40404b
call fcn.004046f0
add esp, 0x14
call fcn.00403cd2
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41a318], 0xffffffff
jne 0x406196
cmp byte [ebp + 0x66], 0
jne 0x406201
mov dword [0x41a318], 1
cmp dword [0x41a318], edi
jle 0x406201
push 0
lea eax, [ebp + 0x28]
push str.FinishMessage
push eax
call fcn.004023f4
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406201
mov eax, 0x3e7
cmp dword [0x41a318], eax
jle 0x4061c9
mov dword [0x41a318], eax
lea ecx, [ebp - 0x110]
call fcn.00403e0d
push 0
push edi
push dword [0x41a75c]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.004071db
push dword [ebp - 0xd4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x110]
call fcn.0040647d
cmp byte [ebp + 0x64], 0
jne 0x406244
cmp dword [0x41a7dc], 0
jne 0x406244
push 0
lea eax, [ebp + 0x28]
push str.SelfDelete
push eax
call fcn.004023f4
add esp, 0xc
test eax, eax
je 0x406244
cmp word [eax], 0x31
jne 0x406244
sub esp, 0xc
mov ecx, esp
push 0x41a7b0
call fcn.0040127a
call fcn.00404933
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 0x406271
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.00403d35
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 0x4062af
push 0x10
push str.7_Zip_SFX
push str.Sorry__this_program_requires_Microsoft_Windows_2000_or_later.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x14
pop eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10