Function at 0x40509b
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Get file attributes
Log keystrokes via polling
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
push 0x405084
call dword [sym.imp.msvcrt.dll_int____cdecl___unsigned_int____cdecl__set_new_handler_int____cdecl___unsigned_int__]
pop ecx
call fcn.00402f17
lea eax, [esp + 0x160]
push eax
mov dword [esp + 0x164], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4069b3
cmp dword [esp + 0x170], 2
jne 0x4069b3
cmp dword [esp + 0x164], 5
jb 0x4069b3
or dword [esp + 0xbc], 0xffffffff
or dword [esp + 0xb8], 0xffffffff
lea eax, [esp + 0x74]
mov byte [str.___InstallEnd__], 0x3b
mov byte [0x4183b4], 0x3b
mov dword [esp + 0x34], 0x415608
xor edi, edi
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x1b], 0
call fcn.00401a43
lea eax, [esp + 0xd8]
call fcn.00401a43
push 4
pop ebx
push 0x20
lea eax, [esp + 0xd0]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], 0x4159ec
call fcn.00406b7c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea eax, [esp + 0x74]
call fcn.0040448b
lea esi, [esp + 0xcc]
call fcn.00403bc8
mov eax, esi
push eax
call fcn.00402046
mov esi, dword [esp + 0xd0]
add esi, 2
pop ecx
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 1
lea eax, [esi + eax*2]
push 0x41477c
push str.SfxVarModulePlatform
mov dword [esp + 0x70], eax
call fcn.00401a76
add esp, 0xc
push 1
call fcn.004037aa
push eax
push str.SfxVarSystemPlatform
call fcn.00401a76
add esp, 0xc
push 1
push esi
push str.SfxVarCmdLine0
call fcn.00401a76
add esp, 0xc
call fcn.00404068
movzx eax, word [0x418e6c]
push eax
push 0x415774
push 0x20
pop ecx
lea eax, [esp + 0x7c]
call fcn.00403b8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x74]
call fcn.00403ba8
push 1
push dword [esp + 0x78]
push str.SfxVarSystemLanguage
call fcn.00401a76
add esp, 0xc
push str.sfxlang
mov eax, esi
call fcn.00404671
pop ecx
cmp eax, edi
je 0x40528f
cmp word [eax], 0x3a
jne 0x40528f
add eax, 2
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x40526b
mov word [0x418e6c], ax
cmp word [esi], 0x20
jbe 0x405287
inc esi
inc esi
cmp word [esi], 0x20
ja 0x405271
jmp 0x405283
cmp ax, 0x20
ja 0x40528f
inc esi
inc esi
mov dword [esp + 0x14], esi
movzx eax, word [esi]
cmp ax, di
jne 0x40527b
push str.sfxversion
mov eax, esi
call fcn.00404671
pop ecx
test eax, eax
je 0x4052ec
call fcn.00404c06
xor esi, esi
push dword [esp + 0xcc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x4159ec
call fcn.0040f83a
lea ecx, [esp + 0x38]
call fcn.0040f80e
push dword [esp + 0xd8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4069ca
push str.sfxwaitall
mov eax, esi
call fcn.00404671
pop ecx
cmp eax, edi
je 0x405306
call fcn.00405029
mov esi, eax
jmp 0x4052a7
push str.sfxelevation
mov eax, esi
mov byte [esp + 0x1e], 0
call fcn.00404671
pop ecx
cmp eax, edi
je 0x405339
mov byte [esp + 0x1a], 1
jmp 0x40532b
cmp cx, 0x20
ja 0x405333
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, di
jne 0x405323
mov dword [esp + 0x14], eax
mov esi, eax
mov ecx, 0x208
push ecx
mov eax, 0x418f14
call fcn.00403b8c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x405367
xor esi, esi
inc esi
push 6
push esi
call fcn.00408e4b
pop ecx
pop ecx
jmp 0x4052a7
mov edx, 0x418f14
call fcn.00403ba8
push str.sfxtest
mov eax, esi
call fcn.00404671
mov edi, eax
pop ecx
test edi, edi
je 0x405528
cmp word [edi], 0x3a
je 0x405396
push 0x64
pop esi
jmp 0x4052a7
movzx ecx, word [edi + 2]
movzx eax, cx
or eax, 0x20
sub eax, 0x61
je 0x4054a1
dec eax
dec eax
je 0x40548d
dec eax
je 0x40540a
sub eax, 0xb
je 0x4053c8
sub eax, 7
jne 0x40538e
mov esi, 0x4a97
jmp 0x4052a7
cmp word [edi + 4], 0x3a
jne 0x4052a5
movzx eax, word [edi + 6]
sub eax, 0x31
je 0x405402
dec eax
je 0x4053fe
dec eax
je 0x4053fa
dec eax
je 0x4053f0
dec eax
jne 0x4052a5
push 7
jmp 0x405390
mov esi, 0x27f
jmp 0x4052a7
push 0x1f
jmp 0x405390
push 0x16
jmp 0x405390
xor esi, esi
inc esi
jmp 0x4052a7
cmp cx, 0x44
jne 0x40544d
cmp word [edi + 4], 0x3a
jne 0x40538e
add edi, 6
jmp 0x405436
cmp ax, 0x3a
je 0x40543f
movzx eax, ax
push eax
mov esi, 0x418f24
call fcn.004018b2
inc edi
inc edi
movzx eax, word [edi]
cmp ax, 0x20
ja 0x405420
cmp dword [0x418f28], 0
jne 0x40544f
jmp 0x40538e
add edi, ebx
and dword [0x418eb0], 0
cmp word [edi], 0x3a
jne 0x405477
lea eax, [edi + 2]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x418eb0], eax
cmp eax, 0xe10
ja 0x405477
test eax, eax
jne 0x405481
mov dword [0x418eb0], 0xa
mov dword [0x418eb4], 1
jmp 0x4054ab
xor eax, eax
cmp word [edi + 4], 0x63
sete al
add eax, 3
mov dword [0x418eb4], eax
jmp 0x4054ab
mov dword [0x418eb4], 2
push 0x20
pop esi
jmp 0x4054b2
inc edi
inc edi
cmp word [edi], si
ja 0x4054b0
jmp 0x4054c0
cmp ax, si
ja 0x4054c8
inc edi
inc edi
movzx eax, word [edi]
test ax, ax
jne 0x4054b9
push str.sfxconfig
mov eax, edi
mov dword [esp + 0x18], edi
call fcn.00404671
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405528
cmp word [ecx], 0x3a
jne 0x4054ee
jmp 0x4054ec
cmp ax, si
ja 0x4054f6
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x4054e7
mov edx, dword [esp + 0x74]
and dword [esp + 0x78], 0
xor eax, eax
mov word [edx], ax
lea eax, [esp + 0x74]
call fcn.0040448b
cmp dword [0x418eb4], 2
mov dword [esp + 0x14], eax
je 0x405528
lea edi, [esp + 0x74]
mov eax, 0x418f14
call fcn.00401873
mov edi, 0x418f14
mov eax, 0x418ed8
call fcn.00401873
mov ebx, 0x418ee4
mov eax, ebx
call fcn.00401873
push edi
call fcn.00402ef2
xor esi, esi
cmp eax, esi
pop ecx
jl 0x4055dd
mov edx, dword [0x418ed8]
lea esi, [eax + eax]
xor ecx, ecx
mov word [esi + edx], cx
mov dword [0x418edc], eax
mov eax, dword [0x418f14]
lea edi, [esi + eax + 2]
mov eax, ebx
call fcn.00401821
mov eax, dword [0x418f14]
lea edi, [esi + eax + 2]
mov esi, 0x418efc
mov eax, esi
call fcn.00401821
push 0x2e
pop edx
mov ecx, esi
call fcn.00403c03
test eax, eax
jle 0x4055ac
mov edx, dword [0x418efc]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [0x418f00], eax
mov edi, esi
mov esi, 0x418ef0
mov eax, esi
call fcn.00401873
push 4
call fcn.00403592
pop ecx
call fcn.00403bc8
mov eax, dword [0x418efc]
mov dword [0x418d54], eax
mov eax, dword [0x418ef0]
mov dword [0x418d5c], eax
xor esi, esi
call fcn.004037aa
mov edi, eax
mov eax, 0x418f08
call fcn.00401821
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x40561d
mov dword [eax + 4], 0x415dc0
mov dword [eax + 8], esi
mov edi, eax
mov dword [eax], 0x4159c4
mov dword [eax + 4], 0x4159dc
or dword [eax + 0xc], 0xffffffff
mov dword [esp + 0x20], edi
jmp 0x405623
mov dword [esp + 0x20], esi
mov edi, esi
cmp edi, esi
je 0x40562d
mov eax, dword [edi]
push edi
call dword [eax + 4]
push dword [0x418f14]
lea eax, [edi + 0xc]
call fcn.0040ead3
test al, al
jne 0x405662
push dword [0x418f14]
push 7
push 1
call fcn.00408e4b
add esp, 0xc
cmp edi, esi
je 0x40565b
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 2
jmp 0x405390
lea eax, [esp + 0x4c]
call fcn.00403d25
push edi
lea eax, [esp + 0x50]
call fcn.00403994
pop ecx
test al, al
jne 0x40569f
push 9
push esi
call fcn.00408e4b
push dword [esp + 0x54]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405698
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 3
jmp 0x405390
cmp dword [0x418eb4], esi
jne 0x405736
mov eax, dword [esp + 0x14]
push str.sfxconfig
call fcn.00404671
pop ecx
cmp eax, esi
je 0x405736
cmp word [eax], 0x3a
jne 0x4056c6
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
je 0x405719
cmp cx, 0x20
ja 0x4056de
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x4056ce
cmp word [eax], si
je 0x405719
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.004044f4
pop ecx
pop ecx
test al, al
jne 0x405719
push 0xa
push esi
call fcn.00408e4b
push dword [esp + 0x54]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp edi, esi
je 0x405712
mov eax, dword [edi]
push edi
call dword [eax + 8]
push 4
jmp 0x405390
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp edi, esi
je 0x4052a5
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4052a5
lea ecx, [esp + 0x38]
call fcn.0040f83a
cmp dword [esp + 0x50], esi
je 0x405768
push esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004021b9
add esp, 0xc
test al, al
jne 0x405768
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405708
cmp dword [0x418eb4], 4
je 0x405719
mov eax, dword [0x418578]
mov edi, 0x418578
jmp 0x4057b3
push eax
lea eax, [esp + 0x10c]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
push dword [edi]
call fcn.00403592
pop ecx
push eax
lea eax, [esp + 0x110]
push eax
call fcn.00401a76
add esp, 0xc
add edi, 0x10
mov eax, dword [edi]
cmp eax, esi
jne 0x40577d
lea eax, [esp + 0x38]
push eax
call fcn.004047cd
sub dword [esp + 0x18], 2
pop ecx
push 1
push 0x414680
mov esi, str.SfxVarCmdLine2
push esi
call fcn.00401a76
add esp, 0xc
mov ecx, dword [esp + 0x14]
cmp word [ecx], 0x20
jbe 0x4057fc
inc ecx
inc ecx
cmp word [ecx], 0x20
ja 0x4057e6
jmp 0x4057f8
cmp ax, 0x20
ja 0x405804
inc ecx
inc ecx
mov dword [esp + 0x14], ecx
movzx eax, word [ecx]
test ax, ax
jne 0x4057f0
movzx eax, word [ecx]
cmp ax, 0x2f
je 0x405817
cmp ax, 0x2d
jne 0x405a90
lea ebx, [ecx + 2]
cmp word [ebx], 0x21
je 0x405a83
push 0x415830
call fcn.0040427b
pop ecx
test eax, eax
je 0x405888
mov ecx, dword [esp + 0x14]
add ecx, 6
movzx eax, word [ecx]
cmp ax, 0x30
jb 0x405849
cmp ax, 0x39
jbe 0x405861
cmp ax, 0x61
jb 0x405855
cmp ax, 0x7a
jbe 0x405861
cmp ax, 0x41
jb 0x405874
cmp ax, 0x5a
ja 0x405874
mov dword [esp + 0x34], ecx
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 1
jmp 0x4057dc
cmp ax, 0x20
ja 0x405a90
mov dword [esp + 0x34], 0x415608
jmp 0x405865
push 0x415838
call fcn.0040427b
pop ecx
test eax, eax
je 0x4058ad
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
add eax, 6
mov edi, str.OverwriteMode
jmp 0x405a10
push 0x415840
call fcn.0040427b
pop ecx
test eax, eax
je 0x4058f8
mov eax, dword [esp + 0x14]
add eax, 6
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405a90
cmp cx, 0x32
ja 0x405a90
mov ecx, dword [esp + 0x14]
cmp word [ecx + 8], 0x20
ja 0x405a90
lea ecx, [esp + 0x38]
push ecx
mov edi, str.GUIMode
jmp 0x405a10
push 0x415848
call fcn.0040427b
pop ecx
test eax, eax
je 0x40591d
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
add eax, 6
mov edi, str.GUIFlags
jmp 0x405a10
push 0x415850
call fcn.0040427b
pop ecx
test eax, eax
je 0x405942
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
add eax, 6
mov edi, str.MiscFlags
jmp 0x405a10
push 0x415858
call fcn.0040427b
pop ecx
test eax, eax
je 0x405989
mov eax, dword [esp + 0x14]
add eax, 6
movzx ecx, word [eax]
cmp cx, 0x30
je 0x40596b
cmp cx, 0x31
jne 0x405a90
mov ecx, dword [esp + 0x14]
cmp word [ecx + 8], 0x20
ja 0x405a90
lea ecx, [esp + 0x38]
push ecx
mov edi, str.SelfDelete
jmp 0x405a10
push 0x415860
call fcn.0040427b
pop ecx
test eax, eax
je 0x4059b1
mov eax, dword [esp + 0x14]
cmp word [eax + 6], 0x20
ja 0x405a90
mov byte [esp + 0x27], 1
jmp 0x4057dc
push 0x415868
call fcn.0040427b
pop ecx
test eax, eax
je 0x4059f0
mov eax, dword [esp + 0x14]
add eax, 6
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x405a90
cmp cx, 0x39
ja 0x405a90
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41854c], eax
jmp 0x4057dc
push 0x415870
call fcn.0040427b
pop ecx
test eax, eax
je 0x405a1b
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
add eax, 8
mov edi, str.BeginPromptTimeout
call fcn.004049cd
pop ecx
jmp 0x4057dc
movzx eax, word [ebx]
cmp ax, 0x79
je 0x405a2a
cmp ax, 0x59
jne 0x405a3f
mov ecx, dword [esp + 0x14]
cmp word [ecx + 4], 0x20
ja 0x405a3f
mov byte [esp + 0x12], 1
jmp 0x4057dc
cmp ax, 0x3f
je 0x405a51
cmp ax, 0x68
je 0x405a51
cmp ax, 0x48
jne 0x405a66
mov eax, dword [esp + 0x14]
cmp word [eax + 4], 0x20
ja 0x405a66
mov byte [esp + 0x1b], 1
jmp 0x4057dc
lea eax, [esp + 0x38]
push eax
call fcn.004046db
pop ecx
test eax, eax
je 0x405a90
cmp eax, 1
je 0x405af6
mov dword [esp + 0x14], eax
jmp 0x4057dc
mov ebx, ecx
add ecx, 4
mov dword [esp + 0x14], ecx
test ebx, ebx
jne 0x405a94
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x80]
cmp edi, ebx
je 0x405b15
lea eax, [esp + 0x58]
call fcn.00403b39
mov ecx, eax
lea edx, [esp + 0x88]
mov eax, ebx
sub eax, edi
push edx
sar eax, 1
push ecx
call fcn.00406caf
lea edi, [esp + 0x88]
lea eax, [esp + 0x74]
call fcn.00401873
push dword [esp + 0x88]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [esp + 0x74]
call fcn.00406bb2
push 1
push dword [esp + 0x78]
jmp 0x405b1c
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x405b0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x20
jmp 0x405390
push 1
push 0x414680
push str.SfxVarCmdLine1
call fcn.00401a76
mov edi, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x58]
call fcn.00403b39
mov ecx, eax
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x88]
sub eax, edi
push edx
sar eax, 1
push ecx
call fcn.00406caf
lea edi, [esp + 0x88]
lea eax, [esp + 0x74]
call fcn.00401873
push dword [esp + 0x88]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [esp + 0x74]
call fcn.00406bb2
push 1
push dword [esp + 0x78]
push esi
call fcn.00401a76
lea eax, [esp + 0x44]
add esp, 0xc
push eax
call fcn.004047cd
cmp byte [esp + 0x1e], 0
pop ecx
jne 0x405d3d
test byte [0x418e7c], 4
je 0x405d3d
call fcn.00403851
test eax, eax
jne 0x405d3d
lea eax, [esp + 0x94]
call fcn.00401a43
lea eax, [esp + 0x58]
call fcn.00401a43
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea eax, [esp + 0x94]
call fcn.0040448b
mov edi, eax
lea eax, [esp + 0xac]
call fcn.00403b39
lea eax, [esp + 0xac]
push eax
push 0x20
push str.sfxelevation
push 0x41568c
lea edi, [esp + 0xa4]
lea eax, [esp + 0xd0]
call fcn.00406dab
mov edi, eax
lea eax, [esp + 0x38]
call fcn.00406dbe
mov edi, eax
pop ecx
lea eax, [esp + 0x74]
call fcn.00406dbe
mov edi, eax
pop ecx
lea eax, [esp + 0xa8]
call fcn.00406dd3
pop ecx
mov ecx, eax
lea eax, [esp + 0x8c]
call fcn.0040192d
mov edi, eax
pop ecx
lea eax, [esp + 0x58]
call fcn.00401873
push dword [esp + 0x88]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xa0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x68]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xc0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
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 [esp + 0x60]
call fcn.00404ced
add esp, 0xc
push dword [esp + 0xac]
test eax, eax
jne 0x405cff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x405cf8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xb
jmp 0x405390
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x4052a5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4052a5
and dword [esp + 0x1c], 0
mov esi, 0x41452c
jmp 0x405d94
lea eax, [esp + 0x88]
call fcn.00403b39
mov ebx, dword [esp + 0x88]
push 0x3d
mov edx, ebx
call fcn.0040f7b1
pop ecx
test eax, eax
jle 0x405dab
lea ecx, [eax + eax]
xor edx, edx
mov dword [esp + 0x8c], eax
push edx
lea eax, [ecx + edi + 2]
push eax
push ebx
mov word [ecx + ebx], dx
call fcn.00401a76
add esp, 0xc
inc dword [esp + 0x1c]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
lea ebx, [esp + 0x20]
lea edi, [esp + 0x3c]
call fcn.004024ea
mov edi, eax
pop ecx
test edi, edi
jne 0x405d49
jmp 0x405db2
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00404225
cmp dword [0x418540], 0xffffffff
jne 0x405dc7
and dword [0x418540], 0
cmp byte [esp + 0x1b], 0
je 0x405e30
push str.HelpText
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
mov edi, eax
pop ecx
test edi, edi
jne 0x405def
push 0x18
call fcn.00403592
pop ecx
mov edi, eax
lea esi, [esp + 0x108]
call fcn.00406fef
push 0
push dword [0x418d54]
mov eax, edi
push 0x11
mov ecx, esi
mov dword [esp + 0x114], 0x415a24
mov dword [esp + 0x14c], 0x7d6
call fcn.00407996
mov ecx, esi
call fcn.0040704c
jmp 0x405d1c
cmp byte [esp + 0x12], 0
je 0x405e41
and dword [0x418540], 0xfffffeff
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.InstallPath
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
pop ecx
test eax, eax
je 0x405e6a
mov edi, eax
mov eax, 0x418ecc
call fcn.00401821
mov eax, 0x418ecc
call fcn.004041ea
push str.BeginPromptTimeout
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
pop ecx
test eax, eax
je 0x405e96
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x418e88], eax
cmp dword [0x418f28], 0
je 0x405ecb
lea eax, [esp + 0x38]
call fcn.00408fae
push dword [esp + 0x4c]
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x4052a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4052a7
cmp dword [0x418eb4], 3
jne 0x405edf
lea eax, [esp + 0x38]
call fcn.0040924e
jmp 0x405ea8
push str.BeginPrompt
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
pop ecx
test eax, eax
je 0x405f38
cmp byte [esp + 0x12], bl
jne 0x405f38
push eax
call fcn.00408c5c
pop ecx
test eax, eax
je 0x40607b
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x405f25
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 1
cmp dword [0x418ea0], 0
je 0x405f38
and dword [0x418540], 0xffffff7f
lea eax, [esp + 0x28]
call fcn.00401a43
cmp byte [esp + 0x13], 0
je 0x405fda
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov edi, str.AutoInstall
lea eax, [esp + 0x28]
call fcn.00401821
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
push eax
lea esi, [esp + 0x2c]
call fcn.004018b2
push dword [esp + 0x28]
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
pop ecx
test eax, eax
je 0x40609a
add dword [esp + 0x1c], 2
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
cmp ax, 0x30
jb 0x405fa3
cmp ax, 0x39
jbe 0x405f54
cmp ax, 0x61
jb 0x405faf
cmp ax, 0x7a
jbe 0x405f54
cmp ax, 0x41
jb 0x405fbb
cmp ax, 0x5a
jbe 0x405f54
mov edi, str.AutoInstall
lea eax, [esp + 0x28]
call fcn.00401821
mov eax, dword [esp + 0x34]
movzx eax, word [eax]
push eax
lea esi, [esp + 0x2c]
call fcn.004018b2
cmp dword [esp + 0x2c], 0
mov byte [esp + 0x1a], 0
jne 0x406033
mov esi, str.ExecuteFile
push esi
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
pop ecx
test eax, eax
je 0x406012
mov edi, esi
lea eax, [esp + 0x28]
call fcn.00401821
mov byte [esp + 0x1a], 1
cmp dword [esp + 0x2c], ebx
jne 0x406033
mov esi, str.RunProgram
push esi
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
pop ecx
test eax, eax
je 0x406033
mov edi, esi
lea eax, [esp + 0x28]
call fcn.00401821
cmp byte [esp + 0x13], 0
jne 0x4060db
cmp byte [esp + 0x12], 0
jne 0x4060db
mov eax, dword [0x418540]
and eax, 0xc0
cmp al, 0x80
jne 0x4060db
call fcn.00408cf9
test eax, eax
jne 0x4060db
push dword [esp + 0x28]
cmp byte [0x418e6e], al
je 0x4060d3
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405edf
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x406093
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 5
jmp 0x405390
push dword [esp + 0x28]
push 0xe
push 0
call fcn.00408e4b
add esp, 0xc
push dword [esp + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x4060cc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 6
jmp 0x405390
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40607b
xor ebx, ebx
cmp dword [0x418ed0], ebx
jne 0x406117
push str.7ZipSfx._03x
lea esi, [esp + 0xc4]
call fcn.0040415e
mov edi, eax
pop ecx
mov eax, 0x418ecc
call fcn.00401873
push dword [esp + 0xc0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov byte [0x418d38], bl
jmp 0x406151
mov esi, 0x418ecc
mov edi, esi
lea eax, [esp + 0x58]
call fcn.004017ea
lea eax, [esp + 0x58]
call fcn.004041ea
cmp dword [esp + 0x5c], ebx
jne 0x406141
lea edi, [esp + 0x58]
mov eax, esi
call fcn.00401873
push dword [esp + 0x58]
mov byte [0x418d38], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x418ecc]
pop ecx
mov ecx, dword [0x418ed0]
movzx edx, word [eax + ecx*2 - 2]
cmp dx, 0x5c
je 0x40616e
cmp dx, 0x2f
jne 0x40617b
dec ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [0x418ed0], ecx
cmp byte [esp + 0x12], 0
je 0x406189
or dword [0x418e7c], 3
cmp dword [0x418eb0], ebx
jne 0x40619c
mov eax, dword [esp + 0x20]
call fcn.004016ee
jmp 0x4061aa
call fcn.00408f48
test eax, eax
jne 0x4061dc
mov eax, 0x80004005
cmp eax, ebx
je 0x4061dc
call fcn.00404cd6
push dword [esp + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
cmp eax, ebx
je 0x4061d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
jmp 0x405390
call fcn.00404225
cmp byte [esp + 0x27], 0
je 0x4061f5
cmp byte [0x418d38], 0
jne 0x406886
lea eax, [esp + 0x58]
mov dword [esp + 0x84], ebx
call fcn.00401a43
cmp byte [esp + 0x13], 0
jne 0x406219
lea eax, [esp + 0x58]
lea edx, [esp + 0x38]
call fcn.00404437
mov eax, dword [esp + 0x34]
mov byte [esp + 0x13], 0
mov dword [esp + 0x80], eax
xor ebx, ebx
lea eax, [esp + 0x68]
mov dword [esp + 0x64], ebx
mov byte [esp + 0x1b], bl
call fcn.00401a43
lea eax, [esp + 0xa0]
call fcn.00401a43
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x2c], ebx
jne 0x40630d
cmp byte [0x418d38], bl
jne 0x4066f7
mov eax, str.setup.exe
push eax
mov esi, eax
push 0x414610
mov edi, 0x418ecc
lea eax, [esp + 0x104]
call fcn.00406dbe
mov edi, eax
pop ecx
lea eax, [esp + 0xc4]
call fcn.00406dbe
mov edi, eax
pop ecx
lea eax, [esp + 0x68]
call fcn.00401873
push dword [esp + 0xc0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xfc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40670d
mov byte [esp + 0x13], 1
mov edi, esi
lea eax, [esp + 0xa0]
call fcn.00401821
lea eax, [esp + 0xa0]
call fcn.0040420e
mov ebx, dword [esp + 0xa0]
push 0
push str.waitall
call fcn.004042af
pop ecx
pop ecx
test eax, eax
je 0x4063a6
mov ebx, eax
mov byte [esp + 0x1b], 1
jmp 0x4062ee
push dword [esp + 0x28]
lea ebx, [esp + 0x88]
lea edi, [esp + 0x3c]
call fcn.004024ea
mov esi, eax
pop ecx
test esi, esi
jne 0x4062cd
mov esi, dword [esp + 0x80]
inc esi
inc esi
movzx eax, word [esi]
mov dword [esp + 0x80], esi
cmp ax, 0x30
jb 0x406347
cmp ax, 0x39
jbe 0x406367
cmp ax, 0x61
jb 0x406353
cmp ax, 0x7a
jbe 0x406367
cmp ax, 0x41
jb 0x4066f7
cmp ax, 0x5a
ja 0x4066f7
mov edi, str.AutoInstall
lea eax, [esp + 0x28]
call fcn.00401821
movzx eax, word [esi]
push eax
lea esi, [esp + 0x2c]
call fcn.004018b2
push dword [esp + 0xa0]
and dword [esp + 0x88], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x68]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406229
push 0
push str.hidcon
call fcn.004042af
pop ecx
pop ecx
test eax, eax
je 0x4063c4
or dword [esp + 0x1c], 1
mov ebx, eax
jmp 0x4062ee
push 0
push str.nowait
call fcn.004042af
pop ecx
pop ecx
test eax, eax
je 0x4063e7
cmp byte [0x418d38], 0
mov ebx, eax
je 0x4062ee
jmp 0x4063fb
push 0
push str.forcenowait
call fcn.004042af
pop ecx
pop ecx
test eax, eax
je 0x406408
mov ebx, eax
or dword [esp + 0x1c], 0x10000
jmp 0x4062ee
push 2
pop edi
push edi
push 0x415868
call fcn.004042af
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40643e
cmp dword [0x41854c], 0xffffffff
jne 0x406437
add ebx, 4
push ebx
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x41854c], eax
mov ebx, esi
jmp 0x4062ee
push 3
push 0x415910
call fcn.004042af
pop ecx
pop ecx
test eax, eax
je 0x406460
movzx ecx, word [ebx + 6]
sub ecx, 0x30
mov dword [esp + 0xbc], ecx
jmp 0x406480
push 3
push 0x415918
call fcn.004042af
pop ecx
pop ecx
test eax, eax
je 0x406487
movzx ecx, word [ebx + 6]
sub ecx, 0x30
mov dword [esp + 0xb8], ecx
mov ebx, eax
jmp 0x4062ee
push 0
push 0x41477c
call fcn.004042af
pop ecx
pop ecx
test eax, eax
jne 0x4064d7
push eax
push str.i386
call fcn.004042af
pop ecx
pop ecx
test eax, eax
jne 0x4064d7
push eax
push str.amd64
call fcn.004042af
pop ecx
pop ecx
test eax, eax
jne 0x4064cc
push eax
push 0x414774
call fcn.004042af
pop ecx
pop ecx
test eax, eax
je 0x4064e6
mov ebx, eax
mov dword [esp + 0x64], edi
jmp 0x4062ee
mov ebx, eax
mov dword [esp + 0x64], 1
jmp 0x4062ee
cmp byte [esp + 0x1a], 0
lea eax, [esp + 0x68]
je 0x406545
cmp word [ebx], 0x22
je 0x406515
mov edi, 0x415604
call fcn.00401821
mov eax, ebx
lea esi, [esp + 0x68]
call fcn.00403bc8
mov eax, edi
call fcn.00403bc8
jmp 0x40651c
mov edi, ebx
call fcn.00401821
push str.ExecuteParameters
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
mov edi, eax
pop ecx
test edi, edi
je 0x406559
mov eax, 0x415938
lea esi, [esp + 0x68]
call fcn.00403bc8
mov eax, edi
jmp 0x406550
lea edi, [esp + 0x58]
call fcn.00401873
mov eax, ebx
lea esi, [esp + 0x68]
call fcn.00403bc8
lea eax, [esp + 0x94]
call fcn.00401a43
mov ebx, dword [esp + 0x68]
lea eax, [esp + 0x94]
mov ecx, ebx
call fcn.0040448b
mov edi, eax
lea eax, [esp + 0xac]
call fcn.00403b39
lea eax, [esp + 0x94]
call fcn.0040420e
cmp dword [0x418eb4], 0
jne 0x40669f
mov esi, dword [esp + 0x64]
call fcn.00403827
test eax, eax
je 0x40669f
mov edi, dword [esp + 0x14]
cmp word [edi], 0
je 0x4065d9
mov eax, edi
lea esi, [esp + 0xac]
call fcn.00403bc8
cmp word [edi], 0
je 0x4065d9
inc edi
inc edi
cmp word [edi], 0
jne 0x4065cd
mov dword [esp + 0x14], edi
lea eax, [esp + 0xac]
call fcn.0040420e
cmp byte [esp + 0x1b], 0
jne 0x406678
lea eax, [esp + 0xac]
push eax
push 0x41566c
lea edi, [esp + 0x9c]
lea eax, [esp + 0xec]
call fcn.00406dab
mov edi, eax
lea eax, [esp + 0xf8]
call fcn.00406dbe
pop ecx
mov ecx, eax
lea eax, [esp + 0x8c]
call fcn.0040192d
pop ecx
push dword [esp + 0xf0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xe4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [0x418ecc]
push dword [esp + 0x20]
push dword [esp + 0x90]
call fcn.00404ced
add esp, 0xc
push dword [esp + 0x88]
test eax, eax
je 0x406768
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40669a
push dword [esp + 0x1c]
push dword [esp + 0xb0]
push dword [esp + 0x9c]
call fcn.00404dc3
add esp, 0xc
test eax, eax
jne 0x406770
call fcn.004037bf
cmp byte [esp + 0x1a], 0
jne 0x4067ea
cmp byte [esp + 0x13], 0
jne 0x4067ea
mov ecx, dword [esp + 0x58]
push dword [esp + 0xac]
and dword [esp + 0x60], 0
xor eax, eax
inc dword [esp + 0x88]
mov word [ecx], ax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xa0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
jmp 0x40639b
push dword [esp + 0xa0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x68]
jmp 0x406812
call fcn.00404cd6
push 0xf
push ebx
call fcn.00408e4b
push dword [esp + 0xa8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
push dword [esp + 0x68]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
cmp eax, ebx
je 0x4053ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4053ec
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x406777
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 0x10
push 1
call fcn.00408e4b
add esp, 0xc
call fcn.00404cd6
push dword [esp + 0xac]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xa0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x4067e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 9
jmp 0x405390
push dword [esp + 0xac]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x94]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xa0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor ebx, ebx
pop ecx
cmp dword [0x418eb4], ebx
jne 0x40687c
call fcn.00404225
push dword [esp + 0xbc]
lea eax, [esp + 0x3c]
push dword [esp + 0x38]
push str.Shortcut
push eax
push 0x404a26
call fcn.00404b13
add esp, 0x14
push dword [0x418ed8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [esp + 0xb8]
lea eax, [esp + 0x3c]
push dword [esp + 0x38]
push str.Delete
push eax
push 0x404ae5
call fcn.00404b13
add esp, 0x14
call fcn.00404cd6
push dword [esp + 0x58]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [0x41854c], 0xffffffff
jne 0x4068a0
cmp byte [esp + 0x12], 0
jne 0x40690d
mov dword [0x41854c], 1
cmp dword [0x41854c], ebx
jle 0x40690d
push str.FinishMessage
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
mov edi, eax
pop ecx
test edi, edi
je 0x40690d
mov eax, 0x3e7
cmp dword [0x41854c], eax
jle 0x4068d1
mov dword [0x41854c], eax
lea esi, [esp + 0x108]
call fcn.00406fef
push 0
push dword [0x418d54]
mov eax, edi
push 0x11
mov ecx, esi
mov dword [esp + 0x114], 0x4159f4
mov dword [esp + 0x14c], 0x7d5
call fcn.00407996
mov ecx, esi
call fcn.0040704c
cmp byte [esp + 0x27], 0
jne 0x40694f
cmp dword [0x418eb4], 0
jne 0x40694f
push str.SelfDelete
xor ebx, ebx
lea edi, [esp + 0x3c]
call fcn.004024ea
pop ecx
test eax, eax
je 0x40694f
cmp word [eax], 0x31
jne 0x40694f
sub esp, 0xc
mov edi, 0x418f14
mov eax, esp
call fcn.004017ea
call fcn.004069ef
add esp, 0xc
push dword [esp + 0x28]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x4c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
pop ecx
test eax, eax
je 0x406971
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0xcc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x4159ec
call fcn.0040f83a
lea ecx, [esp + 0x38]
call fcn.0040f80e
push dword [esp + 0xd8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
jmp 0x4069ca
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
mov esp, ebp
pop ebp
ret 0x10