Function at 0x40591d
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, 0x2e0
push ebx
push esi
push edi
push 0x404f7f
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00402af0
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - 0x278], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x406dfa
cmp dword [ebp - 0x268], 2
jne 0x406dfa
cmp dword [ebp - 0x274], 5
jb 0x406dfa
lea ecx, [ebp + 0x3c]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x54], 0x41e9c4
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x66], 0
mov byte [ebp + 0x65], 0
mov byte [ebp + 0x5b], 0
call fcn.00414115
lea ecx, [ebp - 0x54]
call fcn.00414115
call fcn.00404a05
push 0x41d59c
lea ecx, [ebp - 0x3c]
call fcn.00414502
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
lea eax, [ebp + 0x3c]
push eax
call esi
push eax
call fcn.004026de
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00414589
lea eax, [ebp - 0x3c]
push eax
call fcn.00403ded
mov ebx, dword [ebp - 0x3c]
pop ecx
push ebx
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor edi, edi
inc edi
push edi
lea eax, [ebx + eax*2]
push 0x41d5e4
push str.SfxVarModulePlatform
mov dword [ebp - 0x30], eax
call fcn.0040463d
add esp, 0xc
push edi
call fcn.0040319a
push eax
push str.SfxVarSystemPlatform
call fcn.0040463d
add esp, 0xc
push edi
call esi
push eax
push str.SfxVarCmdLine0
call fcn.0040463d
movzx eax, word [0x422764]
add esp, 0xc
push eax
push 0x41eca0
push 0x20
lea ecx, [ebp + 0x3c]
call fcn.004039f5
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0x3c]
push esi
call fcn.00402611
mov dword [ebp + 0x40], eax
and word [esi + eax*2], 0
push edi
push dword [ebp + 0x3c]
push str.SfxVarSystemLanguage
call fcn.0040463d
push str.sfxlang
push ebx
call fcn.00404c69
add esp, 0x24
test eax, eax
je 0x405abc
cmp word [eax], 0x3a
jne 0x405abc
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x405aa2
mov word [0x422764], ax
inc ebx
inc ebx
cmp word [ebx], 0x20
ja 0x405aa2
jmp 0x405ab4
cmp ax, 0x20
ja 0x405abc
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405aac
push str.sfxversion
push ebx
call fcn.00404c69
test eax, eax
pop ecx
pop ecx
je 0x405af6
call fcn.004052f6
xor esi, esi
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x54]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, esi
jmp 0x406e11
push 0x41d584
push ebx
call fcn.00404c69
test eax, eax
pop ecx
pop ecx
je 0x405b12
push eax
call fcn.0040158e
pop ecx
mov esi, eax
jmp 0x405ad4
push str.sfxelevation
push ebx
mov byte [ebp + 0x5a], 0
call fcn.00404c69
test eax, eax
pop ecx
pop ecx
je 0x405b3f
mov byte [ebp + 0x5a], 1
jmp 0x405b35
cmp cx, 0x20
ja 0x405b3d
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x405b2d
mov ebx, eax
mov eax, 0x208
push eax
push eax
mov ecx, 0x422838
call fcn.004039f5
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x405b6e
push 6
push edi
call fcn.00408ff6
pop ecx
pop ecx
mov esi, edi
jmp 0x405ad4
mov esi, dword [0x422838]
push esi
call fcn.00402611
mov dword [0x42283c], eax
and word [esi + eax*2], 0
mov dword [esp], str.sfxtest
push ebx
call fcn.00404c69
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x405d34
push 0x3a
pop ebx
cmp word [esi], bx
je 0x405bad
push 0x64
pop esi
jmp 0x405ad4
movzx ecx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
je 0x405cb3
dec eax
dec eax
je 0x405c9f
dec eax
je 0x405c22
sub eax, 0xb
je 0x405bdf
sub eax, 7
jne 0x405ba5
mov esi, 0x4f21
jmp 0x405ad4
cmp word [esi + 4], bx
jne 0x405ad2
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x405b67
dec eax
je 0x405c18
dec eax
je 0x405c14
dec eax
je 0x405c0a
dec eax
jne 0x405ad2
push 7
jmp 0x405ba7
mov esi, 0xfff
jmp 0x405ad4
push 0x1f
jmp 0x405ba7
mov esi, 0x5ff
jmp 0x405ad4
cmp cx, 0x44
jne 0x405c63
cmp word [esi + 4], bx
jne 0x405ba5
add esi, 6
jmp 0x405c4c
cmp ax, bx
je 0x405c55
movzx eax, ax
push eax
mov ecx, 0x422890
call fcn.0040119e
inc esi
inc esi
movzx eax, word [esi]
cmp ax, 0x20
ja 0x405c37
cmp dword [0x422894], 0
jne 0x405c66
jmp 0x405ba5
add esi, 4
and dword [0x422888], 0
cmp word [esi], bx
jne 0x405c8d
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x422888], eax
ja 0x405c8d
test eax, eax
jne 0x405c97
mov dword [0x422888], 0xa
mov dword [0x42288c], edi
jmp 0x405cc1
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x42288c], eax
jmp 0x405cc1
mov dword [0x42288c], 2
jmp 0x405cc1
inc esi
inc esi
cmp word [esi], 0x20
ja 0x405cbf
jmp 0x405cd1
cmp ax, 0x20
ja 0x405cd9
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x405cc9
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00404c69
test eax, eax
pop ecx
pop ecx
je 0x405d34
cmp word [eax], 0x3a
jne 0x405cfc
jmp 0x405cfa
cmp cx, 0x20
ja 0x405d04
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x405cf4
mov ecx, dword [ebp + 0x3c]
and dword [ebp + 0x40], 0
and word [ecx], 0
lea ecx, [ebp + 0x3c]
push ecx
push eax
call fcn.004026de
cmp dword [0x42288c], 2
pop ecx
pop ecx
mov ebx, eax
je 0x405d34
lea eax, [ebp + 0x3c]
push eax
mov ecx, 0x422838
call fcn.00414160
mov esi, 0x422838
push esi
mov ecx, 0x4227e0
call fcn.00414160
mov edi, 0x4227ec
push esi
mov ecx, edi
call fcn.00414160
push esi
call fcn.00402acd
test eax, eax
pop ecx
jl 0x405dee
mov dword [0x4227e4], eax
lea esi, [eax + eax]
mov eax, dword [0x4227e0]
and word [esi + eax], 0
mov eax, dword [0x422838]
lea eax, [esi + eax + 2]
push eax
mov ecx, edi
call fcn.00414531
mov eax, dword [0x422838]
lea eax, [esi + eax + 2]
mov esi, 0x422804
push eax
mov ecx, esi
call fcn.00414531
push 0x2e
mov ecx, esi
call fcn.00414217
test eax, eax
jle 0x405db6
mov ecx, dword [0x422804]
mov dword [0x422808], eax
and word [ecx + eax*2], 0
push esi
mov esi, 0x4227f8
mov ecx, esi
call fcn.00414160
push 4
call fcn.00402f87
pop ecx
push eax
mov ecx, esi
call fcn.00414589
mov eax, dword [0x422804]
mov ecx, dword [0x4227f8]
mov dword [0x422798], eax
mov dword [0x4227a0], ecx
mov dword [0x4227a4], eax
xor esi, esi
call fcn.0040319a
push eax
mov ecx, 0x422810
call fcn.00414531
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x405e23
mov dword [eax + 4], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax], 0x41eab4
mov dword [ebp + 0x10], eax
jmp 0x405e26
mov dword [ebp + 0x10], esi
push dword [ebp + 0x10]
lea ecx, [ebp + 0x60]
call fcn.00417cd4
push dword [0x422838]
mov ecx, dword [ebp + 0x10]
call fcn.00409672
test al, al
jne 0x405e69
push dword [0x422838]
push 7
push 1
call fcn.00408ff6
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, esi
je 0x405e62
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x405ba7
lea ecx, [ebp + 0x48]
call fcn.00413f2b
mov edi, dword [ebp + 0x60]
lea eax, [ebp + 0x48]
push eax
push edi
call fcn.004037cf
test al, al
pop ecx
pop ecx
jne 0x405ea8
push 9
push esi
call fcn.00408ff6
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405ea1
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405ba7
cmp dword [0x42288c], esi
jne 0x405f3a
push str.sfxconfig
push ebx
call fcn.00404c69
cmp eax, esi
pop ecx
pop ecx
je 0x405f3a
cmp word [eax], 0x3a
jne 0x405ecd
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405f1e
cmp cx, 0x20
ja 0x405ee5
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x405ed5
cmp word [eax], si
je 0x405f1e
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.004057f0
test al, al
pop ecx
pop ecx
jne 0x405f1e
push 0xa
push esi
call fcn.00408ff6
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405f17
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405ba7
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp edi, esi
pop ecx
je 0x405ad2
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x405ad2
mov ecx, 0x422844
call fcn.004057a1
cmp dword [ebp + 0x4c], esi
je 0x405f64
lea eax, [ebp + 0x48]
push esi
push eax
call fcn.004046f2
test al, al
pop ecx
pop ecx
jne 0x405f64
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405f0d
cmp dword [0x42288c], 4
je 0x405f1e
mov eax, dword [0x4220b8]
mov edi, 0x4220b8
jmp 0x405fae
push eax
lea eax, [ebp - 0xb8]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push dword [edi]
call fcn.00402f87
pop ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040463d
add esp, 0xc
add edi, 0x10
mov eax, dword [edi]
test eax, eax
jne 0x405f79
call fcn.00404ce4
push 1
push 0x41d64c
dec ebx
push str.SfxVarCmdLine2
dec ebx
call fcn.0040463d
add esp, 0xc
push 0x30
pop esi
jmp 0x405fd4
inc ebx
inc ebx
cmp word [ebx], 0x20
ja 0x405fd2
jmp 0x405fe4
cmp ax, 0x20
ja 0x405fec
inc ebx
inc ebx
movzx eax, word [ebx]
test ax, ax
jne 0x405fdc
movzx eax, word [ebx]
cmp ax, 0x2f
je 0x405fff
cmp ax, 0x2d
jne 0x406265
lea edi, [ebx + 2]
cmp word [edi], 0x21
je 0x40625c
push 0x41ebe4
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x406066
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp ax, si
jb 0x40602e
cmp ax, 0x39
jbe 0x406046
cmp ax, 0x61
jb 0x40603a
cmp ax, 0x7a
jbe 0x406046
cmp ax, 0x41
jb 0x406053
cmp ax, 0x5a
ja 0x406053
mov dword [ebp + 0x54], ecx
mov byte [ebp + 0x67], 1
mov byte [ebp + 0x66], 1
jmp 0x405fd4
cmp ax, 0x20
ja 0x406265
mov dword [ebp + 0x54], 0x41e9c4
jmp 0x406049
push 0x41ebdc
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x406085
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
jmp 0x4061b7
push 0x41ebd4
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x4060c5
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, si
jb 0x406265
cmp cx, 0x32
ja 0x406265
cmp word [ebx + 8], 0x20
ja 0x406265
push eax
push str.GUIMode
jmp 0x4061b7
push 0x41ebcc
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x4060e4
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x4061b7
push 0x41ebc4
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x406103
lea eax, [ebx + 6]
push eax
push str.MiscFlags
jmp 0x4061b7
push 0x41ebbc
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x40613c
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, si
je 0x406129
cmp cx, 0x31
jne 0x406265
cmp word [ebx + 8], 0x20
ja 0x406265
push eax
push str.SelfDelete
jmp 0x4061b7
push 0x41ebb4
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x406161
cmp word [ebx + 6], 0x20
ja 0x406265
mov byte [ebp + 0x65], 1
jmp 0x405fd4
push 0x41d5fc
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x40619d
lea eax, [ebx + 6]
movzx ecx, word [eax]
cmp cx, si
jb 0x406265
cmp cx, 0x39
ja 0x406265
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4223b8], eax
jmp 0x405fd4
push 0x41ebac
push edi
call fcn.004026a4
test eax, eax
pop ecx
pop ecx
je 0x4061c3
lea eax, [ebx + 8]
push eax
push str.BeginPromptTimeout
call fcn.0040518e
pop ecx
pop ecx
jmp 0x405fd4
movzx eax, word [edi]
cmp ax, 0x70
je 0x40622b
cmp ax, 0x50
je 0x40622b
cmp ax, 0x79
je 0x4061de
cmp ax, 0x59
jne 0x4061ee
cmp word [ebx + 4], 0x20
ja 0x4061ee
mov byte [ebp + 0x67], 1
jmp 0x405fd4
cmp ax, 0x3f
je 0x406200
cmp ax, 0x68
je 0x406200
cmp ax, 0x48
jne 0x406210
cmp word [ebx + 4], 0x20
ja 0x406210
mov byte [ebp + 0x5b], 1
jmp 0x405fd4
push edi
call fcn.00405096
test eax, eax
pop ecx
je 0x406265
cmp eax, 1
je 0x4062bd
mov ebx, eax
jmp 0x405fd4
lea ecx, [ebp - 0x14]
call fcn.00414115
lea eax, [ebp - 0x14]
push eax
add ebx, 4
push ebx
call fcn.004026de
push dword [ebp - 0x14]
dec eax
dec eax
mov ebx, eax
call fcn.004019fd
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405fd4
mov edi, ebx
add ebx, 4
test edi, edi
jne 0x406267
mov edi, ebx
cmp dword [ebp + 0x5c], edi
je 0x4062da
push dword [ebp + 0x5c]
lea ecx, [ebp + 4]
call fcn.00414502
sub edi, dword [ebp + 0x5c]
lea eax, [ebp + 4]
push eax
sar edi, 1
push edi
lea ecx, [ebp + 0x30]
call fcn.0041409e
push dword [ebp + 0x30]
lea ecx, [ebp + 0x3c]
call fcn.00414531
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
lea ecx, [ebp + 0x3c]
call fcn.00414242
lea ecx, [ebp + 0x3c]
call fcn.0041460b
push 1
push dword [ebp + 0x3c]
jmp 0x4062e1
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
test eax, eax
pop ecx
je 0x4062d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x405ba7
push 1
push 0x41d64c
push str.SfxVarCmdLine1
call fcn.0040463d
add esp, 0xc
push ebx
lea ecx, [ebp + 4]
call fcn.00414502
lea eax, [ebp + 4]
push eax
mov eax, dword [ebp - 0x30]
sub eax, ebx
sar eax, 1
push eax
lea ecx, [ebp + 0x30]
call fcn.0041409e
push dword [ebp + 0x30]
lea ecx, [ebp + 0x3c]
call fcn.00414531
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
lea ecx, [ebp + 0x3c]
call fcn.00414242
lea ecx, [ebp + 0x3c]
call fcn.0041460b
push 1
push dword [ebp + 0x3c]
push str.SfxVarCmdLine2
call fcn.0040463d
add esp, 0xc
call fcn.00404ce4
cmp byte [ebp + 0x5a], 0
jne 0x4064bc
test byte [0x4227b4], 4
je 0x4064bc
call fcn.0040323c
test eax, eax
jne 0x4064bc
lea ecx, [ebp - 8]
call fcn.00414115
lea ecx, [ebp - 0x14]
call fcn.00414115
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call fcn.004026de
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.00414502
push str.sfxelevation
push 0x41d57c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push 0x41d578
push eax
call fcn.004144dd
add esp, 0xc
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004144b8
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004144b8
add esp, 0xc
push 0x20
push eax
lea ecx, [ebp + 4]
call fcn.00414455
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00414498
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.00414531
push dword [ebp + 0x18]
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 - 0x60]
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 - 0x20]
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]
push 0
push 2
push dword [ebp - 0x14]
call fcn.0040121c
add esp, 0xc
test eax, eax
push dword [ebp + 0x30]
jne 0x406486
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
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__
mov eax, dword [ebp + 0x60]
add esp, 0x10
test eax, eax
je 0x40647f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x405ba7
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x14]
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__
mov eax, dword [ebp + 0x60]
add esp, 0x10
test eax, eax
je 0x405ad2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405ad2
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
mov esi, str.SetEnvironment
push esi
call fcn.00403efd
pop ecx
pop ecx
jmp 0x406520
push edi
lea ecx, [ebp + 0x18]
call fcn.00414502
push 0x3d
push dword [ebp + 0x18]
call fcn.00413dbf
test eax, eax
pop ecx
pop ecx
jle 0x406528
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], eax
add eax, eax
and word [eax + ecx], 0
push 0
lea eax, [eax + edi + 2]
push eax
push dword [ebp + 0x18]
call fcn.0040463d
push dword [ebp + 0x18]
inc dword [ebp + 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
lea eax, [ebp + 0x14]
push eax
push esi
call fcn.00403efd
add esp, 0x18
mov edi, eax
test edi, edi
jne 0x4064d3
jmp 0x406531
push dword [ebp + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.004055ca
xor edi, edi
cmp dword [0x4223ac], 0xffffffff
jne 0x406547
mov dword [0x4223ac], edi
cmp byte [ebp + 0x5b], 0
je 0x4065a8
push edi
push str.HelpText
call fcn.00403efd
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x40656a
push 0x18
call fcn.00402f87
pop ecx
mov esi, eax
lea ecx, [ebp - 0xb4]
call fcn.004049ec
push edi
push esi
push dword [0x422798]
lea ecx, [ebp - 0xb4]
push 0x11
call fcn.00407dee
lea ecx, [ebp - 0xb4]
call fcn.00407bfc
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
pop ecx
cmp eax, edi
jmp 0x4064ab
cmp byte [ebp + 0x67], 0
je 0x4065b8
and dword [0x4223ac], 0xfffffeff
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
push str.SfxAuthor
call fcn.00403efd
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x4066b6
lea eax, [ebp - 0x164]
push eax
call fcn.0040a8e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x164]
push esi
push eax
call fcn.0040ab40
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.0040ac00
add esp, 0x14
push 8
pop ecx
mov esi, str.123456789ABCDEFGHJKMNPQRSTUVWXYZ
lea edi, [ebp - 0xfc]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov edx, dword [ebp + ecx*4 - 0xc8]
lea eax, [ebp + ecx*4 - 0xd8]
xor dword [eax], edx
inc ecx
cmp ecx, 4
jl 0x406623
xor edi, edi
mov dword [ebp + 0x5c], edi
mov ecx, dword [ebp + 0x5c]
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
and ecx, 0x80000007
movzx esi, byte [ebp + eax - 0xd8]
jns 0x406661
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [ebp + 0x5c]
shr esi, cl
and esi, 0x1f
test eax, eax
je 0x406682
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x406682
mov word [ebp + edi*2 - 0xa0], 0x2d
inc edi
movsx ax, byte [ebp + esi - 0xfc]
add dword [ebp + 0x5c], 5
mov word [ebp + edi*2 - 0xa0], ax
inc edi
cmp dword [ebp + 0x5c], 0x7d
jl 0x40663e
and word [ebp + edi*2 - 0xa0], 0
lea eax, [ebp - 0xa0]
push eax
call fcn.004019fd
pop ecx
xor edi, edi
push edi
push str.InstallPath
call fcn.00403efd
cmp eax, edi
pop ecx
pop ecx
mov esi, 0x4227d4
je 0x4066db
push eax
mov ecx, esi
call fcn.00414531
mov byte [0x42277c], 1
push esi
call fcn.00404b04
push edi
push str.BeginPromptTimeout
call fcn.00403efd
add esp, 0xc
cmp eax, edi
je 0x406700
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x4227c0], eax
cmp dword [0x422894], edi
je 0x40672e
call fcn.004097d7
push dword [ebp + 0x48]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
je 0x405ad4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405ad4
cmp dword [0x42288c], 3
jne 0x40673e
call fcn.004096f0
jmp 0x40670d
test byte [0x4227b4], 8
jne 0x406779
mov esi, dword [ebp + 0x60]
push esi
call fcn.00401fc9
test eax, eax
pop ecx
jne 0x406779
push 8
push edi
call fcn.00408ff6
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp esi, edi
je 0x406772
mov eax, dword [esi]
push esi
call dword [eax + 8]
push 5
jmp 0x405ba7
push 0
mov esi, 0x41d64c
push esi
push str.SfxVarApiPath
call fcn.0040463d
call fcn.004055ca
push 0
mov edi, str.ExecuteOnLoad
push edi
call fcn.00403efd
add esp, 0x14
test eax, eax
je 0x406807
cmp byte [ebp + 0x65], 0
jne 0x406807
cmp byte [0x42277c], 0
je 0x406807
mov ecx, 0x42281c
call fcn.00406f66
push 0
push dword [0x422820]
push str.SfxVarApiPath
call fcn.0040463d
add esp, 0xc
call fcn.004055ca
push esi
lea ecx, [ebp + 0x30]
call fcn.00414502
mov ecx, 0x42281c
call fcn.00406f66
push esi
lea eax, [ebp + 0x30]
push eax
push esi
push dword [0x422820]
push edi
call fcn.0040192e
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
xor edi, edi
push edi
push 0x41e91c
call fcn.00403efd
cmp eax, edi
pop ecx
pop ecx
je 0x40685d
cmp byte [ebp + 0x67], 0
jne 0x40685d
push eax
push dword [0x422798]
call fcn.00408dc2
test eax, eax
pop ecx
pop ecx
je 0x406973
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40684b
mov byte [ebp + 0x67], 1
mov byte [ebp + 0x66], 1
cmp dword [0x422874], edi
je 0x40685d
and dword [0x4223ac], 0xffffff7f
lea ecx, [ebp + 0x24]
call fcn.00414115
cmp byte [ebp + 0x66], 0
je 0x4068d3
mov edi, dword [ebp + 0x54]
push str.AutoInstall
lea ecx, [ebp + 0x24]
call fcn.00414531
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x24]
call fcn.0040119e
push 0
push dword [ebp + 0x24]
call fcn.00403efd
test eax, eax
pop ecx
pop ecx
je 0x406992
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x30
jb 0x4068ac
cmp ax, 0x39
jbe 0x40686e
cmp ax, 0x61
jb 0x4068b8
cmp ax, 0x7a
jbe 0x40686e
cmp ax, 0x41
jb 0x4068c4
cmp ax, 0x5a
jbe 0x40686e
push str.AutoInstall
lea ecx, [ebp + 0x24]
call fcn.00414531
xor edi, edi
cmp dword [ebp + 0x28], edi
mov byte [ebp + 0x5c], 0
jne 0x406921
push edi
push str.ExecuteFile
call fcn.00403efd
test eax, eax
pop ecx
pop ecx
je 0x4068fe
push str.ExecuteFile
lea ecx, [ebp + 0x24]
call fcn.00414531
mov byte [ebp + 0x5c], 1
cmp dword [ebp + 0x28], edi
jne 0x406921
push edi
push str.RunProgram
call fcn.00403efd
test eax, eax
pop ecx
pop ecx
je 0x406921
push str.RunProgram
lea ecx, [ebp + 0x24]
call fcn.00414531
cmp byte [ebp + 0x66], 0
jne 0x4069d5
cmp byte [ebp + 0x67], 0
jne 0x4069d5
mov eax, dword [0x4223ac]
and ax, 0xc0
cmp al, 0x80
jne 0x4069d5
push dword [0x42278c]
push dword [0x422790]
call fcn.00408e40
test eax, eax
pop ecx
pop ecx
jne 0x4069d5
cmp byte [0x4227c4], al
push dword [ebp + 0x24]
je 0x4069c5
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406807
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
cmp eax, edi
pop ecx
je 0x406772
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406772
push dword [ebp + 0x24]
push 0xe
push 0
call fcn.00408ff6
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x14
test eax, eax
je 0x4069be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405ba7
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40697b
cmp dword [0x4227d8], edi
jne 0x406a09
lea eax, [ebp - 0x20]
push str.7ZipSfx._03x
push eax
call fcn.00403a9c
pop ecx
pop ecx
push eax
mov ecx, 0x4227d4
call fcn.00414160
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x42277c], 0
jmp 0x406a43
mov edi, 0x4227d4
push edi
lea ecx, [ebp - 8]
call fcn.00414138
lea eax, [ebp - 8]
push eax
call fcn.00404b04
cmp dword [ebp - 4], 0
pop ecx
je 0x406a32
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.00414160
push dword [ebp - 8]
mov byte [0x42277c], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor edi, edi
mov eax, dword [0x4227d4]
pop ecx
mov ecx, dword [0x4227d8]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x406a60
cmp dx, 0x2f
jne 0x406a6b
dec ecx
mov dword [0x4227d8], ecx
mov word [eax + ecx*2], di
cmp byte [ebp + 0x67], 0
je 0x406a78
or dword [0x4227b4], 3
mov edi, str.PreExtract
push edi
lea ecx, [ebp - 0x2c]
call fcn.00414502
mov eax, dword [ebp + 0x54]
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040119e
push 0
push dword [ebp - 0x2c]
call fcn.00403efd
test eax, eax
pop ecx
pop ecx
je 0x406b0a
cmp byte [ebp + 0x65], 0
jne 0x406b0a
cmp byte [0x42277c], 0
je 0x406b0a
mov ecx, 0x42281c
call fcn.00406f66
push 0
push dword [0x422820]
push str.SfxVarApiPath
call fcn.0040463d
add esp, 0xc
call fcn.004055ca
push esi
lea ecx, [ebp + 0x30]
call fcn.00414502
mov ecx, 0x42281c
call fcn.00406f66
push esi
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x54]
push dword [0x422820]
push edi
call fcn.0040192e
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
cmp dword [0x422888], 0
jne 0x406b24
push 0x4227d4
push dword [ebp + 0x10]
call fcn.004024e2
pop ecx
pop ecx
jmp 0x406b32
call fcn.00408e80
test eax, eax
jne 0x406b6a
mov eax, 0x80004005
test eax, eax
je 0x406b6a
call fcn.00404f69
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0xc
test eax, eax
je 0x406b63
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x405ba7
call fcn.004055ca
cmp byte [ebp + 0x65], 0
je 0x406b82
cmp byte [0x42277c], 0
jne 0x406d04
lea ecx, [ebp + 0x18]
call fcn.00414115
lea ecx, [ebp + 4]
call fcn.00414115
cmp byte [ebp + 0x66], 0
jne 0x406ba2
lea eax, [ebp + 0x18]
push eax
call fcn.004011cb
pop ecx
xor edi, edi
cmp dword [ebp + 0x28], edi
jne 0x406c8b
cmp byte [0x42277c], 0
jne 0x406ca4
mov esi, str.setup.exe
push esi
push 0x41d888
lea eax, [ebp - 0x48]
push 0x4227d4
push eax
call fcn.004144b8
add esp, 0xc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004144b8
add esp, 0xc
push dword [eax]
lea ecx, [ebp + 4]
call fcn.00414531
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x48]
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 0x406c5b
call fcn.00404f69
push 0xf
push edi
call fcn.00408ff6
push dword [ebp + 4]
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 - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0x1c
cmp eax, edi
je 0x405c06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405c06
mov edi, dword [0x4227d4]
push esi
lea ecx, [ebp + 0x30]
call fcn.00414502
push ebx
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x5c]
lea eax, [ebp + 0x30]
push edi
push eax
call fcn.004015eb
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x18
xor edi, edi
jmp 0x406ca4
push ebx
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x54]
push dword [0x4227d4]
push dword [ebp + 0x24]
call fcn.0040192e
add esp, 0x14
cmp dword [0x42288c], edi
jne 0x406cf0
call fcn.004055ca
push 0xffffffffffffffff
push dword [ebp + 0x54]
push str.Shortcut
push 0x405621
call fcn.00405217
add esp, 0x10
push dword [0x4227e0]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push 0xffffffffffffffff
push dword [ebp + 0x54]
push str.Delete
push 0x4051e8
call fcn.00405217
add esp, 0x10
call fcn.00404f69
push dword [ebp + 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406d06
xor edi, edi
cmp dword [0x4223b8], 0xffffffff
jne 0x406d1f
cmp byte [ebp + 0x67], 0
jne 0x406d77
mov dword [0x4223b8], 1
cmp dword [0x4223b8], edi
jle 0x406d77
push edi
push str.FinishMessage
call fcn.00403efd
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x406d77
mov eax, 0x3e7
cmp dword [0x4223b8], eax
jle 0x406d4c
mov dword [0x4223b8], eax
lea ecx, [ebp - 0xb0]
call fcn.00404ff1
push edi
push esi
push dword [0x422798]
lea ecx, [ebp - 0xb0]
push 0x11
call fcn.00407dee
lea ecx, [ebp - 0xb0]
call fcn.00407bfc
cmp byte [ebp + 0x65], 0
jne 0x406db3
cmp dword [0x42288c], edi
jne 0x406db3
push edi
push str.SelfDelete
call fcn.00403efd
cmp eax, edi
pop ecx
pop ecx
je 0x406db3
cmp word [eax], 0x31
jne 0x406db3
sub esp, 0xc
mov ecx, esp
push 0x422838
call fcn.00414138
call fcn.004053e7
add esp, 0xc
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x24]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x48]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x60]
add esp, 0xc
cmp eax, edi
je 0x406ddb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x54]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x3c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor eax, eax
jmp 0x406e11
push 0x10
push str.7_Zip_SFX
push 0x41eac8
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