Function at 0x406128
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 0x405b77
call dword [sym.imp.MSVCRT.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.0040391c
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - 0x26c], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4070f7
cmp dword [ebp - 0x25c], 2
jne 0x4070f7
cmp dword [ebp - 0x268], 5
jb 0x4070f7
lea ecx, [ebp + 0x24]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
call fcn.00411b60
lea ecx, [ebp - 0x48]
call fcn.00411b60
lea ecx, [ebp - 8]
call fcn.00411b60
call fcn.00405502
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
call esi
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.0040310a
push eax
lea ecx, [ebp - 8]
call fcn.00411be5
lea ecx, [ebp - 8]
call fcn.00404666
mov edi, dword [ebp - 8]
xor ebx, ebx
inc ebx
push ebx
mov edx, 0x41ad10
mov ecx, str.SfxVarModulePlatform
call fcn.00405051
push ebx
call fcn.00403fdd
mov edx, eax
mov ecx, str.SfxVarSystemPlatform
call fcn.00405051
push ebx
call esi
mov edx, eax
mov ecx, str.SfxVarCmdLine0
call fcn.00405051
movzx eax, word [0x41e730]
push eax
push 0x41bd9c
push 0x20
lea ecx, [ebp + 0x24]
call fcn.004042f3
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp + 0x24]
call fcn.004042d8
mov edx, dword [ebp + 0x24]
push ebx
mov ecx, str.SfxVarSystemLanguage
call fcn.00405051
mov edx, str.sfxlang
mov ecx, edi
call fcn.004057a2
test eax, eax
je 0x406277
cmp word [eax], 0x3a
jne 0x406277
add eax, 2
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x40626e
mov word [0x41e730], ax
add edi, 2
cmp word [edi], 0x20
ja 0x40626e
mov edx, str.sfxversion
mov ecx, edi
call fcn.004057a2
test eax, eax
je 0x4062b0
call fcn.00405da5
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 0x40710e
mov edx, str.sfxwaitall
mov ecx, edi
call fcn.004057a2
test eax, eax
je 0x4062cb
mov ecx, eax
call fcn.00402013
mov esi, eax
jmp 0x40628e
mov edx, str.sfxelevation
mov ecx, edi
mov byte [ebp + 0x67], 0
call fcn.004057a2
test eax, eax
je 0x4062e5
mov byte [ebp + 0x67], 1
mov edi, eax
mov eax, 0x208
push eax
mov ebx, 0x41e844
push eax
mov ecx, ebx
call fcn.004042f3
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x406317
xor esi, esi
inc esi
push 6
push esi
call fcn.0040976c
pop ecx
pop ecx
jmp 0x40628e
mov ecx, ebx
call fcn.004042d8
mov edx, str.sfxtest
mov ecx, edi
call fcn.004057a2
mov esi, eax
test esi, esi
je 0x4064bf
cmp word [esi], 0x3a
je 0x406342
push 0x64
pop esi
jmp 0x40628e
movzx ecx, word [esi + 2]
push 0x20
mov eax, ecx
pop edi
or eax, edi
sub eax, 0x61
je 0x406454
dec eax
dec eax
je 0x406440
dec eax
je 0x4063bd
sub eax, 0xb
je 0x406375
sub eax, 7
jne 0x40633a
mov esi, 0x4f3c
jmp 0x40628e
cmp word [esi + 4], 0x3a
jne 0x40628c
movzx eax, word [esi + 6]
sub eax, 0x31
je 0x4063b5
dec eax
je 0x4063ab
dec eax
je 0x4063a7
dec eax
je 0x40639d
dec eax
jne 0x40628c
push 7
jmp 0x40633c
mov esi, 0x3fff
jmp 0x40628e
push 0x1f
jmp 0x40633c
mov esi, 0x5b7
jmp 0x40628e
xor esi, esi
inc esi
jmp 0x40628e
cmp ecx, 0x44
jne 0x4063ff
cmp word [esi + 4], 0x3a
jne 0x40633a
add esi, 6
jmp 0x4063e9
cmp ax, 0x3a
je 0x4063f1
movzx eax, ax
push eax
mov ecx, 0x41e8dc
call fcn.004015ec
add esi, 2
movzx eax, word [esi]
cmp ax, di
ja 0x4063d2
cmp dword [0x41e8e0], 0
jne 0x406402
jmp 0x40633a
add esi, 4
and dword [0x41e8d4], 0
cmp word [esi], 0x3a
jne 0x40642a
lea eax, [esi + 2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e8d4], eax
cmp eax, 0xe10
ja 0x40642a
test eax, eax
jne 0x406434
mov dword [0x41e8d4], 0xa
mov dword [0x41e8d8], 1
jmp 0x406463
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41e8d8], eax
jmp 0x406463
mov dword [0x41e8d8], 2
jmp 0x406463
add esi, 2
cmp word [esi], di
ja 0x406460
mov edx, str.sfxconfig
mov ecx, esi
mov edi, esi
call fcn.004057a2
test eax, eax
je 0x4064bf
cmp word [eax], 0x3a
jne 0x40648b
jmp 0x406488
cmp cx, 0x20
ja 0x406493
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x406482
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.0040310a
cmp dword [0x41e8d8], 2
mov edi, eax
je 0x4064bf
lea eax, [ebp + 0x24]
push eax
mov ecx, ebx
call fcn.00411c48
mov esi, 0x41e844
push esi
mov ecx, 0x41e794
call fcn.00411c48
mov ebx, 0x41e7ac
push esi
mov ecx, ebx
call fcn.00411c48
mov ecx, esi
call fcn.004038fb
test eax, eax
js 0x40657c
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.00411be5
mov eax, dword [0x41e844]
lea eax, [esi + eax + 2]
mov esi, 0x41e890
push eax
mov ecx, esi
call fcn.00411be5
push 0x2e
mov ecx, esi
call fcn.00411dfa
test eax, eax
jle 0x406544
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.00411c48
push 4
pop ecx
call fcn.00403dc8
push eax
mov ecx, esi
call fcn.00411ca3
mov eax, dword [0x41e890]
mov ecx, dword [0x41e85c]
mov dword [0x41e738], eax
mov dword [0x41e760], ecx
mov dword [0x41e764], eax
call fcn.00403fdd
push eax
mov ecx, 0x41e850
call fcn.00411be5
push dword [0x41e844]
mov ebx, 0x41e7b8
mov ecx, ebx
call fcn.0040130d
test al, al
jne 0x4065bb
push dword [0x41e844]
push 7
push 1
call fcn.0040976c
add esp, 0xc
push 2
jmp 0x40633c
lea ecx, [ebp + 0x58]
call fcn.00411743
mov ecx, 0x41e7a0
call fcn.00405fef
mov ecx, dword [0x41e7bc]
lea eax, [ebp + 0x58]
push eax
xor dl, dl
call fcn.00405401
mov esi, eax
test esi, esi
je 0x4065f1
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
jmp 0x406311
cmp dword [0x41e8d8], 0
jne 0x406667
mov edx, str.sfxconfig
mov ecx, edi
call fcn.004057a2
test eax, eax
je 0x406667
cmp word [eax], 0x3a
jne 0x406613
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x406a35
cmp cx, 0x20
ja 0x406630
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40661f
cmp word [eax], 0
je 0x406a35
lea edx, [ebp + 0x58]
mov ecx, eax
call fcn.00406013
test al, al
jne 0x406a35
push 0xa
push 0
call fcn.0040976c
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push 4
jmp 0x40633c
cmp dword [0x41e8d8], 4
je 0x406a35
mov eax, dword [0x41e148]
mov esi, 0x41e148
jmp 0x4066b1
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.00403dc8
mov edx, eax
lea ecx, [ebp - 0xa0]
call fcn.00405051
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x406680
push edi
mov ecx, ebx
call fcn.004054e3
call fcn.00401765
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x4066d9
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 0x20
jmp 0x40633c
call fcn.00405811
xor edx, edx
mov ecx, str.SfxAuthor
call fcn.00405041
mov esi, eax
test esi, esi
je 0x4067d8
lea ecx, [ebp - 0x158]
call fcn.0040b1f0
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
mov edx, esi
lea ecx, [ebp - 0x158]
call fcn.0040b440
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x158]
call fcn.0040b6f0
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 0x40673a
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 0x406776
dec ecx
or ecx, 0xfffffff8
inc ecx
shr esi, cl
and esi, 0x1f
test edi, edi
je 0x406797
mov eax, edi
push 0x19
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x406797
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 0x406754
xor eax, eax
mov word [ebp + ebx*2 - 0x88], ax
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x41e708
call fcn.00411be5
mov byte [0x41e700], 1
mov ebx, 0x41e7b8
mov ecx, ebx
call fcn.00401341
mov ecx, 0x41e7a0
call fcn.00405fef
mov ecx, dword [0x41e7bc]
xor esi, esi
push esi
xor dl, dl
call fcn.00405401
call fcn.00405811
mov ecx, ebx
call fcn.004013a6
call fcn.00401765
call fcn.00405811
cmp byte [ebp + 0x67], 0
jne 0x406950
test byte [0x41e774], 4
je 0x406950
call fcn.00403ff2
test eax, eax
jne 0x406950
lea ecx, [ebp + 0x18]
call fcn.00411b60
lea ecx, [ebp - 0x30]
call fcn.00411b60
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
lea edx, [ebp + 0x18]
mov ecx, eax
call fcn.0040310a
push eax
lea ecx, [ebp + 0x30]
call fcn.00411b84
push str.sfxelevation
push 0x41aaec
lea eax, [ebp + 0x18]
push eax
mov edx, 0x41a9f0
lea ecx, [ebp - 0x14]
call fcn.00411b32
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00411b08
mov edx, eax
lea ecx, [ebp - 0xac]
call fcn.00411b08
push 0x20
push eax
lea ecx, [ebp + 4]
call fcn.00411a62
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 4]
lea ecx, [ebp + 0x40]
call fcn.00411aec
push dword [eax]
lea ecx, [ebp - 0x30]
call fcn.00411be5
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.00401cc0
push dword [ebp + 0x30]
test eax, eax
jne 0x40692b
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 0x40633c
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 0x40628c
mov dword [ebp + 0x3c], esi
mov esi, str.SetEnvironment
lea edx, [ebp + 0x3c]
mov ecx, esi
call fcn.00405041
xor ebx, ebx
jmp 0x4069af
push edi
lea ecx, [ebp + 0x40]
call fcn.00411b84
mov ecx, dword [ebp + 0x40]
push 0x3d
pop edx
call fcn.0041158d
cmp eax, ebx
jle 0x4069b7
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.00405051
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.00405041
mov edi, eax
cmp edi, ebx
jne 0x406966
jmp 0x4069c0
push dword [ebp + 0x40]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00405e96
cmp dword [0x41e44c], 0xffffffff
jne 0x4069d4
mov dword [0x41e44c], ebx
cmp byte [0x41e7cb], bl
je 0x406a43
xor edx, edx
mov ecx, str.HelpText
call fcn.00405041
mov esi, eax
cmp esi, ebx
jne 0x4069f8
push 0x18
pop ecx
call fcn.00403dc8
mov esi, eax
lea ecx, [ebp - 0x9c]
call fcn.004076d3
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.00407a45
lea ecx, [ebp - 0x9c]
call fcn.00407734
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40628c
cmp byte [0x41e7c9], bl
je 0x406a55
and dword [0x41e44c], 0xfffffeff
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov ecx, str.InstallPath
call fcn.00405041
mov esi, 0x41e89c
cmp eax, ebx
je 0x406a80
push eax
mov ecx, esi
call fcn.00411be5
mov byte [0x41e740], 1
mov ecx, esi
call fcn.004055ff
xor edx, edx
mov ecx, str.BeginPromptTimeout
call fcn.00405041
cmp eax, ebx
je 0x406aa4
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e780], eax
cmp dword [0x41e8e0], ebx
je 0x406ab8
call fcn.0040a049
mov esi, eax
jmp 0x4065e4
cmp dword [0x41e8d8], 3
jne 0x406ac8
call fcn.00409f6b
jmp 0x406ab1
mov esi, 0x41aa3c
push 0
mov edx, esi
mov ecx, str.SfxVarApiPath
call fcn.00405051
call fcn.00405e96
mov edi, str.ExecuteOnLoad
xor edx, edx
mov ecx, edi
call fcn.00405041
mov ebx, 0x41e868
test eax, eax
je 0x406b4a
cmp byte [0x41e7ca], 0
jne 0x406b4a
mov ecx, ebx
call fcn.00407474
mov edx, dword [0x41e86c]
push 0
mov ecx, str.SfxVarApiPath
call fcn.00405051
call fcn.00405e96
push esi
lea ecx, [ebp + 0x30]
call fcn.00411b84
mov ecx, ebx
call fcn.00407474
mov edx, dword [0x41e86c]
push esi
lea eax, [ebp + 0x30]
push eax
push esi
mov ecx, edi
call fcn.0040235e
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, 0x41e7f0
call fcn.00408410
xor edx, edx
mov ecx, str.BeginPrompt
call fcn.00405041
test eax, eax
je 0x406bb0
cmp byte [0x41e7c9], 0
jne 0x406bb0
mov ecx, dword [0x41e738]
mov edx, eax
call fcn.00408c28
test eax, eax
je 0x406cbc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x406b9d
mov word [0x41e7c8], 0x101
cmp dword [0x41e8c0], 0
je 0x406bb0
and dword [0x41e44c], 0xffffff7f
lea ecx, [ebp + 0x4c]
call fcn.00411b60
cmp byte [0x41e7c8], 0
je 0x406c23
mov edi, dword [0x41e7c4]
push str.AutoInstall
lea ecx, [ebp + 0x4c]
call fcn.00411be5
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0x4c]
call fcn.004015ec
mov ecx, dword [ebp + 0x4c]
xor edx, edx
call fcn.00405041
test eax, eax
je 0x406ccc
add edi, 2
movzx eax, word [edi]
cmp eax, 0x30
jb 0x406c02
cmp eax, 0x39
jbe 0x406bc7
cmp eax, 0x61
jb 0x406c0c
cmp eax, 0x7a
jbe 0x406bc7
cmp eax, 0x41
jb 0x406c16
cmp eax, 0x5a
jbe 0x406bc7
push str.AutoInstall
lea ecx, [ebp + 0x4c]
call fcn.00411be5
cmp dword [ebp + 0x50], 0
mov byte [ebp + 0x14], 0
jne 0x406c6d
mov edi, str.ExecuteFile
xor edx, edx
mov ecx, edi
call fcn.00405041
test eax, eax
je 0x406c4c
push edi
lea ecx, [ebp + 0x4c]
call fcn.00411be5
mov byte [ebp + 0x14], 1
cmp dword [ebp + 0x50], 0
jne 0x406c6d
mov edi, str.RunProgram
xor edx, edx
mov ecx, edi
call fcn.00405041
test eax, eax
je 0x406c6d
push edi
lea ecx, [ebp + 0x4c]
call fcn.00411be5
cmp byte [0x41e7c8], 0
jne 0x406d02
cmp byte [0x41e7c9], 0
jne 0x406d02
mov eax, dword [0x41e44c]
and eax, 0xc0
cmp al, 0x80
jne 0x406d02
mov edx, dword [0x41e748]
mov ecx, dword [0x41e754]
call fcn.00408cc3
test eax, eax
jne 0x406d02
push dword [ebp + 0x4c]
cmp byte [0x41e784], al
je 0x406cf2
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406b54
push dword [ebp + 0x58]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push 5
jmp 0x40633c
push dword [ebp + 0x4c]
push 0xe
push 0
call fcn.0040976c
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 0x40633c
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 0x406cc4
cmp dword [0x41e8a0], 0
jne 0x406d34
mov edx, str.7ZipSfx._03x
lea ecx, [ebp - 0x14]
call fcn.0040439d
push eax
mov ecx, 0x41e89c
call fcn.00411c48
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov byte [0x41e740], 0
jmp 0x406d6a
mov edi, 0x41e89c
push edi
lea ecx, [ebp + 0x18]
call fcn.00411bba
lea ecx, [ebp + 0x18]
call fcn.004055ff
cmp dword [ebp + 0x1c], 0
je 0x406d5b
lea eax, [ebp + 0x18]
push eax
mov ecx, edi
call fcn.00411c48
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 0x406d85
cmp edx, 0x2f
jne 0x406d92
dec ecx
xor edx, edx
mov dword [0x41e8a0], ecx
mov word [eax + ecx*2], dx
cmp byte [0x41e7c9], 0
je 0x406da2
or dword [0x41e774], 3
mov edi, str.PreExtract
push edi
lea ecx, [ebp - 0x20]
call fcn.00411b84
mov eax, dword [0x41e7c4]
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.004015ec
mov ecx, dword [ebp - 0x20]
xor edx, edx
call fcn.00405041
test eax, eax
je 0x406e2c
cmp byte [0x41e7ca], 0
jne 0x406e2c
mov ecx, ebx
call fcn.00407474
mov edx, dword [0x41e86c]
push 0
mov ecx, str.SfxVarApiPath
call fcn.00405051
call fcn.00405e96
push esi
lea ecx, [ebp + 0x30]
call fcn.00411b84
mov eax, dword [0x41e7c4]
mov ecx, ebx
mov dword [ebp - 0x24], eax
call fcn.00407474
mov edx, dword [0x41e86c]
push esi
lea eax, [ebp + 0x30]
push eax
push dword [ebp - 0x24]
mov ecx, edi
call fcn.0040235e
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41e8d4], 0
jne 0x406e41
mov ecx, 0x41e89c
call fcn.00402d99
jmp 0x406e4f
call fcn.00408d16
test eax, eax
jne 0x406e7a
mov eax, 0x80004005
test eax, eax
je 0x406e7a
call fcn.00405b62
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 0x40633c
call fcn.00405e96
cmp byte [0x41e7ca], 0
je 0x406e95
cmp byte [0x41e740], 0
jne 0x406fff
lea ecx, [ebp + 0x40]
call fcn.00411b60
lea ecx, [ebp + 4]
call fcn.00411b60
cmp byte [0x41e7c8], 0
jne 0x406eb6
lea ecx, [ebp + 0x40]
call fcn.00401be9
xor ebx, ebx
cmp dword [ebp + 0x50], ebx
jne 0x406f84
cmp byte [0x41e740], bl
jne 0x406f9f
mov esi, str.setup.exe
push esi
push 0x41abf8
mov edx, 0x41e89c
lea ecx, [ebp - 0x3c]
call fcn.00411b08
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.00411b08
push dword [eax]
lea ecx, [ebp + 4]
call fcn.00411be5
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 0x406f56
call fcn.00405b62
push 0xf
push ebx
call fcn.0040976c
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 0x406399
mov edi, dword [0x41e89c]
push esi
lea ecx, [ebp + 0x30]
call fcn.00411b84
push dword [ebp + 0x10]
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x14]
mov edx, edi
lea ecx, [ebp + 0x30]
call fcn.0040206f
push dword [ebp + 0x30]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406f9f
push dword [ebp + 0x10]
mov edx, dword [0x41e89c]
mov ecx, dword [ebp + 0x4c]
lea eax, [ebp + 0x40]
push eax
push dword [0x41e7c4]
call fcn.0040235e
cmp dword [0x41e8d8], ebx
jne 0x406feb
call fcn.00405e96
push 0xffffffffffffffff
push dword [0x41e7c4]
mov edx, str.Shortcut
mov ecx, 0x405eeb
call fcn.00405a8b
push dword [0x41e794]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push 0xffffffffffffffff
push dword [0x41e7c4]
mov edx, str.Delete
mov ecx, 0x405a61
call fcn.00405a8b
call fcn.00405b62
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 0x407001
xor ebx, ebx
cmp dword [0x41e458], 0xffffffff
jne 0x40701d
cmp byte [0x41e7c9], 0
jne 0x407085
mov dword [0x41e458], 1
cmp dword [0x41e458], ebx
jle 0x407085
xor edx, edx
mov ecx, str.FinishMessage
call fcn.00405041
mov esi, eax
cmp esi, ebx
je 0x407085
mov eax, 0x3e7
cmp dword [0x41e458], eax
jle 0x407049
mov dword [0x41e458], eax
lea ecx, [ebp - 0x98]
call fcn.004076d3
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.00407a45
lea ecx, [ebp - 0x98]
call fcn.00407734
cmp byte [0x41e7ca], 0
jne 0x4070c0
cmp dword [0x41e8d8], ebx
jne 0x4070c0
xor edx, edx
mov ecx, str.SelfDelete
call fcn.00405041
cmp eax, ebx
je 0x4070c0
cmp word [eax], 0x31
jne 0x4070c0
sub esp, 0xc
mov ecx, esp
push 0x41e844
call fcn.00411bba
call fcn.00405b8e
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 0x40710e
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