Function at 0x403998
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
mov ebp, esp
sub esp, 0x234
push ebx
push esi
lea eax, [ebp - 0x234]
push edi
push eax
mov dword [ebp - 0x234], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404fdb
push 2
pop edi
cmp dword [ebp - 0x224], edi
jne 0x404fdb
cmp dword [ebp - 0x230], 5
jb 0x404fdb
call fcn.004031fe
push 0xf
xor ebx, ebx
pop esi
lea ecx, [ebp - 0x88]
push esi
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
call fcn.00401838
push esi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
call fcn.00401838
or dword [ebp - 0xc0], 0xffffffff
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], 0x419728
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
mov byte [ebp - 4], bl
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.00401838
push esi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
call fcn.00401838
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004036bb
push str.sfxversion
push eax
mov dword [ebp - 0x24], eax
call fcn.0040392c
add esp, 0x10
test eax, eax
je 0x403aeb
lea ecx, [ebp - 0xfc]
mov dword [0x418e3c], 8
call fcn.0040510c
push ebx
push 1
mov dword [ebp - 0xfc], 0x414318
call fcn.004030b7
pop ecx
push eax
lea ecx, [ebp - 0xfc]
push dword [0x419714]
push 0x11
call fcn.00405b7b
lea ecx, [ebp - 0xfc]
call fcn.0040568e
jmp 0x404399
push str.sfxtest
push dword [ebp - 0x24]
call fcn.0040392c
pop ecx
cmp eax, ebx
pop ecx
je 0x403b91
cmp word [eax], 0x3a
jne 0x403b91
lea esi, [eax + 2]
push esi
call fcn.00401bfb
pop ecx
mov dword [0x419724], eax
mov cx, word [esi]
cmp cx, 0x30
jb 0x403b2e
cmp cx, 0x39
ja 0x403b2e
add esi, edi
jmp 0x403b1b
cmp word [esi], 0x3a
jne 0x403b4b
add esi, 2
push 0x4196f0
push esi
call fcn.004036bb
pop ecx
mov esi, eax
mov eax, dword [0x419724]
pop ecx
cmp eax, 1
mov dword [ebp - 0x24], esi
jl 0x403b58
cmp eax, 6
jle 0x403b62
xor eax, eax
mov dword [0x419724], eax
cmp eax, 6
jne 0x403b91
push dword [0x4196f0]
call fcn.00401bfb
sub eax, ebx
pop ecx
je 0x403b87
dec eax
je 0x403b7f
or ebx, 0xffffffff
jmp 0x404f28
push 0x23
pop ebx
jmp 0x404f28
mov ebx, 0x228
jmp 0x404f28
mov esi, 0x208
cmp dword [ebp - 0x60], esi
jg 0x403ba8
push 0x209
lea ecx, [ebp - 0x68]
call fcn.00401838
push esi
push dword [ebp - 0x68]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x403bc9
push 6
push 1
pop ebx
push ebx
call fcn.00406d83
pop ecx
pop ecx
jmp 0x404f28
push dword [ebp - 0x68]
call fcn.00405624
pop ecx
mov ecx, dword [ebp - 0x68]
mov word [ecx + eax*2], bx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
mov ecx, 0x4196d0
push eax
call fcn.00401751
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x403cb2
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax*2 - 2]
cmp word [eax], 0x5c
je 0x403c0a
cmp eax, ecx
je 0x403c10
sub eax, edi
jmp 0x403bfc
sub eax, ecx
sar eax, 1
jmp 0x403c13
or eax, 0xffffffff
cmp eax, ebx
jl 0x403cb2
mov ecx, dword [0x4196d0]
mov word [ecx + eax*2], bx
mov ecx, dword [ebp - 0x68]
mov dword [0x4196d4], eax
lea eax, [ecx + eax*2 + 2]
lea ecx, [ebp - 0xa0]
push eax
call fcn.004016f2
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
je 0x403c76
mov ecx, dword [ebp - 0xa0]
lea eax, [ecx + eax*2 - 2]
cmp word [eax], 0x2e
je 0x403c5f
cmp eax, ecx
je 0x403c65
sub eax, edi
jmp 0x403c51
sub eax, ecx
sar eax, 1
jmp 0x403c68
or eax, 0xffffffff
cmp eax, ebx
jle 0x403c76
mov word [ecx + eax*2], bx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x88]
push eax
call fcn.00401751
push 4
call fcn.004030b7
pop ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00402cfd
mov eax, dword [ebp - 0xa0]
mov dword [0x419714], eax
mov eax, dword [ebp - 0x88]
mov dword [0x419718], eax
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x403cc9
mov ecx, eax
call fcn.00405011
mov edi, eax
jmp 0x403ccb
xor edi, edi
cmp edi, ebx
mov dword [ebp - 8], edi
je 0x403cd8
mov eax, dword [edi]
push edi
call dword [eax + 4]
push dword [ebp - 0x68]
mov ecx, edi
call fcn.0040ed14
test al, al
jne 0x403d12
sub esp, 0xc
lea esi, [ebp - 0x68]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
push 1
movsd dword es:[edi], dword [esi]
call fcn.00406d83
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x403d0b
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 2
jmp 0x403b81
push 0xf
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00402fcf
lea eax, [ebp - 0x4c]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.00401c39
add esp, 0x10
test al, al
jne 0x403d64
push 9
push ebx
call fcn.00406d83
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, ebx
je 0x403d5d
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x403b81
push str.sfxconfig
push dword [ebp - 0x24]
call fcn.0040392c
pop ecx
cmp eax, ebx
pop ecx
je 0x403dbf
cmp word [eax], 0x3a
jne 0x403d7f
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
je 0x403d8d
cmp cx, 0x20
jbe 0x403d7d
cmp word [eax], bx
je 0x404fc2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.0040371b
pop ecx
test al, al
pop ecx
jne 0x404fc2
push 0xa
push ebx
call fcn.00406d83
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x403e03
lea ecx, [ebp - 0x20]
call fcn.004055af
cmp dword [ebp - 0x48], ebx
mov esi, 0x414310
mov dword [ebp - 0x20], esi
je 0x403e14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00401e27
pop ecx
test al, al
pop ecx
jne 0x403e14
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp edi, ebx
je 0x403e0d
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x403b81
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], ebx
push eax
lea eax, [ebp - 0x20]
push str.SetEnvironment
push eax
call fcn.0040223c
add esp, 0xc
mov edi, eax
cmp edi, ebx
je 0x403ee8
push edi
lea ecx, [ebp - 0x34]
call fcn.00402c9c
push ebx
push 0x3d
lea ecx, [ebp - 0x34]
call fcn.00402e9b
mov esi, eax
cmp esi, ebx
jle 0x403edf
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x114]
mov word [eax + esi*2], bx
mov dword [ebp - 0x30], esi
call fcn.00402c84
lea ecx, [ebp - 0x108]
call fcn.00402c84
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x114]
push eax
call fcn.00401751
lea eax, [edi + esi*2 + 2]
lea ecx, [ebp - 0x108]
push eax
call fcn.004016f2
lea eax, [ebp - 0x114]
mov ecx, 0x4196b8
push eax
call fcn.00402e3a
push dword [ebp - 0x108]
inc dword [ebp - 0x7c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x114]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x20]
push str.SetEnvironment
push eax
call fcn.0040223c
add esp, 0x18
jmp 0x403e2c
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.004034ea
push ebx
lea eax, [ebp - 0x20]
push str.Title
push eax
call fcn.0040223c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x403f36
push esi
lea ecx, [ebp - 0x88]
call fcn.004016f2
push 4
call fcn.004030b7
pop ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00402cfd
mov eax, dword [ebp - 0x88]
mov dword [0x419714], esi
mov dword [0x419718], eax
push ebx
lea eax, [ebp - 0x20]
push str.ErrorTitle
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x403f51
mov dword [0x419718], eax
push ebx
lea eax, [ebp - 0x20]
push str.ExtractTitle
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x403f6c
mov dword [0x419710], eax
push ebx
lea eax, [ebp - 0x20]
push str.Progress
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x403f9c
push 0x41926c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403f9c
mov dword [0x41971c], 2
push ebx
lea eax, [ebp - 0x20]
push str.GUIMode
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x403fcc
mov ax, word [eax]
cmp ax, 0x31
je 0x403fc1
cmp ax, 0x32
jne 0x403fcc
movzx eax, ax
sub eax, 0x30
mov dword [0x41971c], eax
push ebx
lea eax, [ebp - 0x20]
push str.OverwriteMode
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x40400c
movzx eax, word [eax]
sub eax, 0x30
dec eax
je 0x404002
dec eax
je 0x403ff6
mov dword [0x419720], ebx
jmp 0x40400c
mov dword [0x419720], 2
jmp 0x40400c
mov dword [0x419720], 1
push ebx
lea eax, [ebp - 0x20]
push str.GUIFlags
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x404029
push eax
call fcn.004035f6
pop ecx
push ebx
lea eax, [ebp - 0x20]
push str.ExtractCancelText
push eax
call fcn.0040223c
mov dword [0x419700], eax
push ebx
lea eax, [ebp - 0x20]
push str.ExtractDialogText
push eax
call fcn.0040223c
mov dword [0x4196fc], eax
push ebx
lea eax, [ebp - 0x20]
push str.ExtractDialogWidth
push eax
call fcn.0040223c
add esp, 0x24
cmp eax, ebx
je 0x404073
push eax
call fcn.00401bfb
pop ecx
mov dword [0x418e40], eax
push ebx
lea eax, [ebp - 0x20]
push str.ExtractPathWidth
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x404095
push eax
call fcn.00401bfb
pop ecx
mov dword [0x418e44], eax
push ebx
lea eax, [ebp - 0x20]
push str.ExtractPathTitle
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x4040b0
mov dword [0x41970c], eax
push ebx
lea eax, [ebp - 0x20]
push str.ExtractPathText
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x4040cb
mov dword [0x419708], eax
push ebx
lea eax, [ebp - 0x20]
push str.CancelPrompt
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x4040e6
mov dword [0x419704], eax
mov edi, dword [ebp - 0x24]
push 0x20
dec edi
pop esi
dec edi
cmp word [edi], si
jbe 0x4040f7
inc edi
inc edi
jmp 0x4040ee
mov ax, word [edi]
cmp ax, bx
je 0x404108
cmp ax, si
ja 0x404108
inc edi
inc edi
jmp 0x4040f7
mov ax, word [edi]
cmp ax, 0x2f
je 0x40411b
cmp ax, 0x2d
jne 0x4043cc
cmp word [edi + 2], 0x21
jne 0x40412c
cmp word [edi + 4], si
jbe 0x4042d5
push 0x419130
push edi
call fcn.004035dc
pop ecx
test eax, eax
pop ecx
je 0x40416f
mov cx, word [edi + 6]
lea eax, [edi + 6]
cmp cx, 0x30
jb 0x40415d
cmp cx, 0x39
ja 0x40415d
mov dword [ebp - 0x50], eax
mov byte [ebp - 2], 1
mov byte [ebp - 1], 1
jmp 0x4040ee
cmp cx, si
ja 0x4043cc
mov dword [ebp - 0x50], 0x419728
jmp 0x404153
push 0x419128
push edi
call fcn.004035dc
pop ecx
test eax, eax
pop ecx
je 0x4041b2
mov ax, word [edi + 6]
cmp ax, 0x30
jb 0x4043cc
cmp ax, 0x32
ja 0x4043cc
cmp word [edi + 8], si
ja 0x4043cc
movzx eax, ax
sub eax, 0x30
mov dword [0x419720], eax
jmp 0x4040ee
push 0x419120
push edi
call fcn.004035dc
pop ecx
test eax, eax
pop ecx
je 0x4041f5
mov ax, word [edi + 6]
cmp ax, 0x30
jb 0x4043cc
cmp ax, 0x32
ja 0x4043cc
cmp word [edi + 8], si
ja 0x4043cc
movzx eax, ax
sub eax, 0x30
mov dword [0x41971c], eax
jmp 0x4040ee
push 0x419118
push edi
call fcn.004035dc
pop ecx
test eax, eax
pop ecx
je 0x404215
lea eax, [edi + 6]
push eax
call fcn.004035f6
pop ecx
jmp 0x4040ee
push 0x419110
push edi
call fcn.004035dc
pop ecx
test eax, eax
pop ecx
je 0x404255
mov ax, word [edi + 6]
cmp ax, 0x30
je 0x40423a
cmp ax, 0x31
jne 0x4043cc
cmp word [edi + 8], si
ja 0x4043cc
movzx eax, ax
sub eax, 0x30
mov dword [ebp - 0xc0], eax
jmp 0x4040ee
push 0x419108
push edi
call fcn.004035dc
pop ecx
test eax, eax
pop ecx
je 0x404279
cmp word [edi + 6], si
ja 0x4043cc
mov byte [ebp - 4], 1
jmp 0x4040ee
push 0x419100
push edi
call fcn.004035dc
pop ecx
test eax, eax
pop ecx
je 0x4042b6
mov cx, word [edi + 6]
lea eax, [edi + 6]
cmp cx, 0x30
jb 0x4043cc
cmp cx, 0x39
ja 0x4043cc
push eax
call fcn.00401bfb
pop ecx
mov dword [0x418e48], eax
jmp 0x4040ee
mov ax, word [edi + 2]
cmp ax, 0x79
je 0x4042c6
cmp ax, 0x59
jne 0x4042f1
cmp word [edi + 4], si
ja 0x4042f1
mov byte [ebp - 2], 1
jmp 0x4040ee
add edi, 4
mov ax, word [edi]
cmp ax, bx
je 0x4043cc
cmp ax, si
ja 0x4043cc
inc edi
inc edi
jmp 0x4042d8
mov ax, word [edi + 2]
cmp ax, 0x3f
je 0x40430b
cmp ax, 0x68
je 0x40430b
cmp ax, 0x48
jne 0x4043cc
cmp word [edi + 4], si
ja 0x4043cc
push ebx
lea eax, [ebp - 0x20]
push str.HelpText
push eax
call fcn.0040223c
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x404337
push 0x18
call fcn.004030b7
pop ecx
mov esi, eax
lea ecx, [ebp - 0xfc]
call fcn.0040510c
push ebx
push esi
push dword [0x419714]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], 0x4142ec
push 0x11
call fcn.00405b7b
lea ecx, [ebp - 0xfc]
call fcn.0040568e
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x414310
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
cmp eax, ebx
je 0x404399
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0xbc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x68]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xa0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
jmp 0x404ff2
cmp byte [ebp - 2], bl
je 0x4043d8
and byte [0x418e3d], 0xfe
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
lea eax, [ebp - 0x20]
push str.InstallPath
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
mov esi, 0x4196e0
je 0x404402
push eax
mov ecx, esi
call fcn.004016f2
cmp dword [0x419724], 2
jne 0x404468
cmp dword [0x4196f4], ebx
je 0x40441f
push 0x4196f0
mov ecx, esi
call fcn.00401751
push dword [0x419708]
push dword [0x41970c]
call fcn.00406d29
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x414310
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
cmp eax, ebx
je 0x404f28
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404f28
mov esi, 0x4196e0
push esi
call fcn.004034b4
mov eax, dword [0x419724]
pop ecx
cmp eax, 5
je 0x404f5b
cmp eax, 3
je 0x404f75
cmp eax, 4
jne 0x4044ab
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.ErrorDialogTest.7z
push 7
push 1
call fcn.00406d83
add esp, 0xc
jmp 0x404432
push ebx
lea eax, [ebp - 0x20]
push str.BeginPrompt
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x404503
cmp byte [ebp - 2], bl
je 0x4044cf
cmp dword [0x419724], 1
jne 0x404503
push eax
push dword [0x419714]
call fcn.00406c84
pop ecx
test eax, eax
pop ecx
je 0x404574
cmp dword [0x419724], 1
je 0x404432
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x404503
mov byte [ebp - 1], 1
push 0xf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.00401838
cmp byte [ebp - 1], bl
je 0x4045ec
mov esi, dword [ebp - 0x50]
push str.AutoInstall
lea ecx, [ebp - 0x40]
call fcn.004016f2
mov eax, esi
mov ax, word [eax]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040178f
push ebx
lea eax, [ebp - 0x20]
push dword [ebp - 0x40]
push eax
call fcn.0040223c
add esp, 0xc
test eax, eax
je 0x404586
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x4045d0
cmp ax, 0x39
ja 0x4045d0
push str.AutoInstall
lea ecx, [ebp - 0x40]
call fcn.004016f2
mov ax, word [esi]
jmp 0x404534
cmp dword [0x419724], 1
jne 0x404674
jmp 0x404432
push dword [ebp - 0x40]
push 0xe
push ebx
call fcn.00406d83
push dword [ebp - 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x414310
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
cmp eax, ebx
je 0x4045c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x403b81
push str.AutoInstall
lea ecx, [ebp - 0x40]
call fcn.004016f2
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x40]
mov ax, word [eax]
push eax
call fcn.0040178f
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 9], bl
jne 0x40463d
mov esi, str.ExecuteFile
push ebx
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0040223c
add esp, 0xc
test eax, eax
je 0x404618
push esi
lea ecx, [ebp - 0x40]
call fcn.004016f2
mov byte [ebp - 9], 1
cmp dword [ebp - 0x3c], ebx
jne 0x40463d
mov esi, str.RunProgram
push ebx
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0040223c
add esp, 0xc
test eax, eax
je 0x40463d
push esi
lea ecx, [ebp - 0x40]
call fcn.004016f2
cmp byte [ebp - 1], bl
jne 0x4046a8
cmp byte [ebp - 2], bl
jne 0x4046a8
mov eax, dword [0x418e3c]
and ax, 0xc0
cmp al, 0x80
jne 0x4046a8
push dword [0x419708]
push dword [0x41970c]
call fcn.00406d29
pop ecx
test eax, eax
pop ecx
jne 0x4046a8
push dword [ebp - 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x414310
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
cmp eax, ebx
je 0x4046a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x403b81
cmp dword [0x4196e4], ebx
jne 0x4046d9
lea eax, [ebp - 0x34]
push str.7ZipSfx._03x
push eax
call fcn.0040338c
pop ecx
pop ecx
push eax
mov ecx, 0x4196e0
call fcn.00401751
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov byte [ebp - 3], bl
jmp 0x404710
push 0x4196e0
lea ecx, [ebp - 0x34]
call fcn.004016b8
lea eax, [ebp - 0x34]
push eax
call fcn.004034b4
cmp dword [ebp - 0x30], ebx
pop ecx
jne 0x404703
lea eax, [ebp - 0x34]
mov ecx, 0x4196e0
push eax
call fcn.00401751
push dword [ebp - 0x34]
mov byte [ebp - 3], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [0x4196e4]
mov eax, dword [0x4196e0]
mov dx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x40472c
cmp dx, 0x2f
jne 0x404737
dec ecx
mov word [eax + ecx*2], bx
mov dword [0x4196e4], ecx
mov esi, dword [ebp - 8]
push 0x4196e0
push esi
call fcn.0040511e
pop ecx
test eax, eax
pop ecx
je 0x404796
cmp byte [ebp - 3], bl
jne 0x40475c
push dword [0x4196e0]
call fcn.004024f2
pop ecx
push dword [ebp - 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x20], 0x414310
lea ecx, [ebp - 0x20]
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp esi, ebx
pop ecx
je 0x40478f
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 8
jmp 0x403b81
call fcn.004034ea
cmp byte [ebp - 4], bl
je 0x4047a9
cmp byte [ebp - 3], bl
jne 0x404e76
push 0xf
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
call fcn.00401838
cmp byte [ebp - 1], bl
jne 0x4047e2
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040367b
pop ecx
pop ecx
mov byte [ebp - 0x25], bl
push 0xf
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
mov byte [ebp - 1], bl
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.00401838
push 0xf
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call fcn.00401838
cmp dword [ebp - 0x3c], ebx
jne 0x4048cf
cmp byte [ebp - 3], bl
jne 0x404bdd
mov esi, str.setup.exe
lea eax, [ebp - 0x108]
push esi
push 0x418098
push 0x4196e0
push eax
call fcn.004055ca
add esp, 0xc
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.004055ca
add esp, 0xc
lea ecx, [ebp - 0x5c]
push eax
call fcn.00401751
push dword [ebp - 0x120]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x108]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404b6c
mov byte [ebp - 0x25], 1
push esi
lea ecx, [ebp - 0x94]
call fcn.004016f2
lea eax, [ebp - 0x94]
push eax
call fcn.004034cf
mov esi, dword [ebp - 0x94]
pop ecx
push ebx
push str.hidcon
push esi
call fcn.00403595
add esp, 0xc
cmp eax, ebx
je 0x40493d
mov esi, eax
mov byte [ebp - 4], 1
jmp 0x4048b4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
push dword [ebp - 0x40]
push eax
call fcn.0040223c
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x404895
mov esi, dword [ebp - 0x50]
inc esi
inc esi
mov dword [ebp - 0x50], esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x404bdd
cmp ax, 0x39
ja 0x404bdd
push str.AutoInstall
lea ecx, [ebp - 0x40]
call fcn.004016f2
mov ax, word [esi]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040178f
push dword [ebp - 0x94]
mov dword [ebp - 0x78], ebx
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
jmp 0x4047e5
push ebx
push 0x418ffc
push esi
call fcn.00403595
add esp, 0xc
cmp eax, ebx
je 0x40495d
mov esi, eax
mov al, byte [ebp - 3]
mov byte [ebp - 1], al
jmp 0x4048b4
push 1
push 0x419100
push esi
call fcn.00403595
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xa4], eax
je 0x40499a
cmp dword [0x418e48], 0xffffffff
jne 0x40498f
add esi, 4
push esi
call fcn.00401bfb
pop ecx
mov dword [0x418e48], eax
mov esi, dword [ebp - 0xa4]
jmp 0x4048b4
cmp byte [ebp - 9], bl
je 0x4049fa
cmp word [esi], 0x22
je 0x4049ca
push 0x418ff8
lea ecx, [ebp - 0x5c]
call fcn.004016f2
push esi
lea ecx, [ebp - 0x5c]
call fcn.00402cfd
push 0x418ff8
lea ecx, [ebp - 0x5c]
call fcn.00402cfd
jmp 0x4049d3
push esi
lea ecx, [ebp - 0x5c]
call fcn.004016f2
push ebx
lea eax, [ebp - 0x20]
push 0x418fd4
push eax
call fcn.0040223c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x404a12
push 0x418fd0
lea ecx, [ebp - 0x5c]
call fcn.00402cfd
jmp 0x404a09
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00401751
push esi
lea ecx, [ebp - 0x5c]
call fcn.00402cfd
push 0xf
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00401838
push 0xf
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00401838
push 0x3c
lea eax, [ebp - 0xfc]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x4196e0]
add esp, 0xc
cmp byte [ebp - 4], bl
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xf8], 0x740
mov dword [ebp - 0xe0], 1
je 0x404a86
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xf8], 0x8740
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x5c]
call fcn.004036bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.004016f2
cmp word [edi], bx
je 0x404abe
push 0x20
lea ecx, [ebp - 0x74]
call fcn.0040178f
push edi
lea ecx, [ebp - 0x74]
call fcn.00402cfd
cmp word [edi], bx
je 0x404abe
inc edi
inc edi
jmp 0x404ab5
lea eax, [ebp - 0x34]
push eax
call fcn.004034cf
lea eax, [ebp - 0x74]
push eax
call fcn.004034cf
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x70], ebx
pop ecx
mov dword [ebp - 0xec], eax
pop ecx
je 0x404ae9
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404cdf
cmp byte [ebp - 1], bl
jne 0x404b11
push 0xffffffffffffffff
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 9], bl
jne 0x404cb4
cmp byte [ebp - 0x25], bl
jne 0x404cb4
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], ebx
mov word [eax], bx
push dword [ebp - 0x74]
inc dword [ebp - 0x78]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x5c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4047e5
push dword [0x4196e0]
call fcn.004024f2
pop ecx
push 0xf
push ebx
call fcn.00406d83
push dword [ebp - 0x94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x5c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xb0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x414310
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
cmp eax, ebx
je 0x404bd6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 7
jmp 0x404d6f
push dword [ebp - 0x94]
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
lea eax, [ebp - 0x24]
mov edi, str.Shortcut
push eax
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp - 0x24], ebx
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x404da3
push eax
lea ecx, [ebp - 0x34]
call fcn.00402c9c
lea eax, [ebp - 0x34]
push 0x4196e0
push eax
call fcn.00402a11
lea eax, [ebp - 0x34]
push 0x4196d0
push eax
call fcn.00402b08
add esp, 0x10
xor esi, esi
cmp dword [0x4196c0], ebx
jle 0x404c8b
mov eax, dword [0x4196c4]
lea ecx, [ebp - 0x74]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.004016b8
lea eax, [ebp - 0x74]
push eax
call fcn.00401b4b
lea eax, [ebp - 0x74]
push eax
mov eax, dword [0x4196c4]
push dword [eax + esi*4]
lea eax, [ebp - 0x34]
push eax
call fcn.004038c6
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
inc esi
cmp esi, dword [0x4196c0]
jl 0x404c45
push dword [ebp - 0x34]
call fcn.004025c1
push dword [ebp - 0x34]
inc dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0040223c
add esp, 0x14
jmp 0x404c0b
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x5c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404bf2
sub esp, 0xc
lea esi, [ebp - 0x5c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 1
movsd dword es:[edi], dword [esi]
call fcn.00406d83
add esp, 0x14
cmp byte [ebp - 3], bl
jne 0x404d07
push dword [0x4196e0]
call fcn.004024f2
pop ecx
push dword [ebp - 0x74]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x34]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x94]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x5c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xb0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x414310
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 8]
pop ecx
cmp eax, ebx
je 0x404d6d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
pop esi
push dword [ebp - 0xbc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x68]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xa0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov eax, esi
jmp 0x404ff2
push dword [0x4196d0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x24]
mov edi, str.Delete
push eax
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp - 0x24], ebx
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x404e04
push eax
lea ecx, [ebp - 0x34]
call fcn.00402c9c
lea eax, [ebp - 0x34]
push eax
call fcn.004034cf
push dword [ebp - 0x34]
call fcn.004024f2
push dword [ebp - 0x34]
inc dword [ebp - 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0040223c
add esp, 0x18
jmp 0x404dc8
cmp byte [ebp - 3], bl
jne 0x404e15
push dword [0x4196e0]
call fcn.004024f2
pop ecx
mov eax, dword [ebp - 0xc0]
sub eax, ebx
je 0x404e67
dec eax
je 0x404e4b
push ebx
lea eax, [ebp - 0x20]
push str.SelfDelete
push eax
call fcn.0040223c
add esp, 0xc
cmp eax, ebx
je 0x404e67
cmp word [eax], 0x31
jne 0x404e67
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0xa4], esp
jmp 0x404e56
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea eax, [ebp - 0x68]
push eax
call fcn.004016b8
call fcn.004052f3
add esp, 0xc
push dword [ebp - 0xb0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 8]
pop ecx
cmp dword [0x418e48], 0xffffffff
jne 0x404e8e
cmp byte [ebp - 2], bl
jne 0x404ef5
mov dword [0x418e48], 1
cmp dword [0x418e48], ebx
jle 0x404ef5
push ebx
lea eax, [ebp - 0x20]
push str.FinishMessage
push eax
call fcn.0040223c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x404ef5
mov eax, 0x3e7
cmp dword [0x418e48], eax
jle 0x404ec0
mov dword [0x418e48], eax
lea ecx, [ebp - 0xf8]
call fcn.00405654
push ebx
push edi
push dword [0x419714]
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x4142c8
push 0x11
call fcn.00405b7b
lea ecx, [ebp - 0xf8]
call fcn.0040568e
push dword [ebp - 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x20], 0x414310
lea ecx, [ebp - 0x20]
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp esi, ebx
pop ecx
je 0x404f28
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0xbc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x68]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xa0]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x88]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov eax, ebx
jmp 0x404ff2
cmp dword [0x4196f4], ebx
je 0x404f75
mov edi, dword [ebp - 8]
push dword [0x4196f0]
mov ecx, edi
call fcn.0040ed14
jmp 0x404f78
mov edi, dword [ebp - 8]
push esi
push edi
call fcn.0040511e
pop ecx
mov dword [ebp - 0x20], 0x414310
pop ecx
test eax, eax
lea ecx, [ebp - 0x20]
je 0x404fb5
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
je 0x40478f
mov eax, dword [edi]
push edi
jmp 0x40478c
call fcn.00411248
lea ecx, [ebp - 0x20]
call fcn.00411224
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
je 0x404f28
mov eax, dword [edi]
push edi
jmp 0x404f25
push 0x10
push str.7_Zip_SFX
push str.Sorry__this_program_requires_Microsoft_Windows_2000_or_later.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x14
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10