Function at 0x404f5a
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 0x403d9c
call dword [0x4131c0]
pop ecx
call fcn.00401b50
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], 0x114
call dword [sym.imp.7_GetVersionExW]
test eax, eax
je 0x40644d
cmp dword [ebp - 0x228], 2
jne 0x40644d
cmp dword [ebp - 0x234], 5
jb 0x40644d
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], 0x414824
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.004013f8
lea ecx, [ebp - 0x80]
call fcn.004013f8
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], 0x414584
call fcn.00403e29
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.7_GetCommandLineW]
push eax
call fcn.004040b9
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.004024f3
lea eax, [ebp - 0x74]
push eax
call fcn.00402a0f
mov ebx, dword [ebp - 0x74]
add ebx, 2
mov dword [esp], str.sfxlang
push ebx
call fcn.00403d30
cmp eax, edi
pop ecx
pop ecx
je 0x40508d
cmp word [eax], 0x3a
jne 0x40508d
add eax, 2
push eax
call dword [0x4131cc]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405077
mov word [0x41774c], ax
jmp 0x405077
inc ebx
inc ebx
cmp word [ebx], si
ja 0x405075
jmp 0x405085
cmp ax, si
ja 0x40508d
inc ebx
inc ebx
movzx eax, word [ebx]
cmp ax, di
jne 0x40507e
call fcn.00404a78
push str.sfxversion
push ebx
call fcn.00403d30
test eax, eax
pop ecx
pop ecx
je 0x4050d4
call fcn.004045e5
xor esi, esi
push dword [ebp - 0x74]
call fcn.00412148
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403db3
push dword [ebp - 0x80]
call fcn.00412148
push dword [ebp - 0x50]
call fcn.00412148
pop ecx
pop ecx
mov eax, esi
jmp 0x406464
mov esi, 0x208
cmp dword [0x4177ec], esi
jg 0x4050ec
push esi
mov ecx, 0x4177e4
call fcn.00401112
push esi
push dword [0x4177e4]
push edi
call dword [sym.imp.7_GetModuleFileNameW]
test eax, eax
jne 0x40510d
xor esi, esi
inc esi
push 6
push esi
call fcn.0040775e
pop ecx
pop ecx
jmp 0x4050aa
mov esi, dword [0x4177e4]
push esi
call fcn.004010fe
mov word [esi + eax*2], di
mov dword [esp], str.sfxtest
push ebx
mov dword [0x4177e8], eax
call fcn.00403d30
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x405294
cmp word [esi], 0x3a
je 0x405149
push 0x64
pop esi
jmp 0x4050aa
movzx ecx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x405219
sub eax, ebx
je 0x405205
dec eax
je 0x405187
sub eax, ebx
je 0x40517d
sub eax, 0x10
jne 0x405141
mov esi, 0x478e
jmp 0x4050aa
mov esi, 0x2033
jmp 0x4050aa
cmp cx, 0x44
jne 0x4051c5
cmp word [esi + 4], 0x3a
jne 0x405141
add esi, 6
jmp 0x4051af
cmp ax, 0x3a
je 0x4051b8
movzx eax, ax
push eax
mov ecx, 0x417814
call fcn.00401410
add esi, ebx
movzx eax, word [esi]
cmp ax, 0x20
ja 0x405199
cmp dword [0x417818], edi
jne 0x4051c8
jmp 0x405141
add esi, 4
mov dword [0x41780c], edi
cmp word [esi], 0x3a
jne 0x4051ef
lea eax, [esi + 2]
push eax
call dword [0x4131cc]
cmp eax, 0xe10
pop ecx
mov dword [0x41780c], eax
ja 0x4051ef
cmp eax, edi
jne 0x4051f9
mov dword [0x41780c], 0xa
mov dword [0x417810], 1
jmp 0x405223
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x417810], eax
jmp 0x405223
mov dword [0x417810], ebx
jmp 0x405223
add esi, ebx
cmp word [esi], 0x20
ja 0x405221
jmp 0x405233
cmp ax, 0x20
ja 0x40523b
add esi, ebx
movzx eax, word [esi]
cmp ax, di
jne 0x40522b
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403d30
cmp eax, edi
pop ecx
pop ecx
je 0x405294
cmp word [eax], 0x3a
jne 0x40525e
jmp 0x40525c
cmp cx, 0x20
ja 0x405266
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405256
mov ecx, dword [ebp - 0x50]
mov word [ecx], di
lea ecx, [ebp - 0x50]
push ecx
push eax
mov dword [ebp - 0x4c], edi
call fcn.004040b9
cmp dword [0x417810], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405294
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x4177e4
call fcn.00401349
mov esi, 0x4177e4
push esi
mov ecx, 0x4177b4
call fcn.00401349
mov edi, 0x4177c0
push esi
mov ecx, edi
call fcn.00401349
push esi
call fcn.00402d00
xor esi, esi
cmp eax, esi
pop ecx
jl 0x40534c
mov ecx, dword [0x4177b4]
lea esi, [eax + eax]
and word [esi + ecx], 0
mov dword [0x4177b8], eax
mov eax, dword [0x4177e4]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00401310
mov eax, dword [0x4177e4]
lea eax, [esi + eax + 2]
mov esi, 0x4177d8
push eax
mov ecx, esi
call fcn.00401310
push 0x2e
mov ecx, esi
call fcn.00402529
test eax, eax
jle 0x405319
mov ecx, dword [0x4177d8]
and word [ecx + eax*2], 0
mov dword [0x4177dc], eax
push esi
mov esi, 0x4177cc
mov ecx, esi
call fcn.00401349
push 4
call fcn.00401fb6
pop ecx
push eax
mov ecx, esi
call fcn.004024f3
mov eax, dword [0x4177d8]
mov dword [0x41777c], eax
mov eax, dword [0x4177cc]
mov dword [0x417784], eax
xor esi, esi
push 0x10
call fcn.0041214e
cmp eax, esi
pop ecx
je 0x405363
mov ecx, eax
call fcn.00404693
mov edi, eax
jmp 0x405365
xor edi, edi
push edi
lea ecx, [ebp + 0x60]
call fcn.00408726
push dword [0x4177e4]
mov ecx, edi
call fcn.0040dc71
test al, al
jne 0x4053a5
push dword [0x4177e4]
push 7
push 1
call fcn.0040775e
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x40539e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405143
lea ecx, [ebp + 0x48]
call fcn.00402554
lea ecx, [ebp + 0x1c]
call fcn.00402554
lea ecx, [ebp + 0x10]
call fcn.00402554
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
movzx eax, word [0x41774c]
push eax
call fcn.00404eba
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push edi
call fcn.004027ea
add esp, 0x1c
test al, al
jne 0x40543b
lea eax, [ebp + 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.004027ea
add esp, 0x10
test al, al
jne 0x40543b
push 9
push esi
call fcn.0040775e
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0x14
cmp edi, esi
je 0x405434
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405143
cmp dword [0x417810], esi
jne 0x4054f3
push str.sfxconfig
push ebx
call fcn.00403d30
cmp eax, esi
pop ecx
pop ecx
je 0x4054f3
cmp word [eax], 0x3a
jne 0x405464
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x4054c5
cmp cx, 0x20
ja 0x40547c
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x40546c
cmp word [eax], si
je 0x4054c5
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.00404da7
test al, al
pop ecx
pop ecx
jne 0x4054c5
push 0xa
push esi
call fcn.0040775e
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0x14
cmp edi, esi
je 0x4054be
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405143
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0xc
cmp edi, esi
je 0x4050aa
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4050aa
lea ecx, [ebp + 0x28]
call fcn.0040e909
cmp dword [ebp + 0x4c], esi
je 0x405532
push esi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0040303c
add esp, 0xc
test al, al
jne 0x405532
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0xc
jmp 0x4054b4
cmp dword [0x417810], 4
je 0x4054c5
mov eax, dword [0x417058]
mov esi, 0x417058
jmp 0x4055a8
push eax
lea eax, [ebp - 0x124]
push str.7zSfxString_d
push eax
call dword [0x413258]
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.004013f8
lea ecx, [ebp - 0x5c]
call fcn.004013f8
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401310
push dword [esi]
call fcn.00401fb6
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401310
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x417384
call fcn.00402f15
lea ecx, [ebp - 0x68]
add esi, 0x10
call fcn.00401a79
mov eax, dword [esi]
test eax, eax
jne 0x405547
lea eax, [ebp + 0x28]
push eax
call fcn.00404223
pop ecx
dec ebx
push 0x20
dec ebx
pop edi
mov dword [ebp + 0x58], ebx
cmp word [ebx], di
jbe 0x4055d6
inc ebx
inc ebx
cmp word [ebx], di
ja 0x4055c3
jmp 0x4055d3
cmp ax, di
ja 0x4055de
inc ebx
inc ebx
mov dword [ebp + 0x58], ebx
movzx eax, word [ebx]
test ax, ax
jne 0x4055cc
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x4055f1
cmp ax, 0x2d
jne 0x405820
lea esi, [ebx + 2]
cmp word [esi], 0x21
jne 0x405604
cmp word [ebx + 4], di
jbe 0x405809
push 0x414aac
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x405661
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405627
cmp ax, 0x39
jbe 0x40563f
cmp ax, 0x61
jb 0x405633
cmp ax, 0x7a
jbe 0x40563f
cmp ax, 0x41
jb 0x40564f
cmp ax, 0x5a
ja 0x40564f
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x66], 1
mov byte [ebp + 0x67], 1
jmp 0x4055be
cmp ax, di
ja 0x405820
mov dword [ebp + 0x54], 0x414824
jmp 0x405642
push 0x414aa4
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x405684
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x405740
push 0x414a9c
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x4056c5
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405820
cmp cx, 0x32
ja 0x405820
cmp word [ebx + 8], di
ja 0x405820
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.GUIMode
jmp 0x405740
push 0x414a94
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x4056e5
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405740
push 0x414a8c
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x405705
lea eax, [ebp + 0x28]
push eax
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x405740
push 0x414a84
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x40574d
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
je 0x40572c
cmp cx, 0x31
jne 0x405820
cmp word [ebx + 8], di
ja 0x405820
lea ecx, [ebp + 0x28]
push ecx
push eax
push str.SelfDelete
call fcn.0040446d
add esp, 0xc
jmp 0x4055be
push 0x414a7c
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x405771
cmp word [ebx + 6], di
ja 0x405820
mov byte [ebp + 0x64], 1
jmp 0x4055be
push 0x414a74
push esi
call fcn.00403b53
test eax, eax
pop ecx
pop ecx
je 0x4057ae
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405820
cmp cx, 0x39
ja 0x405820
push eax
call dword [0x4131cc]
pop ecx
mov dword [0x417358], eax
jmp 0x4055be
movzx eax, word [esi]
cmp ax, 0x79
je 0x4057bd
cmp ax, 0x59
jne 0x4057cc
cmp word [ebx + 4], di
ja 0x4057cc
mov byte [ebp + 0x66], 1
jmp 0x4055be
cmp ax, 0x3f
je 0x4057de
cmp ax, 0x68
je 0x4057de
cmp ax, 0x48
jne 0x4057ed
cmp word [ebx + 4], di
ja 0x4057ed
mov byte [ebp + 0x65], 1
jmp 0x4055be
lea eax, [ebp + 0x28]
push eax
push esi
call fcn.00404128
test eax, eax
pop ecx
pop ecx
je 0x405820
cmp eax, 1
je 0x405837
mov ebx, eax
jmp 0x4055bb
add ebx, 4
jmp 0x405815
cmp ax, di
ja 0x405820
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
mov dword [ebp + 0x58], ebx
jne 0x40580e
lea eax, [ebp + 0x28]
push eax
call fcn.00404223
and dword [ebp], 0
mov ebx, str.SetEnvironment
jmp 0x4058d7
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0xc
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x40585f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x4050aa
push edi
lea ecx, [ebp - 0x10]
call fcn.004024ba
push 0
push 0x3d
lea ecx, [ebp - 0x10]
call fcn.0040262f
test eax, eax
jle 0x4058f4
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.004013f8
lea ecx, [ebp - 0x5c]
call fcn.004013f8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.00401349
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401310
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x417384
call fcn.00402f15
inc dword [ebp]
lea ecx, [ebp - 0x68]
call fcn.00401a79
push dword [ebp - 0x10]
call fcn.00412148
lea eax, [ebp]
push eax
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.004023f9
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x405866
jmp 0x4058fd
push dword [ebp - 0x10]
call fcn.00412148
pop ecx
call fcn.0040400c
xor esi, esi
cmp dword [0x41734c], 0xffffffff
jne 0x405913
mov dword [0x41734c], esi
cmp byte [ebp + 0x65], 0
je 0x405997
push esi
lea eax, [ebp + 0x28]
push str.HelpText
push eax
call fcn.004023f9
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x40593b
push 0x18
call fcn.00401fb6
pop ecx
mov edi, eax
lea ecx, [ebp - 0x108]
call fcn.00403ae9
push esi
push edi
push dword [0x41777c]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.004073b9
lea ecx, [ebp - 0x108]
call fcn.00406632
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x4050a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4050a8
cmp byte [ebp + 0x66], 0
je 0x4059a7
and dword [0x41734c], 0xfffffeff
push esi
call dword [0x413300]
push esi
lea eax, [ebp + 0x28]
push str.InstallPath
push eax
call fcn.004023f9
add esp, 0xc
test eax, eax
mov esi, 0x4177a8
je 0x4059d1
push eax
mov ecx, esi
call fcn.00401310
push esi
call fcn.00403b02
cmp dword [0x417818], 0
pop ecx
je 0x405a0c
lea eax, [ebp + 0x28]
push eax
call fcn.0040839e
push dword [ebp + 0x10]
mov edi, eax
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0x10
jmp 0x405852
cmp dword [0x417810], 3
jne 0x405a20
lea eax, [ebp + 0x28]
push eax
call fcn.004082d1
jmp 0x4059ea
mov ebx, str.ExecuteFile
mov esi, str.RunProgram
xor edi, edi
push edi
lea eax, [ebp + 0x28]
push str.BeginPrompt
push eax
call fcn.004023f9
add esp, 0xc
cmp eax, edi
je 0x405a6f
cmp byte [ebp + 0x66], 0
jne 0x405a6f
push eax
push dword [0x41777c]
call fcn.004075fb
test eax, eax
pop ecx
pop ecx
je 0x405b97
push 0x10
call dword [0x4132c4]
test ax, ax
jns 0x405a6f
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x3c]
call fcn.004013f8
cmp byte [ebp + 0x67], 0
je 0x405af9
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401310
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401410
push 0
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.004023f9
add esp, 0xc
test eax, eax
je 0x405bc6
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x405ac3
cmp ax, 0x39
jbe 0x405a80
cmp ax, 0x61
jb 0x405acf
cmp ax, 0x7a
jbe 0x405a80
cmp ax, 0x41
jb 0x405adb
cmp ax, 0x5a
jbe 0x405a80
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401310
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401410
xor edi, edi
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 0
jne 0x405b41
push edi
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.004023f9
add esp, 0xc
test eax, eax
je 0x405b26
push ebx
lea ecx, [ebp + 0x3c]
call fcn.00401310
cmp dword [ebp + 0x40], edi
mov byte [ebp + 0x65], 1
jne 0x405b41
push edi
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.004023f9
add esp, 0xc
test eax, eax
je 0x405b41
push esi
lea ecx, [ebp + 0x3c]
call fcn.00401310
cmp byte [ebp + 0x67], 0
jne 0x405c2b
cmp byte [ebp + 0x66], 0
jne 0x405c2b
mov eax, dword [0x41734c]
and ax, 0xc0
cmp al, 0x80
jne 0x405c2b
push dword [0x417770]
push dword [0x417774]
call fcn.0040765c
test eax, eax
pop ecx
pop ecx
jne 0x405c2b
cmp byte [0x417798], al
push dword [ebp + 0x3c]
je 0x405c09
call fcn.00412148
pop ecx
jmp 0x405a2c
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0xc
mov eax, dword [ebp + 0x60]
cmp eax, edi
je 0x405bbf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405143
push dword [ebp + 0x3c]
push 0xe
push 0
call fcn.0040775e
push dword [ebp + 0x3c]
call fcn.00412148
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
mov eax, dword [ebp + 0x60]
add esp, 0x1c
test eax, eax
je 0x405c02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405143
call fcn.00412148
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0x10
jmp 0x405bb2
cmp dword [0x4177ac], edi
jne 0x405c61
lea eax, [ebp - 0x1c]
push str.7ZipSfx._03x
push eax
call fcn.00403f5d
pop ecx
pop ecx
mov esi, 0x4177a8
push eax
mov ecx, esi
call fcn.00401349
push dword [ebp - 0x1c]
call fcn.00412148
mov byte [0x417760], 0
jmp 0x405c98
mov esi, 0x4177a8
push esi
lea ecx, [ebp - 0x1c]
call fcn.004012de
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b02
cmp dword [ebp - 0x18], edi
pop ecx
jne 0x405c89
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00401349
push dword [ebp - 0x1c]
mov byte [0x417760], 1
call fcn.00412148
mov eax, dword [0x4177a8]
pop ecx
mov ecx, dword [0x4177ac]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x405cb5
cmp dx, 0x2f
jne 0x405cc0
dec ecx
mov word [eax + ecx*2], di
mov dword [0x4177ac], ecx
cmp byte [ebp + 0x66], 0
je 0x405ccd
or dword [0x41778c], 3
cmp dword [0x41780c], edi
jne 0x405ce3
push esi
mov esi, dword [ebp + 0x60]
push esi
call fcn.00404cec
pop ecx
pop ecx
jmp 0x405cf4
call fcn.00407853
test eax, eax
mov esi, dword [ebp + 0x60]
jne 0x405d31
mov eax, 0x80004005
cmp eax, edi
je 0x405d31
call fcn.00403e13
push dword [ebp + 0x3c]
call fcn.00412148
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0x10
cmp esi, edi
je 0x405d2a
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x405143
call fcn.0040400c
cmp byte [ebp + 0x64], 0
je 0x405d49
cmp byte [0x417760], 0
jne 0x406332
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.004013f8
cmp byte [ebp + 0x67], 0
jne 0x405d69
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.00404063
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.004013f8
lea ecx, [ebp - 0x2c]
call fcn.004013f8
cmp dword [ebp + 0x40], edi
jne 0x405e3b
cmp byte [0x417760], 0
jne 0x4061b9
mov edi, str.setup.exe
push edi
push 0x41350c
lea eax, [ebp - 0x5c]
push 0x4177a8
push eax
call fcn.00403f02
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00403f02
add esp, 0xc
push eax
lea ecx, [ebp + 4]
call fcn.00401349
push dword [ebp - 0xc8]
call fcn.00412148
push dword [ebp - 0x5c]
call fcn.00412148
pop ecx
pop ecx
push dword [ebp + 4]
call dword [sym.imp.7_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4061d0
mov byte [ebp + 0x5e], 1
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401310
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b30
mov esi, dword [ebp - 0x2c]
pop ecx
xor edi, edi
push edi
push str.hidcon
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
je 0x405ec1
mov esi, eax
mov byte [ebp + 0x5f], 1
jmp 0x405e1c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x3c]
lea eax, [ebp + 0x28]
push eax
call fcn.004023f9
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x405e04
mov edi, dword [ebp - 0x40]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
mov dword [ebp - 0x40], edi
jb 0x405e6b
cmp ax, 0x39
jbe 0x405e8b
cmp ax, 0x61
jb 0x405e77
cmp ax, 0x7a
jbe 0x405e8b
cmp ax, 0x41
jb 0x40622a
cmp ax, 0x5a
ja 0x40622a
push str.AutoInstall
lea ecx, [ebp + 0x3c]
call fcn.00401310
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401410
push dword [ebp - 0x2c]
and dword [ebp - 4], 0
call fcn.00412148
push dword [ebp + 4]
call fcn.00412148
pop ecx
pop ecx
xor edi, edi
jmp 0x405d73
push edi
push str.nowait
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
je 0x405ee3
mov esi, eax
mov al, byte [0x417760]
mov byte [ebp + 0x67], al
jmp 0x405e1c
push edi
push str.forcenowait
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
je 0x405f01
mov esi, eax
mov byte [ebp + 0x67], 1
jmp 0x405e1c
push 2
push 0x414a74
push esi
call fcn.00403b8d
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x405f37
cmp dword [0x417358], 0xffffffff
jne 0x405f30
add esi, 4
push esi
call dword [0x4131cc]
pop ecx
mov dword [0x417358], eax
mov esi, ebx
jmp 0x405e1c
push 3
push 0x4149d4
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
je 0x405f57
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
jmp 0x405f75
push 3
push 0x4149cc
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
je 0x405f7c
movzx ecx, word [esi + 6]
sub ecx, 0x30
mov dword [ebp - 0x3c], ecx
mov esi, eax
jmp 0x405e1c
push edi
push 0x4149c4
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
jne 0x405fd6
push edi
push str.i386
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
jne 0x405fd6
push edi
push 0x4149ac
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
jne 0x405fc8
push edi
push 0x4149a4
push esi
call fcn.00403b8d
add esp, 0xc
cmp eax, edi
je 0x405fe4
mov esi, eax
mov dword [ebp - 0x20], 2
jmp 0x405e1c
mov esi, eax
mov dword [ebp - 0x20], 1
jmp 0x405e1c
cmp byte [ebp + 0x65], 0
lea ecx, [ebp + 4]
je 0x40603f
cmp word [esi], 0x22
je 0x406012
mov ebx, 0x414818
push ebx
call fcn.00401310
push esi
lea ecx, [ebp + 4]
call fcn.004024f3
push ebx
lea ecx, [ebp + 4]
call fcn.004024f3
jmp 0x406018
push esi
call fcn.00401310
push edi
lea eax, [ebp + 0x28]
push str.ExecuteParameters
push eax
call fcn.004023f9
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x406051
push 0x4149a0
lea ecx, [ebp + 4]
call fcn.004024f3
jmp 0x406048
lea eax, [ebp - 0x10]
push eax
call fcn.00401349
push esi
lea ecx, [ebp + 4]
call fcn.004024f3
lea ecx, [ebp - 0x1c]
call fcn.004013f8
lea ecx, [ebp - 0x38]
call fcn.004013f8
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call fcn.004121de
mov eax, dword [0x4177a8]
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 0x4060b0
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.004040b9
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00401310
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b30
cmp dword [0x417810], edi
mov eax, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xac], eax
jne 0x406170
push dword [ebp - 0x20]
call fcn.004021a9
test eax, eax
pop ecx
je 0x406170
mov esi, dword [ebp + 0x58]
cmp word [esi], di
je 0x40611e
push 0x20
lea ecx, [ebp - 0x38]
call fcn.00401410
push esi
lea ecx, [ebp - 0x38]
call fcn.004024f3
cmp word [esi], di
je 0x40611e
inc esi
inc esi
cmp word [esi], di
jne 0x406114
mov dword [ebp + 0x58], esi
lea eax, [ebp - 0x38]
push eax
call fcn.00403b30
cmp dword [ebp - 0x34], edi
pop ecx
je 0x406136
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xbc]
push eax
call dword [0x41322c]
test eax, eax
je 0x406241
cmp byte [ebp + 0x67], 0
jne 0x40615f
push 0xffffffffffffffff
push dword [ebp - 0x84]
call dword [sym.imp.7_WaitForSingleObject]
push dword [ebp - 0x84]
call dword [sym.imp.7_CloseHandle]
call fcn.00402141
cmp byte [ebp + 0x65], 0
jne 0x4062ad
cmp byte [ebp + 0x5e], 0
jne 0x4062ad
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov word [eax], di
push dword [ebp - 0x38]
inc dword [ebp - 4]
call fcn.00412148
push dword [ebp - 0x1c]
call fcn.00412148
push dword [ebp - 0x2c]
call fcn.00412148
push ebx
call fcn.00412148
mov esi, dword [ebp + 0x60]
add esp, 0x10
jmp 0x405eba
push dword [ebp - 0x2c]
call fcn.00412148
push dword [ebp + 4]
call fcn.00412148
pop ecx
pop ecx
jmp 0x4062d3
call fcn.00403e13
push 0xf
push 0
call fcn.0040775e
push dword [ebp - 0x2c]
call fcn.00412148
push dword [ebp + 4]
call fcn.00412148
push dword [ebp - 0x10]
call fcn.00412148
push dword [ebp + 0x3c]
call fcn.00412148
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0x24
test esi, esi
je 0x406223
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 7
jmp 0x405143
push dword [ebp - 0x2c]
call fcn.00412148
push dword [ebp + 4]
call fcn.00412148
pop ecx
pop ecx
jmp 0x4062d1
push ebx
push 0x10
push 1
call fcn.0040775e
call fcn.00403e13
push dword [ebp - 0x38]
call fcn.00412148
push dword [ebp - 0x1c]
call fcn.00412148
push dword [ebp - 0x2c]
call fcn.00412148
push ebx
call fcn.00412148
push dword [ebp - 0x10]
call fcn.00412148
push dword [ebp + 0x3c]
call fcn.00412148
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
mov eax, dword [ebp + 0x60]
add esp, 0x30
cmp eax, edi
je 0x4062a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405143
push dword [ebp - 0x38]
call fcn.00412148
push dword [ebp - 0x1c]
call fcn.00412148
push dword [ebp - 0x2c]
call fcn.00412148
push ebx
call fcn.00412148
mov esi, dword [ebp + 0x60]
add esp, 0x10
xor edi, edi
cmp dword [0x417810], edi
jne 0x406329
call fcn.0040400c
push dword [ebp - 0x44]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Shortcut
push eax
push 0x404c21
call fcn.004044fa
add esp, 0x14
push dword [0x4177b4]
call dword [sym.imp.7_SetCurrentDirectoryW]
push dword [ebp - 0x3c]
lea eax, [ebp + 0x28]
push dword [ebp + 0x54]
push str.Delete
push eax
push 0x4044cb
call fcn.004044fa
add esp, 0x14
call fcn.00403e13
push dword [ebp - 0x10]
call fcn.00412148
pop ecx
cmp dword [0x417358], 0xffffffff
jne 0x40634b
cmp byte [ebp + 0x66], 0
jne 0x4063b6
mov dword [0x417358], 1
cmp dword [0x417358], edi
jle 0x4063b6
push 0
lea eax, [ebp + 0x28]
push str.FinishMessage
push eax
call fcn.004023f9
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4063b6
mov eax, 0x3e7
cmp dword [0x417358], eax
jle 0x40637e
mov dword [0x417358], eax
lea ecx, [ebp - 0x110]
call fcn.00403f20
push 0
push edi
push dword [0x41777c]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.004073b9
push dword [ebp - 0xd4]
call fcn.00412148
pop ecx
lea ecx, [ebp - 0x110]
call fcn.00406632
cmp byte [ebp + 0x64], 0
jne 0x4063f9
cmp dword [0x417810], 0
jne 0x4063f9
push 0
lea eax, [ebp + 0x28]
push str.SelfDelete
push eax
call fcn.004023f9
add esp, 0xc
test eax, eax
je 0x4063f9
cmp word [eax], 0x31
jne 0x4063f9
sub esp, 0xc
mov ecx, esp
push 0x4177e4
call fcn.004012de
call fcn.004047c0
add esp, 0xc
push dword [ebp + 0x3c]
call fcn.00412148
push dword [ebp + 0x10]
call fcn.00412148
push dword [ebp + 0x1c]
call fcn.00412148
push dword [ebp + 0x48]
call fcn.00412148
add esp, 0x10
test esi, esi
je 0x406426
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x74]
call fcn.00412148
pop ecx
lea ecx, [ebp + 0x28]
call fcn.00403db3
push dword [ebp - 0x80]
call fcn.00412148
push dword [ebp - 0x50]
call fcn.00412148
pop ecx
pop ecx
xor eax, eax
jmp 0x406464
push 0x10
push str.7_Zip_SFX
push str.Sorry__this_program_requires_Microsoft_Windows_2000_or_later.
push 0
call dword [0x4132cc]
push 0x14
pop eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10