Function at 0x405ff3
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Encode data using xor
Get file attributes
Log keystrokes via polling
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2d4
push ebx
push esi
push edi
push 0x405a5e
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00403803
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - 0x26c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406fc2
cmp dword [ebp - 0x25c], 2
jne 0x406fc2
cmp dword [ebp - 0x268], 5
jb 0x406fc2
lea ecx, [ebp + 0x24]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
call fcn.0040e820
lea ecx, [ebp - 0x48]
call fcn.0040e820
lea ecx, [ebp - 8]
call fcn.0040e820
call fcn.004053e9
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00402ff1
push eax
lea ecx, [ebp - 8]
call fcn.0040e8a5
lea ecx, [ebp - 8]
call fcn.0040454d
mov edi, dword [ebp - 8]
xor ebx, ebx
inc ebx
push ebx
mov edx, 0x417cf0
mov ecx, str.SfxVarModulePlatform
call fcn.00404f38
push ebx
call fcn.00403ec4
mov edx, eax
mov ecx, str.SfxVarSystemPlatform
call fcn.00404f38
push ebx
call esi
mov edx, eax
mov ecx, str.SfxVarCmdLine0
call fcn.00404f38
movzx eax, word [0x41b710]
push eax
push 0x418d7c
push 0x20
lea ecx, [ebp + 0x24]
call fcn.004041da
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp + 0x24]
call fcn.004041bf
mov edx, dword [ebp + 0x24]
push ebx
mov ecx, str.SfxVarSystemLanguage
call fcn.00404f38
mov edx, str.sfxlang
mov ecx, edi
call fcn.00405689
test eax, eax
je 0x406142
cmp word [eax], 0x3a
jne 0x406142
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x406139
mov word [0x41b710], ax
add edi, 2
cmp word [edi], 0x20
ja 0x406139
mov edx, str.sfxversion
mov ecx, edi
call fcn.00405689
test eax, eax
je 0x40617b
call fcn.00405c70
xor esi, esi
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, esi
jmp 0x406fd9
mov edx, str.sfxwaitall
mov ecx, edi
call fcn.00405689
test eax, eax
je 0x406196
mov ecx, eax
call fcn.00401f19
mov esi, eax
jmp 0x406159
mov edx, str.sfxelevation
mov ecx, edi
mov byte [ebp + 0x67], 0
call fcn.00405689
test eax, eax
je 0x4061b0
mov byte [ebp + 0x67], 1
mov edi, eax
mov eax, 0x208
push eax
mov ebx, 0x41b824
push eax
mov ecx, ebx
call fcn.004041da
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4061e2
xor esi, esi
inc esi
push 6
push esi
call fcn.00409653
pop ecx
pop ecx
jmp 0x406159
mov ecx, ebx
call fcn.004041bf
mov edx, str.sfxtest
mov ecx, edi
call fcn.00405689
mov esi, eax
test esi, esi
je 0x40638a
cmp word [esi], 0x3a
je 0x40620d
push 0x64
pop esi
jmp 0x406159
movzx ecx, word [esi + 2]
push 0x20
mov eax, ecx
pop edi
or eax, edi
sub eax, 0x61
je 0x40631f
dec eax
dec eax
je 0x40630b
dec eax
je 0x406288
sub eax, 0xb
je 0x406240
sub eax, 7
jne 0x406205
mov esi, 0x4f3c
jmp 0x406159
cmp word [esi + 4], 0x3a
jne 0x406157
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x406280
dec eax
je 0x406276
dec eax
je 0x406272
dec eax
je 0x406268
dec eax
jne 0x406157
push 7
jmp 0x406207
mov esi, 0x3fff
jmp 0x406159
push 0x1f
jmp 0x406207
mov esi, 0x189
jmp 0x406159
xor esi, esi
inc esi
jmp 0x406159
cmp ecx, 0x44
jne 0x4062ca
cmp word [esi + 4], 0x3a
jne 0x406205
add esi, 6
jmp 0x4062b4
cmp ax, 0x3a
je 0x4062bc
movzx eax, ax
push eax
mov ecx, 0x41b8bc
call fcn.004014f2
add esi, 2
movzx eax, word [esi]
cmp ax, di
ja 0x40629d
cmp dword [0x41b8c0], 0
jne 0x4062cd
jmp 0x406205
add esi, 4
and dword [0x41b8b4], 0
cmp word [esi], 0x3a
jne 0x4062f5
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41b8b4], eax
cmp eax, 0xe10
ja 0x4062f5
test eax, eax
jne 0x4062ff
mov dword [0x41b8b4], 0xa
mov dword [0x41b8b8], 1
jmp 0x40632e
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41b8b8], eax
jmp 0x40632e
mov dword [0x41b8b8], 2
jmp 0x40632e
add esi, 2
cmp word [esi], di
ja 0x40632b
mov edx, str.sfxconfig
mov ecx, esi
mov edi, esi
call fcn.00405689
test eax, eax
je 0x40638a
cmp word [eax], 0x3a
jne 0x406356
jmp 0x406353
cmp cx, 0x20
ja 0x40635e
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40634d
mov edx, dword [ebp + 0x24]
and dword [ebp + 0x28], 0
xor ecx, ecx
mov word [edx], cx
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00402ff1
cmp dword [0x41b8b8], 2
mov edi, eax
je 0x40638a
lea eax, [ebp + 0x24]
push eax
mov ecx, ebx
call fcn.0040e908
mov esi, 0x41b824
push esi
mov ecx, 0x41b774
call fcn.0040e908
mov ebx, 0x41b78c
push esi
mov ecx, ebx
call fcn.0040e908
mov ecx, esi
call fcn.004037e2
test eax, eax
js 0x406447
mov ecx, dword [0x41b774]
mov dword [0x41b778], eax
lea esi, [eax + eax]
xor eax, eax
mov word [esi + ecx], ax
mov eax, dword [0x41b824]
lea eax, [esi + eax + 2]
push eax
mov ecx, ebx
call fcn.0040e8a5
mov eax, dword [0x41b824]
lea eax, [esi + eax + 2]
mov esi, 0x41b870
push eax
mov ecx, esi
call fcn.0040e8a5
push 0x2e
mov ecx, esi
call fcn.0040eaba
test eax, eax
jle 0x40640f
mov edx, dword [0x41b870]
xor ecx, ecx
mov dword [0x41b874], eax
mov word [edx + eax*2], cx
push esi
mov esi, 0x41b83c
mov ecx, esi
call fcn.0040e908
push 4
pop ecx
call fcn.00403caf
push eax
mov ecx, esi
call fcn.0040e963
mov eax, dword [0x41b870]
mov ecx, dword [0x41b83c]
mov dword [0x41b718], eax
mov dword [0x41b740], ecx
mov dword [0x41b744], eax
call fcn.00403ec4
push eax
mov ecx, 0x41b830
call fcn.0040e8a5
push dword [0x41b824]
mov ebx, 0x41b798
mov ecx, ebx
call fcn.0040123c
test al, al
jne 0x406486
push dword [0x41b824]
push 7
push 1
call fcn.00409653
add esp, 0xc
push 2
jmp 0x406207
lea ecx, [ebp + 0x58]
call fcn.0040e403
mov ecx, 0x41b780
call fcn.00405eba
mov ecx, dword [0x41b79c]
lea eax, [ebp + 0x58]
push eax
xor dl, dl
call fcn.004052e8
mov esi, eax
test esi, esi
je 0x4064bc
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
jmp 0x4061dc
cmp dword [0x41b8b8], 0
jne 0x406532
mov edx, str.sfxconfig
mov ecx, edi
call fcn.00405689
test eax, eax
je 0x406532
cmp word [eax], 0x3a
jne 0x4064de
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x406900
cmp cx, 0x20
ja 0x4064fb
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4064ea
cmp word [eax], 0
je 0x406900
lea edx, [ebp + 0x58]
mov ecx, eax
call fcn.00405ede
test al, al
jne 0x406900
push 0xa
push 0
call fcn.00409653
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push 4
jmp 0x406207
cmp dword [0x41b8b8], 4
je 0x406900
mov eax, dword [0x41b138]
mov esi, 0x41b138
jmp 0x40657c
push eax
lea eax, [ebp - 0xa0]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esi]
add esp, 0xc
push 0
call fcn.00403caf
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00404f38
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x40654b
push edi
mov ecx, ebx
call fcn.004053ca
call fcn.0040166b
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x4065a4
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 0x20
jmp 0x406207
call fcn.004056f8
xor edx, edx
mov ecx, str.SfxAuthor
call fcn.00404f28
mov esi, eax
test esi, esi
je 0x4066a3
lea ecx, [ebp - 0x158]
call fcn.0040b0d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040b320
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x158]
call fcn.0040b5d0
push 8
pop ecx
mov esi, str.123456789ABCDEFGHJKMNPQRSTUVWXYZ
lea edi, [ebp - 0xf0]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov edx, dword [ebp + ecx*4 - 0xbc]
lea eax, [ebp + ecx*4 - 0xcc]
xor dword [eax], edx
inc ecx
cmp ecx, 4
jl 0x406605
xor ebx, ebx
xor edi, edi
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx esi, byte [ebp + eax - 0xcc]
mov ecx, edi
and ecx, 0x80000007
jns 0x406641
dec ecx
or ecx, 0xfffffff8
inc ecx
shr esi, cl
and esi, 0x1f
test edi, edi
je 0x406662
mov eax, edi
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x406662
push 0x2d
pop eax
mov word [ebp + ebx*2 - 0x88], ax
inc ebx
movsx ax, byte [ebp + esi - 0xf0]
mov word [ebp + ebx*2 - 0x88], ax
add edi, 5
inc ebx
cmp edi, 0x7d
jl 0x40661f
xor eax, eax
mov word [ebp + ebx*2 - 0x88], ax
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x41b6e8
call fcn.0040e8a5
mov byte [0x41b6e0], 1
mov ebx, 0x41b798
mov ecx, ebx
call fcn.00401270
mov ecx, 0x41b780
call fcn.00405eba
mov ecx, dword [0x41b79c]
xor esi, esi
push esi
xor dl, dl
call fcn.004052e8
call fcn.004056f8
mov ecx, ebx
call fcn.004012d5
call fcn.0040166b
call fcn.004056f8
cmp byte [ebp + 0x67], 0
jne 0x40681b
test byte [0x41b754], 4
je 0x40681b
call fcn.00403ed9
test eax, eax
jne 0x40681b
lea ecx, [ebp + 0x18]
call fcn.0040e820
lea ecx, [ebp - 0x30]
call fcn.0040e820
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp + 0x18]
mov ecx, eax
call fcn.00402ff1
push eax
lea ecx, [ebp + 0x30]
call fcn.0040e844
push str.sfxelevation
push 0x417acc
lea eax, [ebp + 0x18]
push eax
mov edx, 0x4179d0
lea ecx, [ebp - 0x14]
call fcn.0040e7f2
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.0040e7c8
mov edx, eax
lea ecx, [ebp - 0xac]
call fcn.0040e7c8
push 0x20
push eax
lea ecx, [ebp + 4]
call fcn.0040e722
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 4]
lea ecx, [ebp + 0x40]
call fcn.0040e7ac
push dword [eax]
lea ecx, [ebp - 0x30]
call fcn.0040e8a5
push dword [ebp + 0x40]
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 - 0xac]
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 - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ecx, dword [ebp - 0x30]
push esi
push 2
pop edx
call fcn.00401bc6
push dword [ebp + 0x30]
test eax, eax
jne 0x4067f6
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 + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
push 0xb
jmp 0x406207
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 + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x406157
mov dword [ebp + 0x3c], esi
mov esi, str.SetEnvironment
lea edx, [ebp + 0x3c]
mov ecx, esi
call fcn.00404f28
xor ebx, ebx
jmp 0x40687a
push edi
lea ecx, [ebp + 0x40]
call fcn.0040e844
mov ecx, dword [ebp + 0x40]
push 0x3d
pop edx
call fcn.0040e24d
cmp eax, ebx
jle 0x406882
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0x44], eax
add eax, eax
xor ecx, ecx
mov word [edx + eax], cx
mov ecx, dword [ebp + 0x40]
push ebx
lea edx, [eax + edi + 2]
call fcn.00404f38
push dword [ebp + 0x40]
inc dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea edx, [ebp + 0x3c]
mov ecx, esi
call fcn.00404f28
mov edi, eax
cmp edi, ebx
jne 0x406831
jmp 0x40688b
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00405d61
cmp dword [0x41b43c], 0xffffffff
jne 0x40689f
mov dword [0x41b43c], ebx
cmp byte [0x41b7ab], bl
je 0x40690e
xor edx, edx
mov ecx, str.HelpText
call fcn.00404f28
mov esi, eax
cmp esi, ebx
jne 0x4068c3
push 0x18
pop ecx
call fcn.00403caf
mov esi, eax
lea ecx, [ebp - 0x9c]
call fcn.0040759e
push 0
push esi
push dword [0x41b718]
lea ecx, [ebp - 0x9c]
push 0x11
mov dword [ebp - 0x9c], 0x418ab4
mov dword [ebp - 0x64], 0x7d6
call fcn.00407910
lea ecx, [ebp - 0x9c]
call fcn.004075ff
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406157
cmp byte [0x41b7a9], bl
je 0x406920
and dword [0x41b43c], 0xfffffeff
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov ecx, str.InstallPath
call fcn.00404f28
mov esi, 0x41b87c
cmp eax, ebx
je 0x40694b
push eax
mov ecx, esi
call fcn.0040e8a5
mov byte [0x41b720], 1
mov ecx, esi
call fcn.004054e6
xor edx, edx
mov ecx, str.BeginPromptTimeout
call fcn.00404f28
cmp eax, ebx
je 0x40696f
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41b760], eax
cmp dword [0x41b8c0], ebx
je 0x406983
call fcn.00409f30
mov esi, eax
jmp 0x4064af
cmp dword [0x41b8b8], 3
jne 0x406993
call fcn.00409e52
jmp 0x40697c
mov esi, 0x417a1c
push 0
mov edx, esi
mov ecx, str.SfxVarApiPath
call fcn.00404f38
call fcn.00405d61
mov edi, str.ExecuteOnLoad
xor edx, edx
mov ecx, edi
call fcn.00404f28
mov ebx, 0x41b848
test eax, eax
je 0x406a15
cmp byte [0x41b7aa], 0
jne 0x406a15
mov ecx, ebx
call fcn.0040733f
mov edx, dword [0x41b84c]
push 0
mov ecx, str.SfxVarApiPath
call fcn.00404f38
call fcn.00405d61
push esi
lea ecx, [ebp + 0x30]
call fcn.0040e844
mov ecx, ebx
call fcn.0040733f
mov edx, dword [0x41b84c]
push esi
lea eax, [ebp + 0x30]
push eax
push esi
mov ecx, edi
call fcn.00402264
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, 0x41b7d0
call fcn.004082db
xor edx, edx
mov ecx, str.BeginPrompt
call fcn.00404f28
test eax, eax
je 0x406a7b
cmp byte [0x41b7a9], 0
jne 0x406a7b
mov ecx, dword [0x41b718]
mov edx, eax
call fcn.00408af3
test eax, eax
je 0x406b87
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x406a68
mov word [0x41b7a8], 0x101
cmp dword [0x41b8a0], 0
je 0x406a7b
and dword [0x41b43c], 0xffffff7f
lea ecx, [ebp + 0x4c]
call fcn.0040e820
cmp byte [0x41b7a8], 0
je 0x406aee
mov edi, dword [0x41b7a4]
push str.AutoInstall
lea ecx, [ebp + 0x4c]
call fcn.0040e8a5
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x4c]
call fcn.004014f2
mov ecx, dword [ebp + 0x4c]
xor edx, edx
call fcn.00404f28
test eax, eax
je 0x406b97
add edi, 2
movzx eax, word [edi]
cmp eax, 0x30
jb 0x406acd
cmp eax, 0x39
jbe 0x406a92
cmp eax, 0x61
jb 0x406ad7
cmp eax, 0x7a
jbe 0x406a92
cmp eax, 0x41
jb 0x406ae1
cmp eax, 0x5a
jbe 0x406a92
push str.AutoInstall
lea ecx, [ebp + 0x4c]
call fcn.0040e8a5
cmp dword [ebp + 0x50], 0
mov byte [ebp + 0x14], 0
jne 0x406b38
mov edi, str.ExecuteFile
xor edx, edx
mov ecx, edi
call fcn.00404f28
test eax, eax
je 0x406b17
push edi
lea ecx, [ebp + 0x4c]
call fcn.0040e8a5
mov byte [ebp + 0x14], 1
cmp dword [ebp + 0x50], 0
jne 0x406b38
mov edi, str.RunProgram
xor edx, edx
mov ecx, edi
call fcn.00404f28
test eax, eax
je 0x406b38
push edi
lea ecx, [ebp + 0x4c]
call fcn.0040e8a5
cmp byte [0x41b7a8], 0
jne 0x406bcd
cmp byte [0x41b7a9], 0
jne 0x406bcd
mov eax, dword [0x41b43c]
and eax, 0xc0
cmp al, 0x80
jne 0x406bcd
mov edx, dword [0x41b728]
mov ecx, dword [0x41b734]
call fcn.00408b8e
test eax, eax
jne 0x406bcd
push dword [ebp + 0x4c]
cmp byte [0x41b764], al
je 0x406bbd
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406a1f
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 5
jmp 0x406207
push dword [ebp + 0x4c]
push 0xe
push 0
call fcn.00409653
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x14
push 6
jmp 0x406207
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406b8f
cmp dword [0x41b880], 0
jne 0x406bff
mov edx, str.7ZipSfx._03x
lea ecx, [ebp - 0x14]
call fcn.00404284
push eax
mov ecx, 0x41b87c
call fcn.0040e908
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41b720], 0
jmp 0x406c35
mov edi, 0x41b87c
push edi
lea ecx, [ebp + 0x18]
call fcn.0040e87a
lea ecx, [ebp + 0x18]
call fcn.004054e6
cmp dword [ebp + 0x1c], 0
je 0x406c26
lea eax, [ebp + 0x18]
push eax
mov ecx, edi
call fcn.0040e908
push dword [ebp + 0x18]
mov byte [0x41b720], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41b87c]
pop ecx
mov ecx, dword [0x41b880]
movzx edx, word [eax + ecx*2 - 2]
cmp edx, 0x5c
je 0x406c50
cmp edx, 0x2f
jne 0x406c5d
dec ecx
xor edx, edx
mov dword [0x41b880], ecx
mov word [eax + ecx*2], dx
cmp byte [0x41b7a9], 0
je 0x406c6d
or dword [0x41b754], 3
mov edi, str.PreExtract
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e844
mov eax, dword [0x41b7a4]
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.004014f2
mov ecx, dword [ebp - 0x20]
xor edx, edx
call fcn.00404f28
test eax, eax
je 0x406cf7
cmp byte [0x41b7aa], 0
jne 0x406cf7
mov ecx, ebx
call fcn.0040733f
mov edx, dword [0x41b84c]
push 0
mov ecx, str.SfxVarApiPath
call fcn.00404f38
call fcn.00405d61
push esi
lea ecx, [ebp + 0x30]
call fcn.0040e844
mov eax, dword [0x41b7a4]
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.0040733f
mov edx, dword [0x41b84c]
push esi
lea eax, [ebp + 0x30]
push eax
push dword [ebp - 0x24]
mov ecx, edi
call fcn.00402264
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41b8b4], 0
jne 0x406d0c
mov ecx, 0x41b87c
call fcn.00402c80
jmp 0x406d1a
call fcn.00408bfd
test eax, eax
jne 0x406d45
mov eax, 0x80004005
test eax, eax
je 0x406d45
call fcn.00405a49
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push 8
jmp 0x406207
call fcn.00405d61
cmp byte [0x41b7aa], 0
je 0x406d60
cmp byte [0x41b720], 0
jne 0x406eca
lea ecx, [ebp + 0x40]
call fcn.0040e820
lea ecx, [ebp + 4]
call fcn.0040e820
cmp byte [0x41b7a8], 0
jne 0x406d81
lea ecx, [ebp + 0x40]
call fcn.00401aef
xor ebx, ebx
cmp dword [ebp + 0x50], ebx
jne 0x406e4f
cmp byte [0x41b720], bl
jne 0x406e6a
mov esi, str.setup.exe
push esi
push 0x417bd8
mov edx, 0x41b87c
lea ecx, [ebp - 0x3c]
call fcn.0040e7c8
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.0040e7c8
push dword [eax]
lea ecx, [ebp + 4]
call fcn.0040e8a5
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x3c]
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
jne 0x406e21
call fcn.00405a49
push 0xf
push ebx
call fcn.00409653
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x1c
jmp 0x406264
mov edi, dword [0x41b87c]
push esi
lea ecx, [ebp + 0x30]
call fcn.0040e844
push dword [ebp + 0x10]
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x14]
mov edx, edi
lea ecx, [ebp + 0x30]
call fcn.00401f75
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406e6a
push dword [ebp + 0x10]
mov edx, dword [0x41b87c]
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp + 0x40]
push eax
push dword [0x41b7a4]
call fcn.00402264
cmp dword [0x41b8b8], ebx
jne 0x406eb6
call fcn.00405d61
push 0xffffffffffffffff
push dword [0x41b7a4]
mov edx, str.Shortcut
mov ecx, 0x405db6
call fcn.00405972
push dword [0x41b774]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0xffffffffffffffff
push dword [0x41b7a4]
mov edx, str.Delete
mov ecx, 0x405948
call fcn.00405972
call fcn.00405a49
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406ecc
xor ebx, ebx
cmp dword [0x41b448], 0xffffffff
jne 0x406ee8
cmp byte [0x41b7a9], 0
jne 0x406f50
mov dword [0x41b448], 1
cmp dword [0x41b448], ebx
jle 0x406f50
xor edx, edx
mov ecx, str.FinishMessage
call fcn.00404f28
mov esi, eax
cmp esi, ebx
je 0x406f50
mov eax, 0x3e7
cmp dword [0x41b448], eax
jle 0x406f14
mov dword [0x41b448], eax
lea ecx, [ebp - 0x98]
call fcn.0040759e
push ebx
push esi
push dword [0x41b718]
lea ecx, [ebp - 0x98]
push 0x11
mov dword [ebp - 0x98], 0x418b94
mov dword [ebp - 0x60], 0x7d5
call fcn.00407910
lea ecx, [ebp - 0x98]
call fcn.004075ff
cmp byte [0x41b7aa], 0
jne 0x406f8b
cmp dword [0x41b8b8], ebx
jne 0x406f8b
xor edx, edx
mov ecx, str.SelfDelete
call fcn.00404f28
cmp eax, ebx
je 0x406f8b
cmp word [eax], 0x31
jne 0x406f8b
sub esp, 0xc
mov ecx, esp
push 0x41b824
call fcn.0040e87a
call fcn.00405a75
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x4c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
xor eax, eax
jmp 0x406fd9
push 0x10
push 0x418b00
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