Function at 0x406068
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 0x405ad3
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00403878
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - 0x26c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407037
cmp dword [ebp - 0x25c], 2
jne 0x407037
cmp dword [ebp - 0x268], 5
jb 0x407037
lea ecx, [ebp + 0x24]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
call fcn.00410ea0
lea ecx, [ebp - 0x48]
call fcn.00410ea0
lea ecx, [ebp - 8]
call fcn.00410ea0
call fcn.0040545e
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00403066
push eax
lea ecx, [ebp - 8]
call fcn.00410f25
lea ecx, [ebp - 8]
call fcn.004045c2
mov edi, dword [ebp - 8]
xor ebx, ebx
inc ebx
push ebx
mov edx, 0x41ad10
mov ecx, str.SfxVarModulePlatform
call fcn.00404fad
push ebx
call fcn.00403f39
mov edx, eax
mov ecx, str.SfxVarSystemPlatform
call fcn.00404fad
push ebx
call esi
mov edx, eax
mov ecx, str.SfxVarCmdLine0
call fcn.00404fad
movzx eax, word [0x41e730]
push eax
push 0x41bd9c
push 0x20
lea ecx, [ebp + 0x24]
call fcn.0040424f
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp + 0x24]
call fcn.00404234
mov edx, dword [ebp + 0x24]
push ebx
mov ecx, str.SfxVarSystemLanguage
call fcn.00404fad
mov edx, str.sfxlang
mov ecx, edi
call fcn.004056fe
test eax, eax
je 0x4061b7
cmp word [eax], 0x3a
jne 0x4061b7
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x4061ae
mov word [0x41e730], ax
add edi, 2
cmp word [edi], 0x20
ja 0x4061ae
mov edx, str.sfxversion
mov ecx, edi
call fcn.004056fe
test eax, eax
je 0x4061f0
call fcn.00405ce5
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 0x40704e
mov edx, str.sfxwaitall
mov ecx, edi
call fcn.004056fe
test eax, eax
je 0x40620b
mov ecx, eax
call fcn.00401f8e
mov esi, eax
jmp 0x4061ce
mov edx, str.sfxelevation
mov ecx, edi
mov byte [ebp + 0x67], 0
call fcn.004056fe
test eax, eax
je 0x406225
mov byte [ebp + 0x67], 1
mov edi, eax
mov eax, 0x208
push eax
mov ebx, 0x41e844
push eax
mov ecx, ebx
call fcn.0040424f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x406257
xor esi, esi
inc esi
push 6
push esi
call fcn.004096c8
pop ecx
pop ecx
jmp 0x4061ce
mov ecx, ebx
call fcn.00404234
mov edx, str.sfxtest
mov ecx, edi
call fcn.004056fe
mov esi, eax
test esi, esi
je 0x4063ff
cmp word [esi], 0x3a
je 0x406282
push 0x64
pop esi
jmp 0x4061ce
movzx ecx, word [esi + 2]
push 0x20
mov eax, ecx
pop edi
or eax, edi
sub eax, 0x61
je 0x406394
dec eax
dec eax
je 0x406380
dec eax
je 0x4062fd
sub eax, 0xb
je 0x4062b5
sub eax, 7
jne 0x40627a
mov esi, 0x4f3c
jmp 0x4061ce
cmp word [esi + 4], 0x3a
jne 0x4061cc
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4062f5
dec eax
je 0x4062eb
dec eax
je 0x4062e7
dec eax
je 0x4062dd
dec eax
jne 0x4061cc
push 7
jmp 0x40627c
mov esi, 0x3fff
jmp 0x4061ce
push 0x1f
jmp 0x40627c
mov esi, 0x597
jmp 0x4061ce
xor esi, esi
inc esi
jmp 0x4061ce
cmp ecx, 0x44
jne 0x40633f
cmp word [esi + 4], 0x3a
jne 0x40627a
add esi, 6
jmp 0x406329
cmp ax, 0x3a
je 0x406331
movzx eax, ax
push eax
mov ecx, 0x41e8dc
call fcn.00401567
add esi, 2
movzx eax, word [esi]
cmp ax, di
ja 0x406312
cmp dword [0x41e8e0], 0
jne 0x406342
jmp 0x40627a
add esi, 4
and dword [0x41e8d4], 0
cmp word [esi], 0x3a
jne 0x40636a
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e8d4], eax
cmp eax, 0xe10
ja 0x40636a
test eax, eax
jne 0x406374
mov dword [0x41e8d4], 0xa
mov dword [0x41e8d8], 1
jmp 0x4063a3
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41e8d8], eax
jmp 0x4063a3
mov dword [0x41e8d8], 2
jmp 0x4063a3
add esi, 2
cmp word [esi], di
ja 0x4063a0
mov edx, str.sfxconfig
mov ecx, esi
mov edi, esi
call fcn.004056fe
test eax, eax
je 0x4063ff
cmp word [eax], 0x3a
jne 0x4063cb
jmp 0x4063c8
cmp cx, 0x20
ja 0x4063d3
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4063c2
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.00403066
cmp dword [0x41e8d8], 2
mov edi, eax
je 0x4063ff
lea eax, [ebp + 0x24]
push eax
mov ecx, ebx
call fcn.00410f88
mov esi, 0x41e844
push esi
mov ecx, 0x41e794
call fcn.00410f88
mov ebx, 0x41e7ac
push esi
mov ecx, ebx
call fcn.00410f88
mov ecx, esi
call fcn.00403857
test eax, eax
js 0x4064bc
mov ecx, dword [0x41e794]
mov dword [0x41e798], eax
lea esi, [eax + eax]
xor eax, eax
mov word [esi + ecx], ax
mov eax, dword [0x41e844]
lea eax, [esi + eax + 2]
push eax
mov ecx, ebx
call fcn.00410f25
mov eax, dword [0x41e844]
lea eax, [esi + eax + 2]
mov esi, 0x41e890
push eax
mov ecx, esi
call fcn.00410f25
push 0x2e
mov ecx, esi
call fcn.0041113a
test eax, eax
jle 0x406484
mov edx, dword [0x41e890]
xor ecx, ecx
mov dword [0x41e894], eax
mov word [edx + eax*2], cx
push esi
mov esi, 0x41e85c
mov ecx, esi
call fcn.00410f88
push 4
pop ecx
call fcn.00403d24
push eax
mov ecx, esi
call fcn.00410fe3
mov eax, dword [0x41e890]
mov ecx, dword [0x41e85c]
mov dword [0x41e738], eax
mov dword [0x41e760], ecx
mov dword [0x41e764], eax
call fcn.00403f39
push eax
mov ecx, 0x41e850
call fcn.00410f25
push dword [0x41e844]
mov ebx, 0x41e7b8
mov ecx, ebx
call fcn.004012b1
test al, al
jne 0x4064fb
push dword [0x41e844]
push 7
push 1
call fcn.004096c8
add esp, 0xc
push 2
jmp 0x40627c
lea ecx, [ebp + 0x58]
call fcn.00410a83
mov ecx, 0x41e7a0
call fcn.00405f2f
mov ecx, dword [0x41e7bc]
lea eax, [ebp + 0x58]
push eax
xor dl, dl
call fcn.0040535d
mov esi, eax
test esi, esi
je 0x406531
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
jmp 0x406251
cmp dword [0x41e8d8], 0
jne 0x4065a7
mov edx, str.sfxconfig
mov ecx, edi
call fcn.004056fe
test eax, eax
je 0x4065a7
cmp word [eax], 0x3a
jne 0x406553
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x406975
cmp cx, 0x20
ja 0x406570
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40655f
cmp word [eax], 0
je 0x406975
lea edx, [ebp + 0x58]
mov ecx, eax
call fcn.00405f53
test al, al
jne 0x406975
push 0xa
push 0
call fcn.004096c8
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push 4
jmp 0x40627c
cmp dword [0x41e8d8], 4
je 0x406975
mov eax, dword [0x41e148]
mov esi, 0x41e148
jmp 0x4065f1
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.00403d24
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00404fad
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x4065c0
push edi
mov ecx, ebx
call fcn.0040543f
call fcn.004016e0
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x406619
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 0x20
jmp 0x40627c
call fcn.0040576d
xor edx, edx
mov ecx, str.SfxAuthor
call fcn.00404f9d
mov esi, eax
test esi, esi
je 0x406718
lea ecx, [ebp - 0x158]
call fcn.0040b170
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040b3c0
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x158]
call fcn.0040b670
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 0x40667a
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 0x4066b6
dec ecx
or ecx, 0xfffffff8
inc ecx
shr esi, cl
and esi, 0x1f
test edi, edi
je 0x4066d7
mov eax, edi
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x4066d7
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 0x406694
xor eax, eax
mov word [ebp + ebx*2 - 0x88], ax
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x41e708
call fcn.00410f25
mov byte [0x41e700], 1
mov ebx, 0x41e7b8
mov ecx, ebx
call fcn.004012e5
mov ecx, 0x41e7a0
call fcn.00405f2f
mov ecx, dword [0x41e7bc]
xor esi, esi
push esi
xor dl, dl
call fcn.0040535d
call fcn.0040576d
mov ecx, ebx
call fcn.0040134a
call fcn.004016e0
call fcn.0040576d
cmp byte [ebp + 0x67], 0
jne 0x406890
test byte [0x41e774], 4
je 0x406890
call fcn.00403f4e
test eax, eax
jne 0x406890
lea ecx, [ebp + 0x18]
call fcn.00410ea0
lea ecx, [ebp - 0x30]
call fcn.00410ea0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp + 0x18]
mov ecx, eax
call fcn.00403066
push eax
lea ecx, [ebp + 0x30]
call fcn.00410ec4
push str.sfxelevation
push 0x41aaec
lea eax, [ebp + 0x18]
push eax
mov edx, 0x41a9f0
lea ecx, [ebp - 0x14]
call fcn.00410e72
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00410e48
mov edx, eax
lea ecx, [ebp - 0xac]
call fcn.00410e48
push 0x20
push eax
lea ecx, [ebp + 4]
call fcn.00410da2
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 4]
lea ecx, [ebp + 0x40]
call fcn.00410e2c
push dword [eax]
lea ecx, [ebp - 0x30]
call fcn.00410f25
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.00401c3b
push dword [ebp + 0x30]
test eax, eax
jne 0x40686b
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 0x40627c
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 0x4061cc
mov dword [ebp + 0x3c], esi
mov esi, str.SetEnvironment
lea edx, [ebp + 0x3c]
mov ecx, esi
call fcn.00404f9d
xor ebx, ebx
jmp 0x4068ef
push edi
lea ecx, [ebp + 0x40]
call fcn.00410ec4
mov ecx, dword [ebp + 0x40]
push 0x3d
pop edx
call fcn.004108cd
cmp eax, ebx
jle 0x4068f7
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.00404fad
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.00404f9d
mov edi, eax
cmp edi, ebx
jne 0x4068a6
jmp 0x406900
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00405dd6
cmp dword [0x41e44c], 0xffffffff
jne 0x406914
mov dword [0x41e44c], ebx
cmp byte [0x41e7cb], bl
je 0x406983
xor edx, edx
mov ecx, str.HelpText
call fcn.00404f9d
mov esi, eax
cmp esi, ebx
jne 0x406938
push 0x18
pop ecx
call fcn.00403d24
mov esi, eax
lea ecx, [ebp - 0x9c]
call fcn.00407613
push 0
push esi
push dword [0x41e738]
lea ecx, [ebp - 0x9c]
push 0x11
mov dword [ebp - 0x9c], 0x41bad4
mov dword [ebp - 0x64], 0x7d6
call fcn.00407985
lea ecx, [ebp - 0x9c]
call fcn.00407674
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4061cc
cmp byte [0x41e7c9], bl
je 0x406995
and dword [0x41e44c], 0xfffffeff
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov ecx, str.InstallPath
call fcn.00404f9d
mov esi, 0x41e89c
cmp eax, ebx
je 0x4069c0
push eax
mov ecx, esi
call fcn.00410f25
mov byte [0x41e740], 1
mov ecx, esi
call fcn.0040555b
xor edx, edx
mov ecx, str.BeginPromptTimeout
call fcn.00404f9d
cmp eax, ebx
je 0x4069e4
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e780], eax
cmp dword [0x41e8e0], ebx
je 0x4069f8
call fcn.00409fc9
mov esi, eax
jmp 0x406524
cmp dword [0x41e8d8], 3
jne 0x406a08
call fcn.00409eeb
jmp 0x4069f1
mov esi, 0x41aa3c
push 0
mov edx, esi
mov ecx, str.SfxVarApiPath
call fcn.00404fad
call fcn.00405dd6
mov edi, str.ExecuteOnLoad
xor edx, edx
mov ecx, edi
call fcn.00404f9d
mov ebx, 0x41e868
test eax, eax
je 0x406a8a
cmp byte [0x41e7ca], 0
jne 0x406a8a
mov ecx, ebx
call fcn.004073b4
mov edx, dword [0x41e86c]
push 0
mov ecx, str.SfxVarApiPath
call fcn.00404fad
call fcn.00405dd6
push esi
lea ecx, [ebp + 0x30]
call fcn.00410ec4
mov ecx, ebx
call fcn.004073b4
mov edx, dword [0x41e86c]
push esi
lea eax, [ebp + 0x30]
push eax
push esi
mov ecx, edi
call fcn.004022d9
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, 0x41e7f0
call fcn.00408350
xor edx, edx
mov ecx, str.BeginPrompt
call fcn.00404f9d
test eax, eax
je 0x406af0
cmp byte [0x41e7c9], 0
jne 0x406af0
mov ecx, dword [0x41e738]
mov edx, eax
call fcn.00408b84
test eax, eax
je 0x406bfc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x406add
mov word [0x41e7c8], 0x101
cmp dword [0x41e8c0], 0
je 0x406af0
and dword [0x41e44c], 0xffffff7f
lea ecx, [ebp + 0x4c]
call fcn.00410ea0
cmp byte [0x41e7c8], 0
je 0x406b63
mov edi, dword [0x41e7c4]
push str.AutoInstall
lea ecx, [ebp + 0x4c]
call fcn.00410f25
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x4c]
call fcn.00401567
mov ecx, dword [ebp + 0x4c]
xor edx, edx
call fcn.00404f9d
test eax, eax
je 0x406c0c
add edi, 2
movzx eax, word [edi]
cmp eax, 0x30
jb 0x406b42
cmp eax, 0x39
jbe 0x406b07
cmp eax, 0x61
jb 0x406b4c
cmp eax, 0x7a
jbe 0x406b07
cmp eax, 0x41
jb 0x406b56
cmp eax, 0x5a
jbe 0x406b07
push str.AutoInstall
lea ecx, [ebp + 0x4c]
call fcn.00410f25
cmp dword [ebp + 0x50], 0
mov byte [ebp + 0x14], 0
jne 0x406bad
mov edi, str.ExecuteFile
xor edx, edx
mov ecx, edi
call fcn.00404f9d
test eax, eax
je 0x406b8c
push edi
lea ecx, [ebp + 0x4c]
call fcn.00410f25
mov byte [ebp + 0x14], 1
cmp dword [ebp + 0x50], 0
jne 0x406bad
mov edi, str.RunProgram
xor edx, edx
mov ecx, edi
call fcn.00404f9d
test eax, eax
je 0x406bad
push edi
lea ecx, [ebp + 0x4c]
call fcn.00410f25
cmp byte [0x41e7c8], 0
jne 0x406c42
cmp byte [0x41e7c9], 0
jne 0x406c42
mov eax, dword [0x41e44c]
and eax, 0xc0
cmp al, 0x80
jne 0x406c42
mov edx, dword [0x41e748]
mov ecx, dword [0x41e754]
call fcn.00408c1f
test eax, eax
jne 0x406c42
push dword [ebp + 0x4c]
cmp byte [0x41e784], al
je 0x406c32
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406a94
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 5
jmp 0x40627c
push dword [ebp + 0x4c]
push 0xe
push 0
call fcn.004096c8
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 0x40627c
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 0x406c04
cmp dword [0x41e8a0], 0
jne 0x406c74
mov edx, str.7ZipSfx._03x
lea ecx, [ebp - 0x14]
call fcn.004042f9
push eax
mov ecx, 0x41e89c
call fcn.00410f88
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41e740], 0
jmp 0x406caa
mov edi, 0x41e89c
push edi
lea ecx, [ebp + 0x18]
call fcn.00410efa
lea ecx, [ebp + 0x18]
call fcn.0040555b
cmp dword [ebp + 0x1c], 0
je 0x406c9b
lea eax, [ebp + 0x18]
push eax
mov ecx, edi
call fcn.00410f88
push dword [ebp + 0x18]
mov byte [0x41e740], 1
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41e89c]
pop ecx
mov ecx, dword [0x41e8a0]
movzx edx, word [eax + ecx*2 - 2]
cmp edx, 0x5c
je 0x406cc5
cmp edx, 0x2f
jne 0x406cd2
dec ecx
xor edx, edx
mov dword [0x41e8a0], ecx
mov word [eax + ecx*2], dx
cmp byte [0x41e7c9], 0
je 0x406ce2
or dword [0x41e774], 3
mov edi, str.PreExtract
push edi
lea ecx, [ebp - 0x20]
call fcn.00410ec4
mov eax, dword [0x41e7c4]
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401567
mov ecx, dword [ebp - 0x20]
xor edx, edx
call fcn.00404f9d
test eax, eax
je 0x406d6c
cmp byte [0x41e7ca], 0
jne 0x406d6c
mov ecx, ebx
call fcn.004073b4
mov edx, dword [0x41e86c]
push 0
mov ecx, str.SfxVarApiPath
call fcn.00404fad
call fcn.00405dd6
push esi
lea ecx, [ebp + 0x30]
call fcn.00410ec4
mov eax, dword [0x41e7c4]
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.004073b4
mov edx, dword [0x41e86c]
push esi
lea eax, [ebp + 0x30]
push eax
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004022d9
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41e8d4], 0
jne 0x406d81
mov ecx, 0x41e89c
call fcn.00402cf5
jmp 0x406d8f
call fcn.00408c72
test eax, eax
jne 0x406dba
mov eax, 0x80004005
test eax, eax
je 0x406dba
call fcn.00405abe
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 0x40627c
call fcn.00405dd6
cmp byte [0x41e7ca], 0
je 0x406dd5
cmp byte [0x41e740], 0
jne 0x406f3f
lea ecx, [ebp + 0x40]
call fcn.00410ea0
lea ecx, [ebp + 4]
call fcn.00410ea0
cmp byte [0x41e7c8], 0
jne 0x406df6
lea ecx, [ebp + 0x40]
call fcn.00401b64
xor ebx, ebx
cmp dword [ebp + 0x50], ebx
jne 0x406ec4
cmp byte [0x41e740], bl
jne 0x406edf
mov esi, str.setup.exe
push esi
push 0x41abf8
mov edx, 0x41e89c
lea ecx, [ebp - 0x3c]
call fcn.00410e48
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00410e48
push dword [eax]
lea ecx, [ebp + 4]
call fcn.00410f25
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 0x406e96
call fcn.00405abe
push 0xf
push ebx
call fcn.004096c8
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 0x4062d9
mov edi, dword [0x41e89c]
push esi
lea ecx, [ebp + 0x30]
call fcn.00410ec4
push dword [ebp + 0x10]
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x14]
mov edx, edi
lea ecx, [ebp + 0x30]
call fcn.00401fea
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406edf
push dword [ebp + 0x10]
mov edx, dword [0x41e89c]
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp + 0x40]
push eax
push dword [0x41e7c4]
call fcn.004022d9
cmp dword [0x41e8d8], ebx
jne 0x406f2b
call fcn.00405dd6
push 0xffffffffffffffff
push dword [0x41e7c4]
mov edx, str.Shortcut
mov ecx, 0x405e2b
call fcn.004059e7
push dword [0x41e794]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0xffffffffffffffff
push dword [0x41e7c4]
mov edx, str.Delete
mov ecx, 0x4059bd
call fcn.004059e7
call fcn.00405abe
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 0x406f41
xor ebx, ebx
cmp dword [0x41e458], 0xffffffff
jne 0x406f5d
cmp byte [0x41e7c9], 0
jne 0x406fc5
mov dword [0x41e458], 1
cmp dword [0x41e458], ebx
jle 0x406fc5
xor edx, edx
mov ecx, str.FinishMessage
call fcn.00404f9d
mov esi, eax
cmp esi, ebx
je 0x406fc5
mov eax, 0x3e7
cmp dword [0x41e458], eax
jle 0x406f89
mov dword [0x41e458], eax
lea ecx, [ebp - 0x98]
call fcn.00407613
push ebx
push esi
push dword [0x41e738]
lea ecx, [ebp - 0x98]
push 0x11
mov dword [ebp - 0x98], 0x41bbb4
mov dword [ebp - 0x60], 0x7d5
call fcn.00407985
lea ecx, [ebp - 0x98]
call fcn.00407674
cmp byte [0x41e7ca], 0
jne 0x407000
cmp dword [0x41e8d8], ebx
jne 0x407000
xor edx, edx
mov ecx, str.SelfDelete
call fcn.00404f9d
cmp eax, ebx
je 0x407000
cmp word [eax], 0x31
jne 0x407000
sub esp, 0xc
mov ecx, esp
push 0x41e844
call fcn.00410efa
call fcn.00405aea
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 0x40704e
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