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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x2cc
push ebx
push esi
push edi
call fcn.00401dd5
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x264], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4067fa
cmp dword [ebp - 0x254], 2
jne 0x4067fa
cmp dword [ebp - 0x260], 5
jb 0x4067fa
call fcn.00404d45
or dword [ebp - 0x44], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
lea ecx, [ebp - 0x50]
mov byte [str.___InstallEnd__], 0x3b
mov byte [str.___Install__UTF_8_], 0x3b
mov dword [ebp + 0x50], 0x41607c
mov byte [ebp + 0x65], 0
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x63], 0
mov byte [ebp + 0x64], 0
call fcn.004015d5
lea ecx, [ebp - 0xbc]
call fcn.004015d5
lea ecx, [ebp - 0xc]
call fcn.0040407a
push 0x20
lea ecx, [ebp - 0x5c]
call fcn.00404148
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00404475
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004023bc
lea eax, [ebp - 0x5c]
push eax
call fcn.004029dc
mov ebx, dword [ebp - 0x5c]
add ebx, 2
mov dword [esp], str.sfxversion
push ebx
call fcn.00403ff7
test eax, eax
pop ecx
pop ecx
je 0x405539
lea ecx, [ebp - 0x150]
mov dword [0x41a270], 8
call fcn.00404063
push 1
call fcn.00403c9d
pop ecx
push eax
lea ecx, [ebp + 0x14]
call fcn.0040236b
xor esi, esi
cmp dword [0x41a778], esi
jbe 0x405508
test esi, esi
je 0x4054ed
push 0x4162f0
lea ecx, [ebp + 0x14]
call fcn.004023bc
mov eax, dword [esi*4 + 0x41a678]
push dword [eax + 0x10]
lea ecx, [ebp + 0x14]
call fcn.004023bc
inc esi
cmp esi, dword [0x41a778]
jb 0x4054dc
push 0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x150]
push dword [0x41a5e0]
push 0x11
call fcn.00407524
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x150]
call fcn.00404075
jmp 0x4067ce
mov esi, 0x208
cmp dword [0x41a63c], esi
mov edi, 0x41a634
jg 0x405553
push esi
mov ecx, edi
call fcn.004013bd
push esi
push dword [0x41a634]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405578
xor esi, esi
inc esi
push 6
push esi
call fcn.0040783d
pop ecx
pop ecx
jmp 0x4067d0
mov ecx, edi
call fcn.004023a4
push str.sfxtest
push ebx
call fcn.00403ff7
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4056ef
cmp word [esi], 0x3a
je 0x4055a4
push 0x64
pop esi
jmp 0x4067d0
mov cx, word [esi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
push 2
pop ebx
je 0x405675
sub eax, ebx
je 0x405661
dec eax
je 0x4055e2
sub eax, ebx
je 0x4055d8
sub eax, 0x10
jne 0x40559c
mov esi, 0x451b
jmp 0x4067d0
mov esi, 0x2033
jmp 0x4067d0
cmp cx, 0x44
jne 0x405620
cmp word [esi + 4], 0x3a
jne 0x40559c
add esi, 6
jmp 0x405607
cmp ax, 0x3a
je 0x405612
push eax
mov ecx, 0x41a664
call fcn.004015ed
add esi, ebx
xor eax, eax
mov ax, word [esi]
cmp ax, 0x20
ja 0x4055f4
cmp dword [0x41a668], 0
jne 0x405623
jmp 0x40559c
add esi, 4
and dword [0x41a65c], 0
cmp word [esi], 0x3a
jne 0x40564b
lea eax, [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, 0xe10
pop ecx
mov dword [0x41a65c], eax
ja 0x40564b
test eax, eax
jne 0x405655
mov dword [0x41a65c], 0xa
mov dword [0x41a660], 1
jmp 0x40567f
xor eax, eax
cmp word [esi + 4], 0x63
sete al
add eax, 3
mov dword [0x41a660], eax
jmp 0x40567f
mov dword [0x41a660], ebx
jmp 0x40567f
add esi, ebx
cmp word [esi], 0x20
ja 0x40567d
jmp 0x40568f
cmp ax, 0x20
ja 0x405697
add esi, ebx
mov ax, word [esi]
test ax, ax
jne 0x405687
push str.sfxconfig
push esi
mov ebx, esi
call fcn.00403ff7
test eax, eax
pop ecx
pop ecx
je 0x4056ef
cmp word [eax], 0x3a
jne 0x4056ba
jmp 0x4056b8
cmp cx, 0x20
ja 0x4056c2
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x4056b2
mov ecx, dword [ebp - 0x50]
and word [ecx], 0
and dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.00404475
cmp dword [0x41a660], 2
pop ecx
pop ecx
mov ebx, eax
je 0x4056ef
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.00401526
mov edi, 0x41a634
push edi
mov ecx, 0x41a604
call fcn.00401526
mov esi, 0x41a610
push edi
mov ecx, esi
call fcn.00401526
push edi
call fcn.00402d11
test eax, eax
pop ecx
jl 0x4057a7
mov ecx, dword [0x41a604]
lea edi, [eax + eax]
and word [edi + ecx], 0
mov dword [0x41a608], eax
mov eax, dword [0x41a634]
lea eax, [edi + eax + 2]
push eax
mov ecx, esi
call fcn.004014ed
mov eax, dword [0x41a634]
lea eax, [edi + eax + 2]
mov edi, 0x41a628
push eax
mov ecx, edi
call fcn.004014ed
push 0x2e
mov ecx, edi
call fcn.004023f2
test eax, eax
jle 0x405772
mov ecx, dword [0x41a628]
and word [ecx + eax*2], 0
mov dword [0x41a62c], eax
mov esi, 0x41a61c
push 0x41a628
mov ecx, esi
call fcn.00401526
push 4
call fcn.00403c9d
pop ecx
push eax
mov ecx, esi
call fcn.004023bc
mov eax, dword [0x41a628]
mov dword [0x41a5e0], eax
mov eax, dword [0x41a61c]
mov dword [0x41a5e4], eax
push 0x10
xor esi, esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x4057c0
mov ecx, eax
call fcn.00404e79
mov edi, eax
jmp 0x4057c2
xor edi, edi
push edi
lea ecx, [ebp + 0x5c]
call fcn.00409819
push dword [0x41a634]
mov ecx, edi
call fcn.0040e7ba
test al, al
jne 0x405809
sub esp, 0xc
mov edi, esp
mov esi, 0x41a634
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
push 1
movsd dword es:[edi], dword [esi]
call fcn.0040783d
mov eax, dword [ebp + 0x5c]
add esp, 0x14
test eax, eax
je 0x405802
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 2
jmp 0x40559e
lea ecx, [ebp + 0x44]
call fcn.0040241d
lea ecx, [ebp + 0x2c]
call fcn.0040241d
lea ecx, [ebp + 0x38]
call fcn.0040241d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
call fcn.00405305
mov edi, dword [ebp + 0x5c]
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040275d
add esp, 0x1c
test al, al
jne 0x4058fd
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
movzx eax, ax
push ecx
push eax
call fcn.00405305
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040275d
add esp, 0x1c
test al, al
jne 0x4058fd
call fcn.00401d96
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp + 0x2c]
movzx eax, ax
push ecx
push eax
call fcn.00405305
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x2c]
push edi
call fcn.0040275d
add esp, 0x1c
test al, al
jne 0x4058fd
lea eax, [ebp + 0x44]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push edi
call fcn.0040275d
add esp, 0x10
test al, al
jne 0x4058fd
push 9
push esi
call fcn.0040783d
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
cmp edi, esi
je 0x4058f6
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x40559e
cmp dword [0x41a660], esi
jne 0x405978
push str.sfxconfig
push ebx
call fcn.00403ff7
cmp eax, esi
pop ecx
pop ecx
je 0x405978
cmp word [eax], 0x3a
jne 0x40591e
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
je 0x4059cf
cmp cx, 0x20
ja 0x40593a
inc eax
inc eax
mov cx, word [eax]
cmp cx, si
jne 0x40592a
cmp word [eax], si
je 0x4059cf
lea ecx, [ebp + 0x44]
push ecx
push eax
call fcn.00404f6a
test al, al
pop ecx
pop ecx
jne 0x4059cf
push 0xa
push esi
call fcn.0040783d
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x4059b5
lea ecx, [ebp - 0xc]
call fcn.0040f4bf
cmp dword [ebp + 0x48], esi
je 0x4059c6
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.004030b8
add esp, 0xc
test al, al
jne 0x4059c6
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x4059bf
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x40559e
cmp dword [0x41a660], 4
jne 0x4059f1
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
jmp 0x4067c6
lea eax, [ebp - 0xc]
push eax
call fcn.004045fa
pop ecx
dec ebx
push 0x30
dec ebx
pop esi
mov dword [ebp + 0x54], ebx
push 0x20
pop ecx
cmp word [ebx], cx
jbe 0x405a1e
inc ebx
inc ebx
cmp word [ebx], cx
ja 0x405a0b
jmp 0x405a1b
cmp ax, cx
ja 0x405a26
inc ebx
inc ebx
mov dword [ebp + 0x54], ebx
mov ax, word [ebx]
test ax, ax
jne 0x405a14
mov ax, word [ebx]
cmp ax, 0x2f
je 0x405a39
cmp ax, 0x2d
jne 0x405c4a
lea edi, [ebx + 2]
cmp word [edi], 0x21
jne 0x405a4c
cmp word [ebx + 4], cx
jbe 0x405c33
push 0x4162c4
push edi
call fcn.00403e20
test eax, eax
pop ecx
pop ecx
je 0x405aa9
lea ecx, [ebx + 6]
mov ax, word [ecx]
cmp ax, si
jb 0x405a6e
cmp ax, 0x39
jbe 0x405a86
cmp ax, 0x61
jb 0x405a7a
cmp ax, 0x7a
jbe 0x405a86
cmp ax, 0x41
jb 0x405a8b
cmp ax, 0x5a
ja 0x405a8b
mov dword [ebp + 0x50], ecx
jmp 0x405a9c
cmp ax, 0x20
ja 0x405c4a
mov dword [ebp + 0x50], 0x41607c
mov byte [ebp + 0x65], 1
mov byte [ebp + 0x67], 1
jmp 0x405a03
push 0x4162bc
push edi
call fcn.00403e20
test eax, eax
pop ecx
pop ecx
je 0x405ad4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.OverwriteMode
call fcn.004047b1
add esp, 0xc
jmp 0x405a03
push 0x4162b4
push edi
call fcn.00403e20
test eax, eax
pop ecx
pop ecx
je 0x405b15
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c4a
cmp cx, 0x32
ja 0x405c4a
cmp word [ebx + 8], 0x20
ja 0x405c4a
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.GUIMode
jmp 0x405ac7
push 0x4162ac
push edi
call fcn.00403e20
test eax, eax
pop ecx
pop ecx
je 0x405b35
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 6]
push eax
push str.GUIFlags
jmp 0x405ac7
push 0x4162a4
push edi
call fcn.00403e20
test eax, eax
pop ecx
pop ecx
je 0x405b75
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
je 0x405b5b
cmp cx, 0x31
jne 0x405c4a
cmp word [ebx + 8], 0x20
ja 0x405c4a
lea ecx, [ebp - 0xc]
push ecx
push eax
push str.SelfDelete
jmp 0x405ac7
push 0x41629c
push edi
call fcn.00403e20
test eax, eax
pop ecx
pop ecx
je 0x405b9a
cmp word [ebx + 6], 0x20
ja 0x405c4a
mov byte [ebp + 0x63], 1
jmp 0x405a03
push 0x416294
push edi
call fcn.00403e20
test eax, eax
pop ecx
pop ecx
je 0x405bd6
lea eax, [ebx + 6]
mov cx, word [eax]
cmp cx, si
jb 0x405c4a
cmp cx, 0x39
ja 0x405c4a
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
jmp 0x405a03
mov ax, word [edi]
cmp ax, 0x79
je 0x405be5
cmp ax, 0x59
jne 0x405bf5
cmp word [ebx + 4], 0x20
ja 0x405bf5
mov byte [ebp + 0x65], 1
jmp 0x405a03
cmp ax, 0x3f
je 0x405c07
cmp ax, 0x68
je 0x405c07
cmp ax, 0x48
jne 0x405c17
cmp word [ebx + 4], 0x20
ja 0x405c17
mov byte [ebp + 0x64], 1
jmp 0x405a03
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004044ea
test eax, eax
pop ecx
pop ecx
je 0x405c4a
cmp eax, 1
je 0x405c61
mov ebx, eax
jmp 0x405a00
add ebx, 4
jmp 0x405c3f
cmp ax, cx
ja 0x405c4a
inc ebx
inc ebx
mov ax, word [ebx]
test ax, ax
mov dword [ebp + 0x54], ebx
jne 0x405c38
lea eax, [ebp - 0xc]
push eax
call fcn.004045fa
and dword [ebp - 0x1c], 0
mov ebx, str.SetEnvironment
jmp 0x405cf9
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0xc
test eax, eax
je 0x405c89
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x40559e
push esi
lea ecx, [ebp - 0x18]
call fcn.0040236b
push 0
push 0x3d
lea ecx, [ebp - 0x18]
call fcn.00402514
test eax, eax
jle 0x405d12
mov ecx, dword [ebp - 0x18]
lea edi, [eax + eax]
and word [edi + ecx], 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x14], eax
call fcn.0040231b
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x74]
call fcn.00401526
lea eax, [edi + esi + 2]
push eax
lea ecx, [ebp - 0x68]
call fcn.004014ed
lea eax, [ebp - 0x74]
push eax
mov ecx, 0x41a640
call fcn.00402f74
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.00401c8e
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040234c
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x405c90
jmp 0x405d1b
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.004043ae
xor edi, edi
cmp dword [0x41a270], 0xffffffff
jne 0x405d31
mov dword [0x41a270], edi
cmp byte [ebp + 0x64], 0
je 0x405db5
push edi
lea eax, [ebp - 0xc]
push str.HelpText
push eax
call fcn.0040234c
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x405d59
push 0x18
call fcn.00403c9d
pop ecx
mov esi, eax
lea ecx, [ebp - 0x108]
call fcn.00403dcc
push edi
push esi
push dword [0x41a5e0]
lea ecx, [ebp - 0x108]
push 0x11
call fcn.00407524
lea ecx, [ebp - 0x108]
call fcn.00404075
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp eax, edi
je 0x4067ce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067ce
cmp byte [ebp + 0x65], 0
je 0x405dc2
and byte [0x41a271], 0xfe
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
lea eax, [ebp - 0xc]
push str.InstallPath
push eax
call fcn.0040234c
add esp, 0xc
cmp eax, edi
je 0x405dea
push eax
mov ecx, 0x41a5f8
call fcn.004014ed
push 0x41a5f8
call fcn.00403de5
cmp dword [0x41a668], edi
pop ecx
je 0x405e39
lea eax, [ebp - 0xc]
push eax
call fcn.004084c7
push dword [ebp + 0x38]
mov esi, eax
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x10
cmp eax, edi
je 0x4067d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067d0
cmp dword [0x41a660], 3
jne 0x405e4d
lea eax, [ebp - 0xc]
push eax
call fcn.00408417
jmp 0x405e06
mov edi, str.ExecuteFile
mov ebx, str.RunProgram
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push str.BeginPrompt
push eax
call fcn.0040234c
add esp, 0xc
cmp eax, esi
je 0x405e9b
cmp byte [ebp + 0x65], 0
jne 0x405e9b
push eax
push dword [0x41a5e0]
call fcn.0040777a
test eax, eax
pop ecx
pop ecx
je 0x405fc5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x405e9b
mov byte [ebp + 0x67], 1
lea ecx, [ebp + 0x20]
call fcn.004015d5
cmp byte [ebp + 0x67], 0
je 0x405f27
mov esi, dword [ebp + 0x50]
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.004014ed
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.004015ed
push 0
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0040234c
add esp, 0xc
test eax, eax
je 0x405fe2
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
jb 0x405ef1
cmp ax, 0x39
jbe 0x405eac
cmp ax, 0x61
jb 0x405efd
cmp ax, 0x7a
jbe 0x405eac
cmp ax, 0x41
jb 0x405f09
cmp ax, 0x5a
jbe 0x405eac
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.004014ed
mov eax, dword [ebp + 0x50]
movzx eax, word [eax]
push eax
lea ecx, [ebp + 0x20]
call fcn.004015ed
xor esi, esi
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 0
jne 0x405f6f
push esi
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040234c
add esp, 0xc
test eax, eax
je 0x405f54
push edi
lea ecx, [ebp + 0x20]
call fcn.004014ed
cmp dword [ebp + 0x24], esi
mov byte [ebp + 0x64], 1
jne 0x405f6f
push esi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040234c
add esp, 0xc
test eax, eax
je 0x405f6f
push ebx
lea ecx, [ebp + 0x20]
call fcn.004014ed
cmp byte [ebp + 0x67], 0
jne 0x406059
cmp byte [ebp + 0x65], 0
jne 0x406059
mov eax, dword [0x41a270]
and ax, 0xc0
cmp al, 0x80
jne 0x406059
push dword [0x41a5d4]
push dword [0x41a5d8]
call fcn.004077f6
test eax, eax
pop ecx
pop ecx
jne 0x406059
cmp byte [0x41a5f4], al
push dword [ebp + 0x20]
je 0x406025
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405e59
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x406045
push dword [ebp + 0x20]
push 0xe
push 0
call fcn.0040783d
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x1c
test eax, eax
je 0x40601e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x40559e
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov eax, dword [ebp + 0x5c]
cmp eax, esi
je 0x406052
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x40559e
cmp dword [0x41a5fc], esi
jne 0x40608a
lea eax, [ebp + 0x14]
push str.7ZipSfx._03x
push eax
call fcn.004042d7
pop ecx
pop ecx
push eax
mov ecx, 0x41a5f8
call fcn.00401526
push dword [ebp + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov byte [ebp + 0x66], 0
jmp 0x4060c0
push 0x41a5f8
lea ecx, [ebp + 0x14]
call fcn.004014bb
lea eax, [ebp + 0x14]
push eax
call fcn.00403de5
cmp dword [ebp + 0x18], esi
pop ecx
jne 0x4060b4
lea eax, [ebp + 0x14]
push eax
mov ecx, 0x41a5f8
call fcn.00401526
push dword [ebp + 0x14]
mov byte [ebp + 0x66], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x41a5f8]
pop ecx
mov ecx, dword [0x41a5fc]
mov dx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x4060dd
cmp dx, 0x2f
jne 0x4060e8
dec ecx
mov word [eax + ecx*2], si
mov dword [0x41a5fc], ecx
cmp dword [0x41a65c], esi
jne 0x406102
mov edi, dword [ebp + 0x5c]
push 0x41a5f8
push edi
call fcn.0040520e
pop ecx
pop ecx
jmp 0x406113
call fcn.00407969
test eax, eax
mov edi, dword [ebp + 0x5c]
jne 0x40615d
mov eax, 0x80004005
cmp eax, esi
je 0x40615d
cmp byte [ebp + 0x66], 0
jne 0x406129
push dword [0x41a5f8]
call fcn.00402c3b
pop ecx
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp edi, esi
je 0x406156
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 8
jmp 0x40559e
call fcn.004043ae
cmp byte [ebp + 0x63], 0
je 0x406172
cmp byte [ebp + 0x66], 0
jne 0x4066e3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], esi
call fcn.004015d5
cmp byte [ebp + 0x67], 0
jne 0x406192
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040441f
pop ecx
pop ecx
mov eax, dword [ebp + 0x50]
mov byte [ebp + 0x5a], 0
mov dword [ebp - 0x40], eax
lea ecx, [ebp + 8]
mov byte [ebp + 0x67], 0
mov byte [ebp + 0x5b], 0
call fcn.004015d5
lea ecx, [ebp - 0x30]
call fcn.004015d5
cmp dword [ebp + 0x24], esi
jne 0x40625e
cmp byte [ebp + 0x66], 0
jne 0x40653d
mov esi, str.setup.exe
push esi
push 0x41543c
lea eax, [ebp - 0x68]
push 0x41a5f8
push eax
call fcn.00404223
add esp, 0xc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00404223
add esp, 0xc
push eax
lea ecx, [ebp + 8]
call fcn.00401526
push dword [ebp - 0xc8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x68]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406554
mov byte [ebp + 0x5a], 1
push esi
lea ecx, [ebp - 0x30]
call fcn.004014ed
lea eax, [ebp - 0x30]
push eax
call fcn.00403e0b
mov edi, dword [ebp - 0x30]
pop ecx
xor ebx, ebx
push ebx
push str.hidcon
push edi
call fcn.00403e5a
add esp, 0xc
cmp eax, ebx
je 0x4062e4
mov edi, eax
mov byte [ebp + 0x67], 1
jmp 0x40623f
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
call fcn.0040234c
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x406227
mov esi, dword [ebp - 0x40]
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x30
mov dword [ebp - 0x40], esi
jb 0x40628e
cmp ax, 0x39
jbe 0x4062ae
cmp ax, 0x61
jb 0x40629a
cmp ax, 0x7a
jbe 0x4062ae
cmp ax, 0x41
jb 0x4065b4
cmp ax, 0x5a
ja 0x4065b4
push str.AutoInstall
lea ecx, [ebp + 0x20]
call fcn.004014ed
xor eax, eax
mov ax, word [esi]
lea ecx, [ebp + 0x20]
push eax
call fcn.004015ed
push dword [ebp - 0x30]
and dword [ebp - 0x20], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406536
push ebx
push 0x416214
push edi
call fcn.00403e5a
add esp, 0xc
cmp eax, ebx
je 0x406304
mov edi, eax
mov al, byte [ebp + 0x66]
mov byte [ebp + 0x5b], al
jmp 0x40623f
push 2
push 0x416294
push edi
call fcn.00403e5a
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40633a
cmp dword [0x41a27c], 0xffffffff
jne 0x406333
add edi, 4
push edi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41a27c], eax
mov edi, esi
jmp 0x40623f
push 3
push 0x41620c
push edi
call fcn.00403e5a
add esp, 0xc
cmp eax, ebx
je 0x40635f
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x44], ecx
mov edi, eax
jmp 0x40623f
push 3
push 0x416204
push edi
call fcn.00403e5a
add esp, 0xc
cmp eax, ebx
je 0x40637f
movzx ecx, word [edi + 6]
sub ecx, 0x30
mov dword [ebp - 0x24], ecx
jmp 0x406358
cmp byte [ebp + 0x64], 0
lea ecx, [ebp + 8]
je 0x4063db
cmp word [edi], 0x22
je 0x4063ad
mov esi, 0x416070
push esi
call fcn.004014ed
push edi
lea ecx, [ebp + 8]
call fcn.004023bc
push esi
lea ecx, [ebp + 8]
call fcn.004023bc
jmp 0x4063b3
push edi
call fcn.004014ed
push ebx
lea eax, [ebp - 0xc]
push str.ExecuteParameters
push eax
call fcn.0040234c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4063ed
push 0x416200
lea ecx, [ebp + 8]
call fcn.004023bc
push esi
jmp 0x4063e5
lea eax, [ebp - 0x18]
push eax
call fcn.00401526
push edi
lea ecx, [ebp + 8]
call fcn.004023bc
lea ecx, [ebp + 0x14]
call fcn.004015d5
lea ecx, [ebp - 0x3c]
call fcn.004015d5
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xb0]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x41a5f8]
add esp, 0xc
cmp byte [ebp + 0x67], 0
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], 0x740
mov dword [ebp - 0x94], 1
je 0x40644c
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xac], 0x8740
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push ebx
call fcn.00404475
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004014ed
mov edi, dword [ebp + 0x54]
xor esi, esi
cmp word [edi], si
je 0x406490
push 0x20
lea ecx, [ebp - 0x3c]
call fcn.004015ed
push edi
lea ecx, [ebp - 0x3c]
call fcn.004023bc
cmp word [edi], si
je 0x406490
inc edi
inc edi
cmp word [edi], si
jne 0x406486
mov dword [ebp + 0x54], edi
lea eax, [ebp + 0x14]
push eax
call fcn.00403e0b
lea eax, [ebp - 0x3c]
push eax
call fcn.00403e0b
cmp dword [ebp - 0x38], esi
mov eax, dword [ebp + 0x14]
pop ecx
pop ecx
mov dword [ebp - 0xa0], eax
je 0x4064bb
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], eax
cmp dword [0x41a660], esi
jne 0x4064f2
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4065cb
cmp byte [ebp + 0x5b], 0
jne 0x4064e9
push 0xffffffffffffffff
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0x64], 0
jne 0x406651
cmp byte [ebp + 0x5a], 0
jne 0x406651
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov word [eax], si
push dword [ebp - 0x3c]
inc dword [ebp - 0x20]
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 - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp + 0x5c]
add esp, 0x10
xor esi, esi
jmp 0x40619c
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406677
push dword [0x41a5f8]
call fcn.00402c3b
push 0xf
push 0
call fcn.0040783d
push dword [ebp - 0x30]
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 - 0x18]
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 + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x28
test edi, edi
je 0x4065ad
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 7
jmp 0x40559e
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x406675
sub esp, 0xc
mov edi, esp
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 1
movsd dword es:[edi], dword [esi]
call fcn.0040783d
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x4065f4
push dword [0x41a5f8]
call fcn.00402c3b
pop ecx
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__
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
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 + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
add esp, 0x24
test eax, eax
je 0x40664a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x40559e
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__
push dword [ebp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp + 0x5c]
add esp, 0x10
xor esi, esi
cmp dword [0x41a660], esi
jne 0x4066da
call fcn.004043ae
push dword [ebp - 0x44]
lea eax, [ebp - 0xc]
push dword [ebp + 0x50]
push str.Shortcut
push eax
push 0x405122
call fcn.0040486f
add esp, 0x14
push dword [0x41a604]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
push dword [ebp + 0x50]
push str.Delete
push eax
push 0x404827
call fcn.0040486f
add esp, 0x14
cmp byte [ebp + 0x66], 0
jne 0x4066da
push dword [0x41a5f8]
call fcn.00402c3b
pop ecx
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41a27c], 0xffffffff
jne 0x4066fc
cmp byte [ebp + 0x65], 0
jne 0x40675b
mov dword [0x41a27c], 1
cmp dword [0x41a27c], esi
jle 0x40675b
push 0
lea eax, [ebp - 0xc]
push str.FinishMessage
push eax
call fcn.0040234c
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40675b
mov eax, 0x3e7
cmp dword [0x41a27c], eax
jle 0x40672f
mov dword [0x41a27c], eax
lea ecx, [ebp - 0x110]
call fcn.0040427d
push 0
push esi
push dword [0x41a5e0]
lea ecx, [ebp - 0x110]
push 0x11
call fcn.00407524
lea ecx, [ebp - 0x110]
call fcn.004040f6
cmp byte [ebp + 0x63], 0
jne 0x4067a1
cmp dword [0x41a660], 0
jne 0x4067a1
push 0
lea eax, [ebp - 0xc]
push str.SelfDelete
push eax
call fcn.0040234c
add esp, 0xc
test eax, eax
je 0x4067a1
cmp word [eax], 0x31
jne 0x4067a1
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x41a634
call fcn.004014bb
call fcn.004049ca
add esp, 0xc
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 0x38]
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 + 0x44]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
test edi, edi
je 0x4067ce
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor esi, esi
push dword [ebp - 0x5c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00404095
push dword [ebp - 0xbc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, esi
jmp 0x406811
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