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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2cc
push ebx
push esi
push edi
call fcn.00401a47
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x264], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40566a
push 2
pop edi
cmp dword [ebp - 0x254], edi
jne 0x40566a
cmp dword [ebp - 0x260], 5
jb 0x40566a
call fcn.00403a9e
lea ecx, [ebp - 0x60]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
call fcn.00401323
lea ecx, [ebp - 0x6c]
call fcn.00401323
or dword [ebp - 0x20], 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x30]
mov dword [ebp + 0xc], 0x4130a8
mov byte [ebp + 0x5e], bl
mov byte [ebp + 0x67], bl
mov byte [ebp + 0x5c], bl
mov byte [ebp + 0x5d], bl
call fcn.00401323
lea ecx, [ebp - 0x78]
call fcn.00401323
lea ecx, [ebp - 0xd8]
call fcn.00401323
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00403631
push str.sfxversion
push eax
mov dword [ebp + 0x60], eax
call fcn.0040322b
add esp, 0x10
test eax, eax
je 0x404199
lea ecx, [ebp - 0x114]
mov dword [0x416240], 8
call fcn.0040331f
push 1
call fcn.00402fe5
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.00401c72
xor esi, esi
cmp dword [0x4166a0], ebx
jbe 0x404169
cmp esi, ebx
je 0x40414e
push 0x413088
lea ecx, [ebp - 0xc]
call fcn.0040231c
mov eax, dword [esi*4 + 0x4165a0]
push dword [eax + 0x10]
lea ecx, [ebp - 0xc]
call fcn.0040231c
inc esi
cmp esi, dword [0x4166a0]
jb 0x40413d
push ebx
push dword [ebp - 0xc]
lea ecx, [ebp - 0x114]
push dword [0x416540]
push 0x11
call fcn.00405822
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x114]
call fcn.00403355
jmp 0x405636
mov esi, 0x208
cmp dword [ebp - 0x28], esi
jg 0x4041b0
push 0x209
lea ecx, [ebp - 0x30]
call fcn.00401106
push esi
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4041d1
xor esi, esi
inc esi
push 6
push esi
call fcn.0040636e
pop ecx
pop ecx
jmp 0x405638
lea ecx, [ebp - 0x30]
call fcn.00401cc4
push str.sfxtest
push dword [ebp + 0x60]
call fcn.0040322b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x404343
cmp word [esi], 0x3a
je 0x404200
push 0x64
pop esi
jmp 0x405638
mov cx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
je 0x4042c9
sub eax, edi
je 0x4042b5
dec eax
je 0x40423b
sub eax, edi
je 0x404231
sub eax, 0x10
jne 0x4041f8
mov esi, 0x43d9
jmp 0x405638
mov esi, 0x2033
jmp 0x405638
cmp cx, 0x44
jne 0x404275
cmp word [esi + 4], 0x3a
jne 0x4041f8
add esi, 6
jmp 0x404260
cmp ax, 0x3a
je 0x40426b
push eax
mov ecx, 0x41658c
call fcn.0040133b
add esi, edi
xor eax, eax
mov ax, word [esi]
cmp ax, 0x20
ja 0x40424d
cmp dword [0x416590], ebx
jne 0x404278
jmp 0x4041f8
add esi, 4
mov dword [0x416584], ebx
cmp word [esi], 0x3a
jne 0x40429f
lea eax, [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x416584], eax
ja 0x40429f
cmp eax, ebx
jne 0x4042a9
mov dword [0x416584], 0xa
mov dword [0x416588], 1
jmp 0x4042d3
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x416588], eax
jmp 0x4042d3
mov dword [0x416588], edi
jmp 0x4042d3
add esi, edi
cmp word [esi], 0x20
ja 0x4042d1
jmp 0x4042e3
cmp ax, 0x20
ja 0x4042eb
add esi, edi
mov ax, word [esi]
cmp ax, bx
jne 0x4042db
push str.sfxconfig
push esi
mov dword [ebp + 0x60], esi
call fcn.0040322b
cmp eax, ebx
pop ecx
pop ecx
je 0x404343
cmp word [eax], 0x3a
jne 0x40430f
jmp 0x40430d
cmp cx, 0x20
ja 0x404317
add eax, edi
mov cx, word [eax]
cmp cx, bx
jne 0x404307
mov ecx, dword [ebp - 0x78]
mov word [ecx], bx
lea ecx, [ebp - 0x78]
push ecx
push eax
mov dword [ebp - 0x74], ebx
call fcn.00403631
cmp dword [0x416588], edi
pop ecx
pop ecx
mov dword [ebp + 0x60], eax
je 0x404343
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401274
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x41655c
call fcn.00401274
lea eax, [ebp - 0x30]
push eax
call fcn.004022f9
cmp eax, ebx
pop ecx
jl 0x4043c4
mov edx, dword [0x41655c]
lea ecx, [eax + eax]
mov word [ecx + edx], bx
mov dword [0x416560], eax
mov eax, dword [ebp - 0x30]
lea eax, [ecx + eax + 2]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040123b
push 0x2e
lea ecx, [ebp - 0x6c]
call fcn.00401cdc
cmp eax, ebx
mov esi, dword [ebp - 0x6c]
jle 0x404399
mov word [esi + eax*2], bx
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00401274
push 4
call fcn.00402fe5
pop ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040231c
mov eax, dword [ebp - 0x60]
mov dword [0x416540], esi
mov dword [0x416544], eax
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4043db
mov ecx, eax
call fcn.00403bd2
mov esi, eax
jmp 0x4043dd
xor esi, esi
push esi
lea ecx, [ebp + 0x58]
call fcn.004090d8
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0040cf95
test al, al
jne 0x40441f
sub esp, 0xc
mov edi, esp
lea esi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
push 1
movsd dword es:[edi], dword [esi]
call fcn.0040636e
mov eax, dword [ebp + 0x58]
add esp, 0x14
cmp eax, ebx
je 0x404418
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x4041fa
lea ecx, [ebp + 0x28]
call fcn.00401d07
lea ecx, [ebp + 0x1c]
call fcn.00401d07
lea ecx, [ebp + 0x10]
call fcn.00401d07
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
push eax
call fcn.00403f7c
mov esi, dword [ebp + 0x58]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push esi
call fcn.00402018
add esp, 0x1c
test al, al
jne 0x404513
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 0x1c]
movzx eax, ax
push ecx
push eax
call fcn.00403f7c
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push esi
call fcn.00402018
add esp, 0x1c
test al, al
jne 0x404513
call fcn.00401a08
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 0x1c]
movzx eax, ax
push ecx
push eax
call fcn.00403f7c
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push esi
call fcn.00402018
add esp, 0x1c
test al, al
jne 0x404513
lea eax, [ebp + 0x28]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push esi
call fcn.00402018
add esp, 0x10
test al, al
jne 0x404513
push 9
push ebx
call fcn.0040636e
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
cmp esi, ebx
je 0x40450c
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 3
jmp 0x4041fa
cmp dword [0x416588], ebx
jne 0x404594
push str.sfxconfig
push dword [ebp + 0x60]
call fcn.0040322b
cmp eax, ebx
pop ecx
pop ecx
je 0x404594
cmp word [eax], 0x3a
jne 0x404536
add eax, edi
mov cx, word [eax]
cmp cx, bx
je 0x4045f9
cmp cx, 0x20
ja 0x404552
add eax, edi
mov cx, word [eax]
cmp cx, bx
jne 0x404542
cmp word [eax], bx
je 0x4045f9
lea ecx, [ebp + 0x28]
push ecx
push eax
call fcn.00403e34
test al, al
pop ecx
pop ecx
jne 0x4045f9
push 0xa
push ebx
call fcn.0040636e
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x4045d7
lea ecx, [ebp + 0x40]
call fcn.00403376
cmp dword [ebp + 0x2c], ebx
je 0x4045e8
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004023f0
test al, al
pop ecx
pop ecx
jne 0x4045e8
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp esi, ebx
je 0x4045e1
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 4
jmp 0x4041fa
cmp dword [0x416588], 4
jne 0x404627
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp esi, ebx
je 0x405636
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x405636
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SetEnvironment
lea eax, [ebp + 0x40]
push ebx
push eax
call fcn.004022ae
add esp, 0xc
jmp 0x4046cf
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401c72
push 0
push 0x3d
lea ecx, [ebp - 0x1c]
call fcn.00401dcf
test eax, eax
jle 0x4046db
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + eax]
and word [esi + ecx], 0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x18], eax
call fcn.0040227d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x90]
call fcn.00401274
lea eax, [esi + edi + 2]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040123b
lea eax, [ebp - 0x90]
push eax
mov ecx, 0x416568
call fcn.00402352
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x90]
call fcn.00401c3b
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x40]
push ebx
push eax
call fcn.004022ae
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x404646
jmp 0x4046e4
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.0040356a
xor edi, edi
push edi
lea eax, [ebp + 0x40]
push str.Title
push eax
call fcn.004022ae
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x40472b
push esi
lea ecx, [ebp - 0x60]
call fcn.0040123b
push 4
call fcn.00402fe5
pop ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040231c
mov eax, dword [ebp - 0x60]
mov dword [0x416544], eax
mov dword [0x416540], esi
push edi
lea eax, [ebp + 0x40]
push str.ErrorTitle
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x404746
mov dword [0x416544], eax
push edi
lea eax, [ebp + 0x40]
push str.ExtractTitle
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x404761
mov dword [0x41653c], eax
push edi
lea eax, [ebp + 0x40]
push str.Progress
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x404792
push 0x413008
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404792
push 2
pop esi
mov dword [0x416548], esi
jmp 0x404795
push 2
pop esi
push edi
lea eax, [ebp + 0x40]
push str.GUIMode
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x4047c5
mov ax, word [eax]
cmp ax, 0x31
je 0x4047ba
cmp ax, 0x32
jne 0x4047c5
movzx eax, ax
sub eax, 0x30
mov dword [0x416548], eax
push edi
lea eax, [ebp + 0x40]
push str.OverwriteMode
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x404801
movzx eax, word [eax]
sub eax, 0x30
dec eax
je 0x4047f7
dec eax
je 0x4047ef
mov dword [0x41654c], edi
jmp 0x404801
mov dword [0x41654c], esi
jmp 0x404801
mov dword [0x41654c], 1
push edi
lea eax, [ebp + 0x40]
push str.GUIFlags
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x40481e
push eax
call fcn.004031a7
pop ecx
push edi
lea eax, [ebp + 0x40]
push str.ExtractCancelText
push eax
call fcn.004022ae
push edi
mov dword [0x41652c], eax
lea eax, [ebp + 0x40]
push str.ExtractDialogText
push eax
call fcn.004022ae
push edi
mov dword [0x416528], eax
lea eax, [ebp + 0x40]
push str.ExtractDialogWidth
push eax
call fcn.004022ae
add esp, 0x24
cmp eax, edi
je 0x404869
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x416244], eax
push edi
lea eax, [ebp + 0x40]
push str.ExtractPathWidth
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x40488c
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x416248], eax
push edi
lea eax, [ebp + 0x40]
push str.ExtractPathTitle
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x4048a7
mov dword [0x416538], eax
push edi
lea eax, [ebp + 0x40]
push str.ExtractPathText
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x4048c2
mov dword [0x416534], eax
push edi
lea eax, [ebp + 0x40]
push str.CancelPrompt
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, edi
je 0x4048dd
mov dword [0x416530], eax
mov edi, dword [ebp + 0x60]
sub edi, esi
push 0x20
mov dword [ebp + 0x60], edi
pop ebx
jmp 0x4048ec
inc edi
inc edi
cmp word [edi], bx
ja 0x4048ea
jmp 0x4048fd
cmp ax, bx
ja 0x404905
inc edi
inc edi
mov dword [ebp + 0x60], edi
mov ax, word [edi]
test ax, ax
jne 0x4048f3
mov ax, word [edi]
cmp ax, 0x2f
je 0x404918
cmp ax, 0x2d
jne 0x404b1c
lea esi, [edi + 2]
cmp word [esi], 0x21
jne 0x40492b
cmp word [edi + 4], bx
jbe 0x404b03
push 0x412ecc
push esi
call fcn.00403126
test eax, eax
pop ecx
pop ecx
je 0x404988
lea ecx, [edi + 6]
mov ax, word [ecx]
cmp ax, 0x30
jb 0x40494e
cmp ax, 0x39
jbe 0x404966
cmp ax, 0x61
jb 0x40495a
cmp ax, 0x7a
jbe 0x404966
cmp ax, 0x41
jb 0x40496b
cmp ax, 0x5a
ja 0x40496b
mov dword [ebp + 0xc], ecx
jmp 0x40497b
cmp ax, bx
ja 0x404b1c
mov dword [ebp + 0xc], 0x4130a8
mov byte [ebp + 0x5e], 1
mov byte [ebp + 0x67], 1
jmp 0x4048ec
push 0x412ec4
push esi
call fcn.00403126
test eax, eax
pop ecx
pop ecx
je 0x4049cb
mov ax, word [edi + 6]
cmp ax, 0x30
jb 0x404b1c
cmp ax, 0x32
ja 0x404b1c
cmp word [edi + 8], bx
ja 0x404b1c
movzx eax, ax
sub eax, 0x30
mov dword [0x41654c], eax
jmp 0x4048ec
push 0x412ebc
push esi
call fcn.00403126
test eax, eax
pop ecx
pop ecx
je 0x404a0e
mov ax, word [edi + 6]
cmp ax, 0x30
jb 0x404b1c
cmp ax, 0x32
ja 0x404b1c
cmp word [edi + 8], bx
ja 0x404b1c
movzx eax, ax
sub eax, 0x30
mov dword [0x416548], eax
jmp 0x4048ec
push 0x412eb4
push esi
call fcn.00403126
test eax, eax
pop ecx
pop ecx
je 0x404a2e
lea eax, [edi + 6]
push eax
call fcn.004031a7
pop ecx
jmp 0x4048ec
push 0x412eac
push esi
call fcn.00403126
test eax, eax
pop ecx
pop ecx
je 0x404a6b
mov ax, word [edi + 6]
cmp ax, 0x30
je 0x404a53
cmp ax, 0x31
jne 0x404b1c
cmp word [edi + 8], bx
ja 0x404b1c
movzx eax, ax
sub eax, 0x30
mov dword [ebp - 0x20], eax
jmp 0x4048ec
push 0x412ea4
push esi
call fcn.00403126
test eax, eax
pop ecx
pop ecx
je 0x404a8f
cmp word [edi + 6], bx
ja 0x404b1c
mov byte [ebp + 0x5c], 1
jmp 0x4048ec
push 0x412e9c
push esi
call fcn.00403126
test eax, eax
pop ecx
pop ecx
je 0x404ac4
lea eax, [edi + 6]
mov cx, word [eax]
cmp cx, 0x30
jb 0x404b1c
cmp cx, 0x39
ja 0x404b1c
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41624c], eax
jmp 0x4048ec
mov si, word [esi]
cmp si, 0x79
je 0x404ad3
cmp si, 0x59
jne 0x404ae2
cmp word [edi + 4], bx
ja 0x404ae2
mov byte [ebp + 0x5e], 1
jmp 0x4048ec
cmp si, 0x3f
je 0x404af4
cmp si, 0x68
je 0x404af4
cmp si, 0x48
jne 0x404b1c
cmp word [edi + 4], bx
ja 0x404b1c
mov byte [ebp + 0x5d], 1
jmp 0x4048ec
add edi, 4
jmp 0x404b0f
cmp ax, bx
ja 0x404b1f
inc edi
inc edi
mov ax, word [edi]
test ax, ax
mov dword [ebp + 0x60], edi
jne 0x404b08
jmp 0x404b1f
mov dword [ebp + 0x60], edi
cmp dword [0x416240], 0xffffffff
jne 0x404b2f
and dword [0x416240], 0
cmp byte [ebp + 0x5d], 0
je 0x404b89
push 0
lea eax, [ebp + 0x40]
push str.HelpText
push eax
call fcn.004022ae
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404b58
push 0x18
call fcn.00402fe5
pop ecx
mov esi, eax
lea ecx, [ebp - 0x150]
call fcn.00403331
push 0
push esi
push dword [0x416540]
lea ecx, [ebp - 0x150]
push 0x11
call fcn.00405822
lea ecx, [ebp - 0x150]
call fcn.00403355
jmp 0x405606
cmp byte [ebp + 0x5e], 0
je 0x404b96
and byte [0x416241], 0xfe
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
lea eax, [ebp + 0x40]
push str.InstallPath
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, esi
mov ebx, 0x416550
je 0x404bc2
push eax
mov ecx, ebx
call fcn.0040123b
mov edi, 0x416550
push edi
call fcn.004030fc
cmp dword [0x416590], esi
pop ecx
lea eax, [ebp + 0x40]
je 0x404c1b
push eax
call fcn.004070dc
pop ecx
lea ecx, [ebp + 0x40]
mov esi, eax
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x58]
add esp, 0xc
test eax, eax
je 0x405638
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405638
cmp dword [0x416588], 3
jne 0x404c2c
push eax
call fcn.0040702c
jmp 0x404bdf
push esi
push str.BeginPrompt
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, esi
je 0x404c6b
cmp byte [ebp + 0x5e], 0
jne 0x404c6b
push eax
push dword [0x416540]
call fcn.004066e1
test eax, eax
pop ecx
pop ecx
je 0x404d9d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x404c6b
mov byte [ebp + 0x67], 1
lea ecx, [ebp]
call fcn.00401323
cmp byte [ebp + 0x67], 0
je 0x404cfd
mov esi, dword [ebp + 0xc]
mov ebx, str.AutoInstall
push ebx
lea ecx, [ebp]
call fcn.0040123b
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp]
push eax
call fcn.0040133b
push 0
push dword [ebp]
lea eax, [ebp + 0x40]
push eax
call fcn.004022ae
add esp, 0xc
test eax, eax
je 0x404dd4
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x404cc6
cmp ax, 0x39
jbe 0x404c80
cmp ax, 0x61
jb 0x404cd2
cmp ax, 0x7a
jbe 0x404c80
cmp ax, 0x41
jb 0x404cde
cmp ax, 0x5a
jbe 0x404c80
push ebx
lea ecx, [ebp]
call fcn.0040123b
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
push eax
lea ecx, [ebp]
call fcn.0040133b
mov ebx, 0x416550
xor esi, esi
cmp dword [ebp + 4], esi
mov byte [ebp + 0x5d], 0
jne 0x404d54
push 0
mov esi, str.ExecuteFile
lea eax, [ebp + 0x40]
push esi
push eax
call fcn.004022ae
add esp, 0xc
test eax, eax
je 0x404d31
push esi
lea ecx, [ebp]
call fcn.0040123b
cmp dword [ebp + 4], 0
mov byte [ebp + 0x5d], 1
jne 0x404d52
push 0
mov esi, str.RunProgram
lea eax, [ebp + 0x40]
push esi
push eax
call fcn.004022ae
add esp, 0xc
test eax, eax
je 0x404d52
push esi
lea ecx, [ebp]
call fcn.0040123b
xor esi, esi
cmp byte [ebp + 0x67], 0
jne 0x404e22
cmp byte [ebp + 0x5e], 0
jne 0x404e22
mov eax, dword [0x416240]
and ax, 0xc0
cmp al, 0x80
jne 0x404e22
push dword [0x416534]
push dword [0x416538]
call fcn.00405fba
test eax, eax
pop ecx
pop ecx
jne 0x404e22
push dword [ebp]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x58]
add esp, 0xc
cmp eax, esi
je 0x404dcd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x4041fa
push dword [ebp]
push 0xe
push 0
call fcn.0040636e
push dword [ebp]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x58]
add esp, 0xc
test eax, eax
je 0x404e1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x4041fa
cmp dword [0x416554], esi
jne 0x404e50
lea eax, [ebp - 0x3c]
push str.7ZipSfx._03x
push eax
call fcn.00403493
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.00401274
push dword [ebp - 0x3c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov byte [ebp + 0x5f], 0
jmp 0x404e7f
push edi
lea ecx, [ebp - 0xc]
call fcn.00401209
lea eax, [ebp - 0xc]
push eax
call fcn.004030fc
cmp dword [ebp - 8], esi
pop ecx
jne 0x404e73
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
call fcn.00401274
push dword [ebp - 0xc]
mov byte [ebp + 0x5f], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x416550]
pop ecx
mov ecx, dword [0x416554]
mov dx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x404e9c
cmp dx, 0x2f
jne 0x404ea7
dec ecx
mov word [eax + ecx*2], si
mov dword [0x416554], ecx
cmp dword [0x416584], esi
jne 0x404ebc
push edi
push dword [ebp + 0x58]
call fcn.00403d3d
pop ecx
pop ecx
jmp 0x404eca
call fcn.00406491
test eax, eax
jne 0x404f20
mov eax, 0x80004005
cmp eax, esi
je 0x404f20
cmp byte [ebp + 0x5f], 0
jne 0x404ee0
push dword [0x416550]
call fcn.0040271a
pop ecx
push dword [ebp]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x58]
add esp, 0xc
cmp eax, esi
je 0x404f19
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x4041fa
call fcn.0040356a
cmp byte [ebp + 0x5c], 0
je 0x404f35
cmp byte [ebp + 0x5f], 0
jne 0x405536
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], esi
call fcn.00401323
cmp byte [ebp + 0x67], 0
jne 0x404f55
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.004035db
pop ecx
pop ecx
mov byte [ebp + 0x57], 0
xor bl, bl
lea ecx, [ebp + 0x34]
mov byte [ebp + 0x67], bl
call fcn.00401323
lea ecx, [ebp - 0x48]
call fcn.00401323
xor edi, edi
cmp dword [ebp + 4], edi
jne 0x405017
cmp byte [ebp + 0x5f], 0
jne 0x40531f
mov esi, str.setup.exe
push esi
push 0x41238c
lea eax, [ebp - 0x84]
push 0x416550
push eax
call fcn.00403439
add esp, 0xc
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00403439
add esp, 0xc
push eax
lea ecx, [ebp + 0x34]
call fcn.00401274
push dword [ebp - 0x3c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x84]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4052b2
mov byte [ebp + 0x57], 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0040123b
lea eax, [ebp - 0x48]
push eax
call fcn.00403111
mov esi, dword [ebp - 0x48]
pop ecx
push 0
push str.hidcon
push esi
call fcn.00403160
add esp, 0xc
test eax, eax
je 0x40509c
mov esi, eax
mov bl, 1
jmp 0x404ff9
lea eax, [ebp - 0x24]
push eax
push dword [ebp]
lea eax, [ebp + 0x40]
push eax
call fcn.004022ae
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x404fe3
mov esi, dword [ebp + 0xc]
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
mov dword [ebp + 0xc], esi
jb 0x405047
cmp ax, 0x39
jbe 0x405067
cmp ax, 0x61
jb 0x405053
cmp ax, 0x7a
jbe 0x405067
cmp ax, 0x41
jb 0x40531f
cmp ax, 0x5a
ja 0x40531f
push str.AutoInstall
lea ecx, [ebp]
call fcn.0040123b
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp]
push eax
call fcn.0040133b
push dword [ebp - 0x48]
mov dword [ebp - 0x24], edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x34]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x404f59
push 0
push 0x412dc0
push esi
call fcn.00403160
add esp, 0xc
test eax, eax
je 0x4050bd
mov esi, eax
mov al, byte [ebp + 0x5f]
mov byte [ebp + 0x67], al
jmp 0x404ff9
push 1
push 0x412e9c
push esi
call fcn.00403160
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4050f3
cmp dword [0x41624c], 0xffffffff
jne 0x4050ec
add esi, 4
push esi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41624c], eax
mov esi, edi
jmp 0x404ff9
cmp byte [ebp + 0x5d], 0
lea ecx, [ebp + 0x34]
je 0x40514f
cmp word [esi], 0x22
je 0x405121
mov edi, 0x412dbc
push edi
call fcn.0040123b
push esi
lea ecx, [ebp + 0x34]
call fcn.0040231c
push edi
lea ecx, [ebp + 0x34]
call fcn.0040231c
jmp 0x405127
push esi
call fcn.0040123b
push 0
lea eax, [ebp + 0x40]
push 0x412d98
push eax
call fcn.004022ae
mov esi, eax
add esp, 0xc
test esi, esi
je 0x405161
push 0x412d94
lea ecx, [ebp + 0x34]
call fcn.0040231c
jmp 0x405158
lea eax, [ebp - 0x1c]
push eax
call fcn.00401274
lea ecx, [ebp + 0x34]
push esi
call fcn.0040231c
lea ecx, [ebp - 0xc]
call fcn.00401323
lea ecx, [ebp - 0x54]
call fcn.00401323
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xcc]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x416550]
add esp, 0xc
test bl, bl
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xc8], 0x740
mov dword [ebp - 0xb0], 1
je 0x4051c0
and dword [ebp - 0xb0], 0
mov dword [ebp - 0xc8], 0x8740
mov ebx, dword [ebp + 0x34]
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00403631
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.0040123b
mov edi, dword [ebp + 0x60]
xor esi, esi
cmp word [edi], si
je 0x405204
push 0x20
lea ecx, [ebp - 0x54]
call fcn.0040133b
push edi
lea ecx, [ebp - 0x54]
call fcn.0040231c
cmp word [edi], si
je 0x405204
inc edi
inc edi
cmp word [edi], si
jne 0x4051fa
mov dword [ebp + 0x60], edi
lea eax, [ebp - 0xc]
push eax
call fcn.00403111
lea eax, [ebp - 0x54]
push eax
call fcn.00403111
cmp dword [ebp - 0x50], esi
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 0xbc], eax
je 0x40522f
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xb8], eax
cmp dword [0x416588], esi
jne 0x40526c
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405336
cmp byte [ebp + 0x67], 0
jne 0x405260
push 0xffffffffffffffff
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x5d], 0
jne 0x4053c7
cmp byte [ebp + 0x57], 0
jne 0x4053c7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
mov word [eax], si
push dword [ebp - 0x54]
inc dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404f59
push dword [0x416550]
call fcn.0040271a
push 0xf
push edi
call fcn.0040636e
push dword [ebp - 0x48]
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 - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x1c
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x58]
add esp, 0xc
cmp eax, edi
je 0x405318
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 7
jmp 0x4041fa
push dword [ebp - 0x48]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x34]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x4053e8
sub esp, 0xc
mov edi, esp
lea esi, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 1
movsd dword es:[edi], dword [esi]
call fcn.0040636e
add esp, 0x14
cmp byte [ebp + 0x5f], 0
jne 0x40535f
push dword [0x416550]
call fcn.0040271a
pop ecx
push dword [ebp - 0x54]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
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]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x18
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x58]
add esp, 0xc
test eax, eax
je 0x4053c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x4041fa
push dword [ebp - 0x54]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp dword [0x416588], 0
jne 0x40552b
and dword [ebp + 0x60], 0
lea eax, [ebp + 0x60]
push eax
mov esi, str.Shortcut
lea eax, [ebp + 0x40]
push esi
push eax
call fcn.004022ae
add esp, 0xc
jmp 0x4054b0
push eax
lea ecx, [ebp + 0x34]
call fcn.00401c72
lea eax, [ebp + 0x34]
push 0x416550
push eax
call fcn.00402e0d
lea eax, [ebp + 0x34]
push 0x41655c
push eax
call fcn.00402ef9
xor edi, edi
add esp, 0x10
cmp dword [0x416570], edi
jle 0x40548c
mov eax, dword [0x416574]
mov eax, dword [eax + edi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401209
lea eax, [ebp - 0x3c]
push eax
call fcn.00401f86
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [0x416574]
push dword [eax + edi*4]
lea eax, [ebp + 0x34]
push eax
call fcn.00403ccd
push dword [ebp - 0x3c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
inc edi
cmp edi, dword [0x416570]
jl 0x405446
push dword [ebp + 0x34]
call fcn.00402a56
push dword [ebp + 0x34]
inc dword [ebp + 0x60]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push esi
push eax
call fcn.004022ae
add esp, 0x14
test eax, eax
jne 0x405414
push dword [0x41655c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
and dword [ebp + 0x60], 0
lea eax, [ebp + 0x60]
push eax
mov esi, str.Delete
lea eax, [ebp + 0x40]
push esi
push eax
call fcn.004022ae
add esp, 0xc
jmp 0x405516
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401c72
lea eax, [ebp - 0x3c]
push eax
call fcn.00403111
push dword [ebp - 0x3c]
call fcn.0040271a
push dword [ebp - 0x3c]
inc dword [ebp + 0x60]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x40]
push esi
push eax
call fcn.004022ae
add esp, 0x18
test eax, eax
jne 0x4054e0
cmp byte [ebp + 0x5f], al
jne 0x40552b
push dword [0x416550]
call fcn.0040271a
pop ecx
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor esi, esi
cmp dword [0x41624c], 0xffffffff
jne 0x40554f
cmp byte [ebp + 0x5e], 0
jne 0x4055ae
mov dword [0x41624c], 1
cmp dword [0x41624c], esi
jle 0x4055ae
push 0
lea eax, [ebp + 0x40]
push str.FinishMessage
push eax
call fcn.004022ae
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4055ae
mov eax, 0x3e7
cmp dword [0x41624c], eax
jle 0x405582
mov dword [0x41624c], eax
lea ecx, [ebp - 0x110]
call fcn.00403343
push 0
push esi
push dword [0x416540]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.00405822
lea ecx, [ebp - 0x110]
call fcn.00403355
cmp byte [ebp + 0x5c], 0
jne 0x4055fd
xor esi, esi
cmp dword [0x416588], esi
jne 0x4055fd
mov eax, dword [ebp - 0x20]
sub eax, esi
je 0x4055fd
dec eax
je 0x4055e4
push esi
lea eax, [ebp + 0x40]
push str.SelfDelete
push eax
call fcn.004022ae
add esp, 0xc
cmp eax, esi
je 0x4055fd
cmp word [eax], 0x31
jne 0x4055fd
sub esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00401209
call fcn.00403723
add esp, 0xc
push dword [ebp]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp + 0x40]
call fcn.004032cb
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 + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x58]
add esp, 0xc
test eax, eax
je 0x405636
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
push dword [ebp - 0xd8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x78]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x6c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x60]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov eax, esi
jmp 0x405681
push 0x10
push str.7_Zip_SFX
push str.Sorry__this_program_requires_Microsoft_Windows_2000_or_later.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x14
pop eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10