Function at 0x404fba
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.00401b35
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4064b4
cmp dword [ebp - 0x228], 2
jne 0x4064b4
cmp dword [ebp - 0x234], 5
jb 0x4064b4
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], 0x4141ac
xor esi, esi
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x64], 0
mov byte [ebp + 0x65], 0
call fcn.00401424
lea ecx, [ebp - 0x80]
call fcn.00401424
push 4
pop edi
push 0x20
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x28], 0x413f0c
call fcn.00403e76
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404108
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.0040253a
lea eax, [ebp - 0x74]
push eax
call fcn.00402a58
mov ebx, dword [ebp - 0x74]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403d7b
pop ecx
pop ecx
cmp eax, esi
je 0x4050e0
cmp word [eax], 0x3a
jne 0x4050e0
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x4050c8
mov word [0x41674c], ax
jmp 0x4050c8
inc ebx
inc ebx
cmp word [ebx], 0x20
ja 0x4050c6
jmp 0x4050d8
cmp ax, 0x20
ja 0x4050e0
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, si
jne 0x4050d0
call fcn.00404ad6
push str.sfxversion
push ebx
call fcn.00403d7b
pop ecx
pop ecx
test eax, eax
je 0x405127
call fcn.00404636
xor esi, esi
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403e1a
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 0x4064cb
mov esi, 0x208
cmp dword [0x4167ec], esi
jg 0x40513f
push esi
mov ecx, 0x4167e4
call fcn.00401139
push esi
push dword [0x4167e4]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405161
xor esi, esi
inc esi
push 6
push esi
call fcn.004077a3
pop ecx
pop ecx
jmp 0x4050fd
mov esi, dword [0x4167e4]
push esi
call fcn.00401125
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [esp], str.sfxtest
push ebx
mov dword [0x4167e8], eax
call fcn.00403d7b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4052ee
cmp word [esi], 0x3a
je 0x40519f
push 0x64
pop esi
jmp 0x4050fd
movzx ecx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x405270
sub eax, ebx
je 0x40525c
dec eax
je 0x4051dd
sub eax, ebx
je 0x4051d3
sub eax, 0x10
jne 0x405197
mov esi, 0x4703
jmp 0x4050fd
mov esi, 0x2033
jmp 0x4050fd
cmp cx, 0x44
jne 0x40521c
cmp word [esi + 4], 0x3a
jne 0x405197
add esi, 6
jmp 0x405205
cmp ax, 0x3a
je 0x40520e
movzx eax, ax
push eax
mov ecx, 0x416814
call fcn.0040143c
add esi, ebx
movzx eax, word [esi]
cmp ax, 0x20
ja 0x4051ef
cmp dword [0x416818], 0
jne 0x40521e
jmp 0x405197
add esi, edi
and dword [0x41680c], 0
cmp word [esi], 0x3a
jne 0x405246
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41680c], eax
cmp eax, 0xe10
ja 0x405246
test eax, eax
jne 0x405250
mov dword [0x41680c], 0xa
mov dword [0x416810], 1
jmp 0x40527a
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x416810], eax
jmp 0x40527a
mov dword [0x416810], ebx
jmp 0x40527a
add esi, ebx
cmp word [esi], 0x20
ja 0x405278
jmp 0x40528a
cmp ax, 0x20
ja 0x405292
add esi, ebx
movzx eax, word [esi]
test ax, ax
jne 0x405282
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403d7b
pop ecx
pop ecx
test eax, eax
je 0x4052ee
cmp word [eax], 0x3a
jne 0x4052b5
jmp 0x4052b3
cmp cx, 0x20
ja 0x4052bd
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x4052ad
mov edx, dword [ebp - 0x50]
and dword [ebp - 0x4c], 0
xor ecx, ecx
mov word [edx], cx
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.00404108
cmp dword [0x416810], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4052ee
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x4167e4
call fcn.00401372
mov esi, 0x4167e4
push esi
mov ecx, 0x4167b4
call fcn.00401372
mov edi, 0x4167c0
push esi
mov ecx, edi
call fcn.00401372
push esi
call fcn.00402d4e
xor esi, esi
cmp eax, esi
pop ecx
jl 0x4053a8
mov edx, dword [0x4167b4]
lea esi, [eax + eax]
xor ecx, ecx
mov word [esi + edx], cx
mov dword [0x4167b8], eax
mov eax, dword [0x4167e4]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401338
mov eax, dword [0x4167e4]
lea eax, [esi + eax + 2]
mov esi, 0x4167d8
push eax
mov ecx, esi
call fcn.00401338
push 0x2e
mov ecx, esi
call fcn.00402570
test eax, eax
jle 0x405375
mov edx, dword [0x4167d8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [0x4167dc], eax
push esi
mov esi, 0x4167cc
mov ecx, esi
call fcn.00401372
push 4
call fcn.00401fa0
pop ecx
push eax
mov ecx, esi
call fcn.0040253a
mov eax, dword [0x4167d8]
mov dword [0x41677c], eax
mov eax, dword [0x4167cc]
mov dword [0x416784], eax
xor esi, esi
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x4053bf
mov ecx, eax
call fcn.004046e4
mov edi, eax
jmp 0x4053c1
xor edi, edi
push edi
lea ecx, [ebp + 0x60]
call fcn.00403de7
push dword [0x4167e4]
mov ecx, edi
call fcn.0040dc96
test al, al
jne 0x405401
push dword [0x4167e4]
push 7
push 1
call fcn.004077a3
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x4053fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405199
lea ecx, [ebp + 0x48]
call fcn.0040259b
lea ecx, [ebp + 0x1c]
call fcn.0040259b
lea ecx, [ebp + 0x10]
call fcn.0040259b
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
movzx eax, word [0x41674c]
push eax
call fcn.00404f1a
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push edi
call fcn.00402833
add esp, 0x1c
test al, al
jne 0x405497
lea eax, [ebp + 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.00402833
add esp, 0x10
test al, al
jne 0x405497
push 9
push esi
call fcn.004077a3
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 0x405490
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405199
cmp dword [0x416810], esi
jne 0x40554f
push str.sfxconfig
push ebx
call fcn.00403d7b
pop ecx
pop ecx
cmp eax, esi
je 0x40554f
cmp word [eax], 0x3a
jne 0x4054c0
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405521
cmp cx, 0x20
ja 0x4054d8
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x4054c8
cmp word [eax], si
je 0x405521
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00404e05
pop ecx
pop ecx
test al, al
jne 0x405521
push 0xa
push esi
call fcn.004077a3
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 0x40551a
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405199
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 0x4050fd
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4050fd
lea ecx, [ebp + 0x28]
call fcn.0040e973
cmp dword [ebp + 0x4c], esi
je 0x40558e
push esi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040308c
add esp, 0xc
test al, al
jne 0x40558e
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 0x405510
cmp dword [0x416810], 4
je 0x405521
mov eax, dword [0x416058]
mov esi, 0x416058
jmp 0x405604
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.00401424
lea ecx, [ebp - 0x5c]
call fcn.00401424
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401338
push dword [esi]
call fcn.00401fa0
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401338
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x416384
call fcn.00402f65
lea ecx, [ebp - 0x68]
add esi, 0x10
call fcn.00401a79
mov eax, dword [esi]
test eax, eax
jne 0x4055a3
lea eax, [ebp + 0x28]
push eax
call fcn.00404274
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x58], ebx
cmp word [ebx], di
jbe 0x405632
inc ebx
inc ebx
cmp word [ebx], di
ja 0x40561f
jmp 0x40562f
cmp ax, di
ja 0x40563a
inc ebx
inc ebx
mov dword [ebp + 0x58], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405628
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x40564d
cmp ax, 0x2d
jne 0x40587c
lea esi, [ebx + 2]
cmp word [esi], 0x21
jne 0x405660
cmp word [ebx + 4], di
jbe 0x405865
push 0x414440
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x4056bd
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405683
cmp ax, 0x39
jbe 0x40569b
cmp ax, 0x61
jb 0x40568f
cmp ax, 0x7a
jbe 0x40569b
cmp ax, 0x41
jb 0x4056ab
cmp ax, 0x5a
ja 0x4056ab
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x40561a
cmp ax, di
ja 0x40587c
mov dword [ebp + 0x54], 0x4141ac
jmp 0x40569e
push 0x414438
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x4056e0
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x40579c
push 0x414430
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x405721
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40587c
cmp cx, 0x32
ja 0x40587c
cmp word [ebx + 8], di
ja 0x40587c
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.GUIMode
jmp 0x40579c
push 0x414428
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x405741
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x40579c
push 0x414420
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x405761
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x40579c
push 0x414418
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x4057a9
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x405788
cmp cx, 0x31
jne 0x40587c
cmp word [ebx + 8], di
ja 0x40587c
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.SelfDelete
call fcn.004044be
add esp, 0xc
jmp 0x40561a
push 0x414410
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x4057cd
cmp word [ebx + 6], di
ja 0x40587c
mov byte [ebp + 0x64], 1
jmp 0x40561a
push 0x414408
push esi
call fcn.00403b9e
pop ecx
pop ecx
test eax, eax
je 0x40580a
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x40587c
cmp cx, 0x39
ja 0x40587c
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x416358], eax
jmp 0x40561a
movzx eax, word [esi]
cmp ax, 0x79
je 0x405819
cmp ax, 0x59
jne 0x405828
cmp word [ebx + 4], di
ja 0x405828
mov byte [ebp + 0x66], 1
jmp 0x40561a
cmp ax, 0x3f
je 0x40583a
cmp ax, 0x68
je 0x40583a
cmp ax, 0x48
jne 0x405849
cmp word [ebx + 4], di
ja 0x405849
mov byte [ebp + 0x65], 1
jmp 0x40561a
lea eax, [ebp + 0x28]
push eax
push esi
call fcn.00404177
pop ecx
pop ecx
test eax, eax
je 0x40587c
cmp eax, 1
je 0x405893
mov ebx, eax
jmp 0x405617
add ebx, 4
jmp 0x405871
cmp ax, di
ja 0x40587c
inc ebx
inc ebx
movzx eax, word [ebx]
mov dword [ebp + 0x58], ebx
test ax, ax
jne 0x40586a
lea eax, [ebp + 0x28]
push eax
call fcn.00404274
and dword [ebp], 0
mov ebx, str.SetEnvironment
jmp 0x405934
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 0x4058bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x4050fd
push edi
lea ecx, [ebp - 0x10]
call fcn.00402501
push 0
push 0x3d
lea ecx, [ebp - 0x10]
call fcn.00402676
test eax, eax
jle 0x405951
mov edx, dword [ebp - 0x10]
xor ecx, ecx
lea esi, [eax + eax]
mov word [esi + edx], cx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xc], eax
call fcn.00401424
lea ecx, [ebp - 0x5c]
call fcn.00401424
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401372
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401338
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x416384
call fcn.00402f65
inc dword [ebp]
lea ecx, [ebp - 0x68]
call fcn.00401a79
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.00402440
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4058c2
jmp 0x40595a
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.0040405b
xor esi, esi
cmp dword [0x41634c], 0xffffffff
jne 0x405970
mov dword [0x41634c], esi
cmp byte [ebp + 0x65], 0
je 0x4059f4
push esi
lea eax, [ebp + 0x28]
push str.HelpText
push eax
call fcn.00402440
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x405998
push 0x18
call fcn.00401fa0
pop ecx
mov edi, eax
lea ecx, [ebp - 0x108]
call fcn.00403b4a
push esi
push edi
push dword [0x41677c]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.004073f8
lea ecx, [ebp - 0x108]
call fcn.00406699
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 0x4050fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4050fb
cmp byte [ebp + 0x66], 0
je 0x405a04
and dword [0x41634c], 0xfffffeff
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x28]
push str.InstallPath
push eax
call fcn.00402440
add esp, 0xc
mov esi, 0x4167a8
test eax, eax
je 0x405a2e
push eax
mov ecx, esi
call fcn.00401338
push esi
call fcn.00403b63
cmp dword [0x416818], 0
pop ecx
je 0x405a69
lea eax, [ebp + 0x28]
push eax
call fcn.004083e8
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 0x4058ae
cmp dword [0x416810], 3
jne 0x405a7d
lea eax, [ebp + 0x28]
push eax
call fcn.00408319
jmp 0x405a47
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x28]
push str.BeginPrompt
push eax
call fcn.00402440
add esp, 0xc
cmp eax, edi
je 0x405ad1
cmp byte [ebp + 0x66], 0
jne 0x405ad1
push eax
push dword [0x41677c]
call fcn.0040763e
pop ecx
pop ecx
test eax, eax
je 0x405bfa
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x405ad1
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x3c]
call fcn.00401424
cmp byte [ebp + 0x67], 0
je 0x405b5b
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401338
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.0040143c
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.00402440
add esp, 0xc
test eax, eax
je 0x405c29
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x405b25
cmp ax, 0x39
jbe 0x405ae2
cmp ax, 0x61
jb 0x405b31
cmp ax, 0x7a
jbe 0x405ae2
cmp ax, 0x41
jb 0x405b3d
cmp ax, 0x5a
jbe 0x405ae2
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401338
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.0040143c
xor edi, edi
mov byte [ebp + 0x65], 0
cmp dword [ebp + 0x40], edi
jne 0x405ba3
push edi
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.00402440
add esp, 0xc
test eax, eax
je 0x405b88
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00401338
mov byte [ebp + 0x65], 1
cmp dword [ebp + 0x40], edi
jne 0x405ba3
push edi
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.00402440
add esp, 0xc
test eax, eax
je 0x405ba3
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401338
cmp byte [ebp + 0x67], 0
jne 0x405c8e
cmp byte [ebp + 0x66], 0
jne 0x405c8e
mov eax, dword [0x41634c]
and eax, 0xc0
cmp al, 0x80
jne 0x405c8e
push dword [0x416770]
push dword [0x416774]
call fcn.004076a0
pop ecx
pop ecx
test eax, eax
jne 0x405c8e
push dword [ebp + 0x3c]
cmp byte [0x416798], al
je 0x405c6c
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405a89
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 0x405c22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405199
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.004077a3
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 0x405c65
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405199
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 0x405c15
cmp dword [0x4167ac], edi
jne 0x405cc4
lea eax, [ebp - 0x1c]
push str.7ZipSfx._03x
push eax
call fcn.00403faa
pop ecx
pop ecx
mov esi, 0x4167a8
push eax
mov ecx, esi
call fcn.00401372
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x416760], 0
jmp 0x405cfb
mov esi, 0x4167a8
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401306
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b63
pop ecx
cmp dword [ebp - 0x18], edi
jne 0x405cec
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00401372
push dword [ebp - 0x1c]
mov byte [0x416760], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x4167a8]
pop ecx
mov ecx, dword [0x4167ac]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405d18
cmp dx, 0x2f
jne 0x405d25
dec ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [0x4167ac], ecx
cmp byte [ebp + 0x66], 0
je 0x405d32
or dword [0x41678c], 3
cmp dword [0x41680c], edi
jne 0x405d48
push esi
mov esi, dword [ebp + 0x60]
push esi
call fcn.00404d4a
pop ecx
pop ecx
jmp 0x405d59
call fcn.00407899
mov esi, dword [ebp + 0x60]
test eax, eax
jne 0x405d96
mov eax, 0x80004005
cmp eax, edi
je 0x405d96
call fcn.00403e60
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 0x405d8f
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x405199
call fcn.0040405b
cmp byte [ebp + 0x64], 0
je 0x405dae
cmp byte [0x416760], 0
jne 0x406399
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00401424
cmp byte [ebp + 0x67], 0
jne 0x405dce
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004040b2
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.00401424
lea ecx, [ebp - 0x2c]
call fcn.00401424
cmp dword [ebp + 0x40], edi
jne 0x405ea0
cmp byte [0x416760], 0
jne 0x406220
mov edi, str.setup.exe
push edi
push 0x41350c
lea eax, [ebp - 0x5c]
push 0x4167a8
push eax
call fcn.00403f4f
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00403f4f
add esp, 0xc
push eax
lea ecx, [ebp + 4]
call fcn.00401372
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 0x406237
mov byte [ebp + 0x5e], 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401338
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b89
mov esi, dword [ebp - 0x2c]
pop ecx
xor edi, edi
push edi
push str.hidcon
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
je 0x405f26
mov esi, eax
mov byte [ebp + 0x5f], 1
jmp 0x405e81
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.00402440
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405e69
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
mov dword [ebp - 0x40], edi
cmp ax, 0x30
jb 0x405ed0
cmp ax, 0x39
jbe 0x405ef0
cmp ax, 0x61
jb 0x405edc
cmp ax, 0x7a
jbe 0x405ef0
cmp ax, 0x41
jb 0x406291
cmp ax, 0x5a
ja 0x406291
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401338
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.0040143c
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 0x405dd8
push edi
push str.nowait
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
je 0x405f48
mov esi, eax
mov al, byte [0x416760]
mov byte [ebp + 0x67], al
jmp 0x405e81
push edi
push str.forcenowait
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
je 0x405f66
mov esi, eax
mov byte [ebp + 0x67], 1
jmp 0x405e81
push 2
push 0x414408
push esi
call fcn.00403bd8
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x405f9c
cmp dword [0x416358], 0xffffffff
jne 0x405f95
add esi, 4
push esi
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x416358], eax
mov esi, ebx
jmp 0x405e81
push 3
push 0x414368
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
je 0x405fbc
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
jmp 0x405fda
push 3
push 0x414360
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
je 0x405fe1
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
mov esi, eax
jmp 0x405e81
push edi
push 0x414358
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
jne 0x40603b
push edi
push str.i386
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
jne 0x40603b
push edi
push 0x414340
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
jne 0x40602d
push edi
push 0x414338
push esi
call fcn.00403bd8
add esp, 0xc
cmp eax, edi
je 0x406049
mov esi, eax
mov dword [ebp - 0x20], 2
jmp 0x405e81
mov esi, eax
mov dword [ebp - 0x20], 1
jmp 0x405e81
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 4]
je 0x4060a4
cmp word [esi], 0x22
je 0x406077
mov ebx, 0x4141a0
push ebx
call fcn.00401338
push esi
lea ecx, [ebp + 4]
call fcn.0040253a
push ebx
lea ecx, [ebp + 4]
call fcn.0040253a
jmp 0x40607d
push esi
call fcn.00401338
push edi
lea eax, [ebp + 0x28]
push str.ExecuteParameters
push eax
call fcn.00402440
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4060b6
push 0x414334
lea ecx, [ebp + 4]
call fcn.0040253a
jmp 0x4060ad
lea eax, [ebp - 0x10]
push eax
call fcn.00401372
push esi
lea ecx, [ebp + 4]
call fcn.0040253a
lea ecx, [ebp - 0x1c]
call fcn.00401424
lea ecx, [ebp - 0x38]
call fcn.00401424
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x4167a8]
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 0x406115
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.00404108
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401338
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b89
mov eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xac], eax
cmp dword [0x416810], edi
jne 0x4061d5
push dword [ebp - 0x20]
call fcn.004021f0
pop ecx
test eax, eax
je 0x4061d5
mov esi, dword [ebp + 0x58]
cmp word [esi], di
je 0x406183
push 0x20
lea ecx, [ebp - 0x38]
call fcn.0040143c
push esi
lea ecx, [ebp - 0x38]
call fcn.0040253a
cmp word [esi], di
je 0x406183
inc esi
inc esi
cmp word [esi], di
jne 0x406179
mov dword [ebp + 0x58], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00403b89
pop ecx
cmp dword [ebp - 0x34], edi
je 0x40619b
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 0x4062a8
cmp byte [ebp + 0x67], 0
jne 0x4061c4
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.00402188
cmp byte [ebp + 0x65], 0
jne 0x406314
cmp byte [ebp + 0x5e], 0
jne 0x406314
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0xc], edi
mov word [ecx], ax
push dword [ebp - 0x38]
inc dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 0x60]
add esp, 0x10
jmp 0x405f1f
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 0x40633a
call fcn.00403e60
push 0xf
push 0
call fcn.004077a3
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 0x40628a
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 7
jmp 0x405199
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 0x406338
push ebx
push 0x10
push 1
call fcn.004077a3
call fcn.00403e60
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 0x40630d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405199
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 [0x416810], edi
jne 0x406390
call fcn.0040405b
push dword [ebp - 0x44]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Shortcut
push eax
push 0x404c7f
call fcn.0040454b
add esp, 0x14
push dword [0x4167b4]
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 0x40451c
call fcn.0040454b
add esp, 0x14
call fcn.00403e60
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x416358], 0xffffffff
jne 0x4063b2
cmp byte [ebp + 0x66], 0
jne 0x40641d
mov dword [0x416358], 1
cmp dword [0x416358], edi
jle 0x40641d
push 0
lea eax, [ebp + 0x28]
push str.FinishMessage
push eax
call fcn.00402440
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40641d
mov eax, 0x3e7
cmp dword [0x416358], eax
jle 0x4063e5
mov dword [0x416358], eax
lea ecx, [ebp - 0x110]
call fcn.00403f6d
push 0
push edi
push dword [0x41677c]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.004073f8
push dword [ebp - 0xd4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x110]
call fcn.00406699
cmp byte [ebp + 0x64], 0
jne 0x406460
cmp dword [0x416810], 0
jne 0x406460
push 0
lea eax, [ebp + 0x28]
push str.SelfDelete
push eax
call fcn.00402440
add esp, 0xc
test eax, eax
je 0x406460
cmp word [eax], 0x31
jne 0x406460
sub esp, 0xc
mov ecx, esp
push 0x4167e4
call fcn.00401306
call fcn.00404817
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 0x40648d
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.00403e1a
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 0x4064cb
push 0x10
push 0x414304
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