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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2a0
push ebx
push esi
push edi
push 0x403ddb
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00401b41
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4064cb
cmp dword [ebp - 0x228], 2
jne 0x4064cb
cmp dword [ebp - 0x234], 5
jb 0x4064cb
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], 0x418530
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.0040140c
lea ecx, [ebp - 0x80]
call fcn.0040140c
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], 0x418224
call fcn.00403e51
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004045c5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.0040254c
lea eax, [ebp - 0x74]
push eax
call fcn.00402a2b
mov ebx, dword [ebp - 0x74]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403d6f
cmp eax, edi
pop ecx
pop ecx
je 0x40510e
cmp word [eax], 0x3a
jne 0x40510e
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x4050f8
mov word [0x41b7ac], ax
jmp 0x4050f8
inc ebx
inc ebx
cmp word [ebx], si
ja 0x4050f6
jmp 0x405106
cmp ax, si
ja 0x40510e
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x4050ff
call fcn.00404436
push str.sfxversion
push ebx
call fcn.00403d6f
test eax, eax
pop ecx
pop ecx
je 0x405155
call fcn.004049c7
xor esi, esi
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403e9e
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 0x4064e2
mov esi, 0x208
cmp dword [0x41b84c], esi
jg 0x40516d
push esi
mov ecx, 0x41b844
call fcn.00401126
push esi
push dword [0x41b844]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40518e
xor esi, esi
inc esi
push 6
push esi
call fcn.004077db
pop ecx
pop ecx
jmp 0x40512b
mov esi, dword [0x41b844]
push esi
call fcn.00401112
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x41b848], eax
call fcn.00403d6f
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405312
cmp word [esi], 0x3a
je 0x4051ca
push 0x64
pop esi
jmp 0x40512b
movzx ecx, word [esi + 2]
movzx eax, cx
push 0x20
pop ebx
or eax, ebx
sub eax, 0x61
je 0x405295
dec eax
dec eax
je 0x405281
dec eax
je 0x405207
dec eax
dec eax
je 0x4051fd
sub eax, 0x10
jne 0x4051c2
mov esi, 0x493f
jmp 0x40512b
mov esi, 0x203f
jmp 0x40512b
cmp cx, 0x44
jne 0x405241
cmp word [esi + 4], 0x3a
jne 0x4051c2
add esi, 6
jmp 0x40522f
cmp ax, 0x3a
je 0x405237
movzx eax, ax
push eax
mov ecx, 0x41b874
call fcn.00401424
inc esi
inc esi
movzx eax, word [esi]
cmp ax, bx
ja 0x405219
cmp dword [0x41b878], edi
jne 0x405244
jmp 0x4051c2
add esi, 4
mov dword [0x41b86c], edi
cmp word [esi], 0x3a
jne 0x40526b
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41b86c], eax
ja 0x40526b
cmp eax, edi
jne 0x405275
mov dword [0x41b86c], 0xa
mov dword [0x41b870], 1
jmp 0x4052a3
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41b870], eax
jmp 0x4052a3
mov dword [0x41b870], 2
jmp 0x4052a3
inc esi
inc esi
cmp word [esi], bx
ja 0x4052a1
jmp 0x4052b1
cmp ax, bx
ja 0x4052b9
inc esi
inc esi
movzx eax, word [esi]
cmp ax, di
jne 0x4052aa
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403d6f
cmp eax, edi
pop ecx
pop ecx
je 0x405312
cmp word [eax], 0x3a
jne 0x4052dc
jmp 0x4052da
cmp cx, 0x20
ja 0x4052e4
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x4052d4
mov ecx, dword [ebp - 0x50]
mov word [ecx], di
lea ecx, [ebp - 0x50]
push ecx
push eax
mov dword [ebp - 0x4c], edi
call fcn.004045c5
cmp dword [0x41b870], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405312
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x41b844
call fcn.0040135d
mov esi, 0x41b844
push esi
mov ecx, 0x41b814
call fcn.0040135d
mov edi, 0x41b820
push esi
mov ecx, edi
call fcn.0040135d
push esi
call fcn.00402d1c
xor esi, esi
cmp eax, esi
pop ecx
jl 0x4053ca
mov ecx, dword [0x41b814]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x41b818], eax
mov eax, dword [0x41b844]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401324
mov eax, dword [0x41b844]
lea eax, [esi + eax + 2]
mov esi, 0x41b838
push eax
mov ecx, esi
call fcn.00401324
push 0x2e
mov ecx, esi
call fcn.00402582
test eax, eax
jle 0x405397
mov ecx, dword [0x41b838]
and word [ecx + eax*2], 0
mov dword [0x41b83c], eax
push esi
mov esi, 0x41b82c
mov ecx, esi
call fcn.0040135d
push 4
call fcn.00401fa7
pop ecx
push eax
mov ecx, esi
call fcn.0040254c
mov eax, dword [0x41b838]
mov dword [0x41b7dc], eax
mov eax, dword [0x41b82c]
mov dword [0x41b7e4], eax
xor esi, esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4053e1
mov ecx, eax
call fcn.004041e3
mov edi, eax
jmp 0x4053e3
xor edi, edi
push edi
lea ecx, [ebp + 0x60]
call fcn.00403df2
push dword [0x41b844]
mov ecx, edi
call fcn.0040f46b
test al, al
jne 0x405423
push dword [0x41b844]
push 7
push 1
call fcn.004077db
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x40541c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x4051c4
lea ecx, [ebp + 0x48]
call fcn.004025ad
lea ecx, [ebp + 0x1c]
call fcn.004025ad
lea ecx, [ebp + 0x10]
call fcn.004025ad
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
movzx eax, word [0x41b7ac]
push eax
call fcn.00404e70
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push edi
call fcn.00402843
add esp, 0x1c
test al, al
jne 0x4054b9
lea eax, [ebp + 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.00402843
add esp, 0x10
test al, al
jne 0x4054b9
push 9
push esi
call fcn.004077db
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 0x4054b2
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x4051c4
cmp dword [0x41b870], esi
jne 0x405571
push str.sfxconfig
push ebx
call fcn.00403d6f
cmp eax, esi
pop ecx
pop ecx
je 0x405571
cmp word [eax], 0x3a
jne 0x4054e2
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405543
cmp cx, 0x20
ja 0x4054fa
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x4054ea
cmp word [eax], si
je 0x405543
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00404ced
test al, al
pop ecx
pop ecx
jne 0x405543
push 0xa
push esi
call fcn.004077db
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 0x40553c
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x4051c4
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 0x40512b
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x40512b
lea ecx, [ebp + 0x28]
call fcn.0040f2dc
cmp dword [ebp + 0x4c], esi
je 0x4055b0
push esi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00403055
add esp, 0xc
test al, al
jne 0x4055b0
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 0x405532
cmp dword [0x41b870], 4
je 0x405543
mov eax, dword [0x41b068]
mov esi, 0x41b068
jmp 0x405626
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.0040140c
lea ecx, [ebp - 0x5c]
call fcn.0040140c
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401324
push dword [esi]
call fcn.00401fa7
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401324
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x41b394
call fcn.00402f2e
lea ecx, [ebp - 0x68]
add esi, 0x10
call fcn.00402424
mov eax, dword [esi]
test eax, eax
jne 0x4055c5
lea eax, [ebp + 0x28]
push eax
call fcn.00404634
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x58], ebx
cmp word [ebx], di
jbe 0x405654
inc ebx
inc ebx
cmp word [ebx], di
ja 0x405641
jmp 0x405651
cmp ax, di
ja 0x40565c
inc ebx
inc ebx
mov dword [ebp + 0x58], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x40564a
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x40566f
cmp ax, 0x2d
jne 0x40589e
lea esi, [ebx + 2]
cmp word [esi], 0x21
jne 0x405682
cmp word [ebx + 4], di
jbe 0x405887
push 0x41874c
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x4056df
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x4056a5
cmp ax, 0x39
jbe 0x4056bd
cmp ax, 0x61
jb 0x4056b1
cmp ax, 0x7a
jbe 0x4056bd
cmp ax, 0x41
jb 0x4056cd
cmp ax, 0x5a
ja 0x4056cd
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x40563c
cmp ax, di
ja 0x40589e
mov dword [ebp + 0x54], 0x418530
jmp 0x4056c0
push 0x418744
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x405702
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x4057be
push 0x41873c
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x405743
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40589e
cmp cx, 0x32
ja 0x40589e
cmp word [ebx + 8], di
ja 0x40589e
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.GUIMode
jmp 0x4057be
push 0x418734
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x405763
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x4057be
push 0x41872c
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x405783
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x4057be
push 0x418724
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x4057cb
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x4057aa
cmp cx, 0x31
jne 0x40589e
cmp word [ebx + 8], di
ja 0x40589e
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.SelfDelete
call fcn.0040487e
add esp, 0xc
jmp 0x40563c
push 0x41871c
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x4057ef
cmp word [ebx + 6], di
ja 0x40589e
mov byte [ebp + 0x64], 1
jmp 0x40563c
push 0x418714
push esi
call fcn.00403b92
test eax, eax
pop ecx
pop ecx
je 0x40582c
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40589e
cmp cx, 0x39
ja 0x40589e
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41b368], eax
jmp 0x40563c
movzx eax, word [esi]
cmp ax, 0x79
je 0x40583b
cmp ax, 0x59
jne 0x40584a
cmp word [ebx + 4], di
ja 0x40584a
mov byte [ebp + 0x66], 1
jmp 0x40563c
cmp ax, 0x3f
je 0x40585c
cmp ax, 0x68
je 0x40585c
cmp ax, 0x48
jne 0x40586b
cmp word [ebx + 4], di
ja 0x40586b
mov byte [ebp + 0x65], 1
jmp 0x40563c
lea eax, [ebp + 0x28]
push eax
push esi
call fcn.004040b9
test eax, eax
pop ecx
pop ecx
je 0x40589e
cmp eax, 1
je 0x4058b5
mov ebx, eax
jmp 0x405639
add ebx, 4
jmp 0x405893
cmp ax, di
ja 0x40589e
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
mov dword [ebp + 0x58], ebx
jne 0x40588c
lea eax, [ebp + 0x28]
push eax
call fcn.00404634
and dword [ebp], 0
mov ebx, str.SetEnvironment
jmp 0x405955
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 0x4058dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x40512b
push edi
lea ecx, [ebp - 0x10]
call fcn.004024fb
push 0
push 0x3d
lea ecx, [ebp - 0x10]
call fcn.00402688
test eax, eax
jle 0x405972
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.0040140c
lea ecx, [ebp - 0x5c]
call fcn.0040140c
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040135d
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401324
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x41b394
call fcn.00402f2e
inc dword [ebp]
lea ecx, [ebp - 0x68]
call fcn.00402424
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.0040243a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4058e4
jmp 0x40597b
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00404062
xor esi, esi
cmp dword [0x41b35c], 0xffffffff
jne 0x405991
mov dword [0x41b35c], esi
cmp byte [ebp + 0x65], 0
je 0x405a15
push esi
lea eax, [ebp + 0x28]
push str.HelpText
push eax
call fcn.0040243a
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x4059b9
push 0x18
call fcn.00401fa7
pop ecx
mov edi, eax
lea ecx, [ebp - 0x108]
call fcn.00403b28
push esi
push edi
push dword [0x41b7dc]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.00407436
lea ecx, [ebp - 0x108]
call fcn.004066b3
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 0x405129
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405129
cmp byte [ebp + 0x66], 0
je 0x405a25
and dword [0x41b35c], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x28]
push str.InstallPath
push eax
call fcn.0040243a
add esp, 0xc
test eax, eax
mov esi, 0x41b808
je 0x405a4f
push eax
mov ecx, esi
call fcn.00401324
push esi
call fcn.00403b41
cmp dword [0x41b878], 0
pop ecx
je 0x405a8a
lea eax, [ebp + 0x28]
push eax
call fcn.00408414
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 0x4058d0
cmp dword [0x41b870], 3
jne 0x405a9e
lea eax, [ebp + 0x28]
push eax
call fcn.00408347
jmp 0x405a68
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x28]
push str.BeginPrompt
push eax
call fcn.0040243a
add esp, 0xc
cmp eax, edi
je 0x405aed
cmp byte [ebp + 0x66], 0
jne 0x405aed
push eax
push dword [0x41b7dc]
call fcn.00407678
test eax, eax
pop ecx
pop ecx
je 0x405c15
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x405aed
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x3c]
call fcn.0040140c
cmp byte [ebp + 0x67], 0
je 0x405b77
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401324
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401424
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.0040243a
add esp, 0xc
test eax, eax
je 0x405c44
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x405b41
cmp ax, 0x39
jbe 0x405afe
cmp ax, 0x61
jb 0x405b4d
cmp ax, 0x7a
jbe 0x405afe
cmp ax, 0x41
jb 0x405b59
cmp ax, 0x5a
jbe 0x405afe
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401324
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401424
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x405bbf
push edi
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.0040243a
add esp, 0xc
test eax, eax
je 0x405ba4
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00401324
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x405bbf
push edi
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.0040243a
add esp, 0xc
test eax, eax
je 0x405bbf
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401324
cmp byte [ebp + 0x67], 0
jne 0x405ca9
cmp byte [ebp + 0x66], 0
jne 0x405ca9
mov eax, dword [0x41b35c]
and ax, 0xc0
cmp al, 0x80
jne 0x405ca9
push dword [0x41b7d0]
push dword [0x41b7d4]
call fcn.004076d9
test eax, eax
pop ecx
pop ecx
jne 0x405ca9
cmp byte [0x41b7f8], al
push dword [ebp + 0x3c]
je 0x405c87
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405aaa
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 0x405c3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x4051c4
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.004077db
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 0x405c80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x4051c4
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 0x405c30
cmp dword [0x41b80c], edi
jne 0x405cdf
lea eax, [ebp - 0x1c]
push str.7ZipSfx._03x
push eax
call fcn.00403fb3
pop ecx
pop ecx
mov esi, 0x41b808
push eax
mov ecx, esi
call fcn.0040135d
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41b7c0], 0
jmp 0x405d16
mov esi, 0x41b808
push esi
lea ecx, [ebp - 0x1c]
call fcn.004012f2
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b41
cmp dword [ebp - 0x18], edi
pop ecx
jne 0x405d07
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040135d
push dword [ebp - 0x1c]
mov byte [0x41b7c0], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41b808]
pop ecx
mov ecx, dword [0x41b80c]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405d33
cmp dx, 0x2f
jne 0x405d3e
dec ecx
mov word [eax + ecx*2], di
mov dword [0x41b80c], ecx
cmp byte [ebp + 0x66], 0
je 0x405d4b
or dword [0x41b7ec], 3
cmp dword [0x41b86c], edi
jne 0x405d61
push esi
mov esi, dword [ebp + 0x60]
push esi
call fcn.00404a75
pop ecx
pop ecx
jmp 0x405d72
call fcn.004078d0
test eax, eax
mov esi, dword [ebp + 0x60]
jne 0x405daf
mov eax, 0x80004005
cmp eax, edi
je 0x405daf
call fcn.00403e3b
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 0x405da8
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x4051c4
call fcn.00404062
cmp byte [ebp + 0x64], 0
je 0x405dc7
cmp byte [0x41b7c0], 0
jne 0x4063b0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0040140c
cmp byte [ebp + 0x67], 0
jne 0x405de7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.0040456f
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.0040140c
lea ecx, [ebp - 0x2c]
call fcn.0040140c
cmp dword [ebp + 0x40], edi
jne 0x405eb9
cmp byte [0x41b7c0], 0
jne 0x406237
mov edi, str.setup.exe
push edi
push 0x4175f4
lea eax, [ebp - 0x5c]
push 0x41b808
push eax
call fcn.004043f7
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004043f7
add esp, 0xc
push eax
lea ecx, [ebp + 4]
call fcn.0040135d
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 0x40624e
mov byte [ebp + 0x5e], 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401324
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b6f
mov esi, dword [ebp - 0x2c]
pop ecx
xor edi, edi
push edi
push str.hidcon
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
je 0x405f3f
mov esi, eax
mov byte [ebp + 0x5f], 1
jmp 0x405e9a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.0040243a
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405e82
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
mov dword [ebp - 0x40], edi
jb 0x405ee9
cmp ax, 0x39
jbe 0x405f09
cmp ax, 0x61
jb 0x405ef5
cmp ax, 0x7a
jbe 0x405f09
cmp ax, 0x41
jb 0x4062a8
cmp ax, 0x5a
ja 0x4062a8
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401324
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401424
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 0x405df1
push edi
push str.nowait
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
je 0x405f61
mov esi, eax
mov al, byte [0x41b7c0]
mov byte [ebp + 0x67], al
jmp 0x405e9a
push edi
push str.forcenowait
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
je 0x405f7f
mov esi, eax
mov byte [ebp + 0x67], 1
jmp 0x405e9a
push 2
push 0x418714
push esi
call fcn.00403bcc
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x405fb5
cmp dword [0x41b368], 0xffffffff
jne 0x405fae
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41b368], eax
mov esi, ebx
jmp 0x405e9a
push 3
push 0x418674
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
je 0x405fd5
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
jmp 0x405ff3
push 3
push 0x41866c
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
je 0x405ffa
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
mov esi, eax
jmp 0x405e9a
push edi
push 0x418664
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
jne 0x406054
push edi
push str.i386
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
jne 0x406054
push edi
push 0x41864c
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
jne 0x406046
push edi
push 0x418644
push esi
call fcn.00403bcc
add esp, 0xc
cmp eax, edi
je 0x406062
mov esi, eax
mov dword [ebp - 0x20], 2
jmp 0x405e9a
mov esi, eax
mov dword [ebp - 0x20], 1
jmp 0x405e9a
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 4]
je 0x4060bd
cmp word [esi], 0x22
je 0x406090
mov ebx, 0x418524
push ebx
call fcn.00401324
push esi
lea ecx, [ebp + 4]
call fcn.0040254c
push ebx
lea ecx, [ebp + 4]
call fcn.0040254c
jmp 0x406096
push esi
call fcn.00401324
push edi
lea eax, [ebp + 0x28]
push str.ExecuteParameters
push eax
call fcn.0040243a
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4060cf
push 0x418640
lea ecx, [ebp + 4]
call fcn.0040254c
jmp 0x4060c6
lea eax, [ebp - 0x10]
push eax
call fcn.0040135d
push esi
lea ecx, [ebp + 4]
call fcn.0040254c
lea ecx, [ebp - 0x1c]
call fcn.0040140c
lea ecx, [ebp - 0x38]
call fcn.0040140c
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x41b808]
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 0x40612e
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.004045c5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401324
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b6f
cmp dword [0x41b870], edi
mov eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xac], eax
jne 0x4061ee
push dword [ebp - 0x20]
call fcn.004021f7
test eax, eax
pop ecx
je 0x4061ee
mov esi, dword [ebp + 0x58]
cmp word [esi], di
je 0x40619c
push 0x20
lea ecx, [ebp - 0x38]
call fcn.00401424
push esi
lea ecx, [ebp - 0x38]
call fcn.0040254c
cmp word [esi], di
je 0x40619c
inc esi
inc esi
cmp word [esi], di
jne 0x406192
mov dword [ebp + 0x58], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00403b6f
cmp dword [ebp - 0x34], edi
pop ecx
je 0x4061b4
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 0x4062bf
cmp byte [ebp + 0x67], 0
jne 0x4061dd
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.0040218f
cmp byte [ebp + 0x65], 0
jne 0x40632b
cmp byte [ebp + 0x5e], 0
jne 0x40632b
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 0x405f38
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 0x406351
call fcn.00403e3b
push 0xf
push 0
call fcn.004077db
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 0x4062a1
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 7
jmp 0x4051c4
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 0x40634f
push ebx
push 0x10
push 1
call fcn.004077db
call fcn.00403e3b
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 0x406324
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x4051c4
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 [0x41b870], edi
jne 0x4063a7
call fcn.00404062
push dword [ebp - 0x44]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Shortcut
push eax
push 0x404f10
call fcn.004048dc
add esp, 0x14
push dword [0x41b814]
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 0x4041b4
call fcn.004048dc
add esp, 0x14
call fcn.00403e3b
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41b368], 0xffffffff
jne 0x4063c9
cmp byte [ebp + 0x66], 0
jne 0x406434
mov dword [0x41b368], 1
cmp dword [0x41b368], edi
jle 0x406434
push 0
lea eax, [ebp + 0x28]
push str.FinishMessage
push eax
call fcn.0040243a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x406434
mov eax, 0x3e7
cmp dword [0x41b368], eax
jle 0x4063fc
mov dword [0x41b368], eax
lea ecx, [ebp - 0x110]
call fcn.00403f76
push 0
push edi
push dword [0x41b7dc]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.00407436
push dword [ebp - 0xd4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x110]
call fcn.004066b3
cmp byte [ebp + 0x64], 0
jne 0x406477
cmp dword [0x41b870], 0
jne 0x406477
push 0
lea eax, [ebp + 0x28]
push str.SelfDelete
push eax
call fcn.0040243a
add esp, 0xc
test eax, eax
je 0x406477
cmp word [eax], 0x31
jne 0x406477
sub esp, 0xc
mov ecx, esp
push 0x41b844
call fcn.004012f2
call fcn.00404b30
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 0x4064a4
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.00403e9e
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 0x4064e2
push 0x10
push 0x418210
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