Function at 0x40ce22
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Delete registry value
Extract resource via kernel32 functions
Get common file path
Get file attributes
Hash data with crc32
Query or enumerate registry value
Read .ini file
Shutdown system
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xe04
and dword [ebp + 0x60], 0
push ebx
push esi
push edi
mov byte [ebp - 0xb9c], 0
call fcn.00401c37
mov edi, pe_nt_image_headers32
push edi
call fcn.00401fe8
pop ecx
push edi
push eax
push dword [ebp + 0x70]
mov dword [0x418b50], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x418b50]
mov esi, eax
push 0x7e
push eax
mov dword [ebp + 0x64], esi
call fcn.004025e3
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ecx
pop ecx
je 0x40cfd7
cmp dword [0x4186c0], 0
je 0x40cfd7
push 0x5c
push esi
call fcn.004025e3
test eax, eax
pop ecx
pop ecx
jne 0x40ced4
push esi
lea eax, [ebp - 0xfc]
push eax
call ebx
push edi
push esi
call fcn.0040eab2
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
je 0x40cec6
push 0x414474
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xfc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x41806c], 1
mov ecx, dword [ebp + 0x64]
mov esi, ecx
jle 0x40cef8
mov eax, ecx
movsx eax, byte [eax]
push 0x103
push eax
call fcn.0040e5a2
pop ecx
pop ecx
mov ecx, esi
jmp 0x40cf0a
movsx eax, byte [ecx]
mov edx, dword [str.________________________________H]
movzx eax, word [edx + eax*2]
and eax, 0x103
test eax, eax
je 0x40cf26
cmp byte [ecx + 1], 0x3a
jne 0x40cf26
mov eax, dword [ebp + 0x64]
movsx eax, byte [eax]
push eax
call fcn.0040e620
pop ecx
mov ecx, dword [ebp + 0x64]
mov byte [ecx], al
cmp byte [ecx], 0x5c
jne 0x40cf50
cmp byte [ecx + 1], 0x5c
jne 0x40cf50
lea esi, [ecx + 2]
jmp 0x40cf3b
cmp al, 0x5c
je 0x40cf4f
inc esi
mov al, byte [esi]
test al, al
jne 0x40cf36
cmp al, 0x5c
jne 0x40cf50
jmp 0x40cf4f
cmp al, 0x5c
je 0x40cfd1
inc esi
mov al, byte [esi]
test al, al
jne 0x40cf47
jmp 0x40cfcc
cmp byte [esi], 0
mov eax, esi
jmp 0x40cf68
cmp byte [eax], 0x5c
je 0x40cf6d
inc eax
cmp byte [eax], 0
mov dword [ebp + 0x5c], eax
jne 0x40cf5f
push dword [ebp + 0x5c]
lea eax, [ebp - 0xfc]
push eax
call ebx
mov eax, dword [ebp + 0x5c]
mov byte [eax], 0
lea eax, [ebp - 0x89c]
push eax
push 0x17
push dword [ebp + 0x64]
call fcn.00401cc6
add esp, 0xc
test eax, eax
jne 0x40cfae
lea eax, [ebp - 0x89c]
push eax
push esi
call ebx
lea eax, [ebp - 0x89c]
push eax
call fcn.00401d45
pop ecx
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, dword [ebp + 0x64]
lea eax, [ebp - 0xfc]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esi], 0x5c
jne 0x40cfd2
inc esi
cmp byte [esi], 0
jne 0x40cf58
lea eax, [ebp + 4]
push eax
mov dword [ebp + 4], 1
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push edi
mov dword [0x41879c], eax
call fcn.00401fe8
pop ecx
push edi
push eax
push dword [ebp + 0x70]
mov dword [0x418a24], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x415428
push dword [0x418a24]
call esi
mov ecx, dword [0x418a24]
lea eax, [eax + ecx - 3]
push eax
call ebx
push 0x4000
call fcn.00401fe8
pop ecx
push dword [ebp + 0x78]
mov dword [0x418740], eax
lea eax, [ebp - 0x99c]
push eax
mov dword [ebp + 0x50], 1
call ebx
cmp byte [ebp - 0x99c], 0
jne 0x40d0c5
push dword [0x418a24]
lea eax, [ebp - 0xfc]
push eax
call ebx
lea eax, [ebp - 0xfc]
push 0
push eax
call fcn.0040306b
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call esi
lea ecx, [ebp - 0xfc]
dec ecx
add eax, ecx
jmp 0x40d089
cmp byte [eax], 0x5c
je 0x40d098
dec eax
lea ecx, [ebp - 0xfc]
cmp eax, ecx
ja 0x40d083
cmp byte [eax], 0x5c
jne 0x40d099
inc eax
push str.INSTALL.LOG
push eax
call ebx
lea eax, [ebp - 0xfc]
push 0
push eax
call fcn.00401d5c
test eax, eax
pop ecx
pop ecx
jne 0x40d0c5
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x99c]
push eax
call ebx
push 2
lea eax, [ebp - 0x99c]
push 0x415418
push eax
call fcn.00413271
add esp, 0xc
test eax, eax
je 0x40d167
lea eax, [ebp - 0xfc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xa9c]
push eax
push 0x1a2b
push 0x415414
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x415148
lea eax, [ebp - 0xa9c]
push eax
call esi
lea ecx, [ebp - 0xa9c]
sub ecx, 3
add eax, ecx
push eax
call ebx
push edi
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40d163
lea eax, [ebp - 0xa9c]
push eax
call fcn.00401ee8
pop ecx
and dword [ebp + 0x50], 0
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push 0x6a
push dword [ebp + 0x70]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push dword [ebp + 0x70]
call ebx
push eax
mov dword [ebp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 5
push 0x68
push dword [ebp + 0x70]
call esi
push eax
push dword [ebp + 0x70]
call ebx
push eax
mov dword [ebp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 2
push 0x6a
push dword [ebp + 0x70]
call esi
push eax
push dword [ebp + 0x70]
call ebx
push eax
mov dword [ebp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x6a
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_LoadBitmapA]
and dword [0x418704], 0
cmp byte [ebp - 0x99c], 0x2f
mov dword [0x418b30], eax
lea eax, [ebp - 0x99c]
mov dword [ebp + 0x78], eax
jne 0x40d2eb
mov esi, dword [ebp + 0x78]
lea eax, [esi + 1]
mov dword [ebp + 0x64], eax
movsx eax, byte [eax]
xor ebx, ebx
push eax
inc ebx
call fcn.0040e620
cmp eax, 0x5a
mov eax, dword [ebp + 0x64]
pop ecx
jne 0x40d23b
cmp byte [eax], 0x7a
jne 0x40d222
cmp byte [esi + 2], 0x31
jne 0x40d21c
mov esi, eax
mov dword [0x418748], ebx
mov dword [0x418a4c], ebx
inc esi
inc esi
cmp byte [esi], 0x20
mov dword [ebp + 0x78], esi
jne 0x40d2e2
inc esi
cmp byte [esi], 0x20
je 0x40d230
jmp 0x40d2d1
movsx eax, byte [eax]
push eax
call fcn.0040e620
cmp eax, 0x41
pop ecx
jne 0x40d252
mov dword [0x418704], ebx
jmp 0x40d29e
mov eax, dword [ebp + 0x64]
movsx eax, byte [eax]
push eax
call fcn.0040e620
cmp eax, 0x53
pop ecx
jne 0x40d26c
mov dword [0x41878c], ebx
jmp 0x40d24a
mov eax, dword [ebp + 0x64]
movsx eax, byte [eax]
push eax
call fcn.0040e620
cmp eax, 0x52
pop ecx
jne 0x40d286
mov dword [0x41869c], ebx
jmp 0x40d29e
mov eax, dword [ebp + 0x64]
movsx eax, byte [eax]
push eax
call fcn.0040e620
cmp eax, 0x55
pop ecx
jne 0x40d2a2
mov dword [0x418a70], ebx
inc esi
inc esi
jmp 0x40d2d1
mov eax, dword [ebp + 0x64]
movsx eax, byte [eax]
push eax
call fcn.0040e620
cmp eax, 0x57
pop ecx
jne 0x40d2eb
mov esi, dword [ebp + 0x78]
add esi, 2
push esi
call fcn.0040e74f
cmp byte [esi], 0x20
pop ecx
mov dword [0x418aec], eax
je 0x40d2d9
inc esi
cmp byte [esi], 0x20
jne 0x40d2cb
cmp byte [esi], 0x20
mov dword [ebp + 0x78], esi
jne 0x40d2e2
inc esi
cmp byte [esi], 0x20
je 0x40d2d9
mov dword [ebp + 0x78], esi
cmp byte [esi], 0x2f
je 0x40d1eb
mov esi, dword [ebp + 0x78]
cmp byte [esi], 0x20
jne 0x40d2fc
inc esi
cmp byte [esi], 0x20
je 0x40d2f3
mov dword [ebp + 0x78], esi
mov bl, 0x22
cmp byte [esi], bl
jne 0x40d356
inc esi
push esi
mov dword [ebp + 0x78], esi
call fcn.0040f180
pop ecx
jmp 0x40d315
cmp byte [eax + esi], bl
je 0x40d31b
dec eax
test eax, eax
jg 0x40d30f
jmp 0x40d329
add eax, esi
lea ecx, [eax + 1]
mov dword [0x418b0c], ecx
mov byte [eax], 0
mov eax, dword [0x418b0c]
jmp 0x40d336
inc eax
mov dword [0x418b0c], eax
cmp byte [eax], 0x20
je 0x40d330
push eax
call fcn.0040f180
test eax, eax
pop ecx
jne 0x40d34c
and dword [0x418b0c], eax
push 0
push esi
call fcn.0040306b
pop ecx
pop ecx
push 0x20
push esi
call fcn.004025e3
test eax, eax
pop ecx
pop ecx
je 0x40d399
cmp dword [0x418a4c], 0
jne 0x40d399
mov byte [eax], 0
inc eax
mov dword [0x418b0c], eax
cmp byte [eax], bl
jne 0x40d380
inc eax
mov dword [0x418b0c], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x40d399
mov ecx, dword [0x418b0c]
add eax, ecx
cmp byte [eax], bl
jne 0x40d399
mov byte [eax], 0
cmp dword [0x418aec], 0
je 0x40d798
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x250]
push eax
call esi
lea eax, [ebp - 0x250]
push 0x7e
push eax
call fcn.004025e3
test eax, eax
pop ecx
pop ecx
je 0x40d584
cmp dword [0x4186c0], 0
je 0x40d584
lea eax, [ebp - 0x250]
push 0x5c
push eax
call fcn.004025e3
test eax, eax
pop ecx
pop ecx
jne 0x40d44e
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0xfc]
push eax
call esi
lea eax, [ebp - 0x250]
push edi
push eax
call fcn.0040eab2
pop ecx
pop ecx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x250]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40d43a
push 0x414474
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x41806c], 1
movsx eax, byte [ebp - 0x250]
lea esi, [ebp - 0x250]
jle 0x40d473
push 0x103
push eax
call fcn.0040e5a2
pop ecx
pop ecx
jmp 0x40d482
mov ecx, dword [str.________________________________H]
movzx eax, word [ecx + eax*2]
and eax, 0x103
test eax, eax
je 0x40d4a3
cmp byte [ebp - 0x24f], 0x3a
jne 0x40d4a3
movsx eax, byte [ebp - 0x250]
push eax
call fcn.0040e620
pop ecx
mov byte [ebp - 0x250], al
cmp byte [ebp - 0x250], 0x5c
jne 0x40d4d4
cmp byte [ebp - 0x24f], 0x5c
jne 0x40d4dd
mov al, byte [ebp - 0x24e]
lea esi, [ebp - 0x24e]
jmp 0x40d4ca
cmp al, 0x5c
je 0x40d4d3
inc esi
mov al, byte [esi]
test al, al
jne 0x40d4c3
cmp byte [esi], 0x5c
jne 0x40d4d4
inc esi
cmp byte [esi], 0
je 0x40d575
mov al, byte [esi]
cmp al, 0x5c
je 0x40d57a
inc esi
mov al, byte [esi]
test al, al
jne 0x40d4df
jmp 0x40d575
cmp byte [esi], 0
mov ebx, esi
je 0x40d505
cmp byte [ebx], 0x5c
je 0x40d505
inc ebx
cmp byte [ebx], 0
jne 0x40d4fa
push ebx
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x89c]
push eax
lea eax, [ebp - 0x250]
push 0x17
push eax
mov byte [ebx], 0
call fcn.00401cc6
add esp, 0xc
test eax, eax
jne 0x40d54d
lea eax, [ebp - 0x89c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x89c]
push eax
call fcn.00401d45
pop ecx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x250]
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esi], 0x5c
jne 0x40d57b
inc esi
cmp byte [esi], 0
jne 0x40d4f3
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x654]
push str.SoftwareWise_SolutionsWise_Installation_SystemRepair_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp byte [ebp - 0x61c], 0
lea eax, [ebp - 0x61c]
je 0x40d5bd
cmp byte [eax], 0x5c
jne 0x40d5b7
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x40d5af
lea eax, [ebp + 0x60]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x654]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d959
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
push eax
lea ecx, [ebp + 0x58]
push ecx
push eax
lea ecx, [ebp + 0x64]
push ecx
lea ecx, [ebp - 0x85c]
push ecx
push eax
push dword [ebp + 0x60]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x64], 0x208
call ebx
test eax, eax
jne 0x40d910
xor esi, esi
inc esi
cmp dword [ebp + 0x58], esi
jne 0x40d6e9
lea eax, [ebp - 0x85c]
push eax
call fcn.0040e74f
cmp byte [ebp - 0x85c], 0
pop ecx
mov dword [ebp + 0x20], eax
lea esi, [ebp - 0x85c]
je 0x40d66f
cmp dword [0x41806c], 1
movsx eax, byte [esi]
jle 0x40d658
push 4
push eax
call fcn.0040e5a2
pop ecx
pop ecx
jmp 0x40d665
mov ecx, dword [str.________________________________H]
movzx eax, byte [ecx + eax*2]
and eax, 4
test eax, eax
je 0x40d66f
inc esi
cmp byte [esi], 0
jne 0x40d640
cmp byte [esi], 0x5c
jne 0x40d675
inc esi
lea ecx, [ebp - 0x100]
jmp 0x40d68a
cmp al, 0x5c
jne 0x40d686
cmp byte [esi + 1], al
je 0x40d690
mov byte [ecx], al
inc ecx
inc esi
mov al, byte [esi]
test al, al
jne 0x40d67d
cmp byte [esi], 0x5c
jne 0x40d704
cmp byte [esi + 1], 0x5c
jne 0x40d704
lea eax, [ebp + 0x24]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 0x20]
push dword [eax*4 + 0x418030]
add esi, 2
mov byte [ecx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d6e0
cmp byte [esi], al
je 0x40d704
push eax
push eax
lea ecx, [ebp + 0x1c]
push ecx
push eax
push esi
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d704
mov dword [ebp + 0x5c], 1
jmp 0x40d704
cmp dword [ebp + 0x58], 4
jne 0x40d704
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d704
mov dword [ebp + 0x5c], esi
inc dword [ebp + 0x54]
xor esi, esi
push esi
push esi
lea eax, [ebp + 0x58]
push eax
push esi
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x85c]
push eax
push dword [ebp + 0x54]
mov dword [ebp + 0x64], 0x208
push dword [ebp + 0x60]
call ebx
test eax, eax
je 0x40d615
cmp dword [ebp + 0x5c], esi
je 0x40d910
push edi
lea eax, [ebp - 0xfc]
push eax
push 0x4a
push dword [0x418790]
call fcn.004033e3
push 0x200
lea eax, [ebp - 0xd9c]
push eax
push 0x51
push dword [0x418790]
call fcn.004033e3
add esp, 0x20
push 3
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0xd9c]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp al, 6
jne 0x40d8af
xor eax, eax
inc eax
mov dword [0x418704], eax
mov dword [0x418a70], eax
push dword [0x418a24]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.Start_Red
mov ebx, str.Settings
push ebx
call esi
push dword [0x418a24]
mov dword [0x418760], eax
push 0
push str.Start_Green
push ebx
call esi
push dword [0x418a24]
mov dword [0x418764], eax
push 0xff
push str.Start_Blue
push ebx
call esi
push dword [0x418a24]
mov dword [0x418768], eax
push 0
push str.End_Red
push ebx
call esi
push dword [0x418a24]
sub eax, dword [0x418760]
push 0
push str.End_Green
push ebx
mov dword [0x41876c], eax
call esi
push dword [0x418a24]
sub eax, dword [0x418764]
push 0
push str.End_Blue
push ebx
mov dword [0x418770], eax
call esi
push dword [0x418a24]
sub eax, dword [0x418768]
push 1
push str.No_Background
push ebx
mov dword [0x418774], eax
call esi
mov dword [0x41873c], eax
call fcn.004034b1
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [0x418b00]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x4186d8], 0xffffff
je 0x40d92b
push dword [ebp + 0x70]
call eax
test eax, eax
je 0x40d924
cmp dword [0x4186c0], 1
mov eax, dword [0x418b60]
jne 0x40d897
test eax, eax
jne 0x40d8a4
test eax, eax
jne 0x40d8a4
push dword [ebp + 0x70]
call dword [0x418ba4]
push 0xf
call esi
mov dword [0x4186d8], eax
jmp 0x40d92b
cmp al, 7
je 0x40d910
xor edi, edi
push edi
push edi
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x85c]
push eax
push edi
push dword [ebp + 0x60]
xor esi, esi
mov dword [ebp + 0x64], 0x208
call ebx
test eax, eax
jne 0x40d910
lea eax, [ebp - 0x85c]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
push edi
lea eax, [ebp + 0x58]
push eax
push edi
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x85c]
push eax
inc esi
push esi
push dword [ebp + 0x60]
mov dword [ebp + 0x64], 0x208
call ebx
test eax, eax
je 0x40d8da
jmp 0x40d8b5
push dword [ebp + 0x60]
call fcn.00402793
pop ecx
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d959
and dword [0x418b00], 0
push 0xf
call esi
xor ebx, ebx
cmp dword [ebp + 0x74], ebx
mov dword [0x4186d8], eax
jne 0x40d948
push dword [ebp + 0x70]
call fcn.00409fa9
test eax, eax
pop ecx
je 0x40d959
push dword [ebp + 0x7c]
push dword [ebp + 0x70]
call fcn.00403ba3
test eax, eax
pop ecx
pop ecx
jne 0x40d965
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x418a2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x418a50], eax
mov dword [eax], ebx
xor eax, eax
inc eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x40d99c
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x40d99e
shr ecx, 1
dec edx
jne 0x40d98d
mov edx, dword [0x418a50]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, edi
jl 0x40d988
push edi
call fcn.00401fe8
push edi
mov dword [0x4186b0], eax
call fcn.00401fe8
push edi
push dword [0x4186b0]
mov dword [0x4186c8], eax
push 0x19
push dword [0x418790]
call fcn.004033e3
push edi
push dword [0x4186c8]
push 0x3b
push dword [0x418790]
call fcn.004033e3
mov esi, 0x104
push esi
call fcn.00401fe8
add esp, 0x2c
mov dword [0x418b54], eax
mov byte [eax], 0
lea eax, [ebp + 0x74]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40da70
lea eax, [ebp + 0x7c]
push eax
push dword [0x418b54]
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp + 0x74]
mov dword [ebp + 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [0x418b54]
jne 0x40da64
cmp byte [eax], 0
je 0x40da67
push eax
call fcn.00401ec6
cmp eax, dword [0x418b54]
pop ecx
jbe 0x40da67
mov byte [eax - 1], 0
jmp 0x40da67
mov byte [eax], 0
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x418a4c], ebx
je 0x40dc6a
mov eax, dword [ebp + 0x78]
cmp byte [eax], 0
je 0x40dc6a
push ebx
push 0x3e8
push 0x206a
push dword [0x418ba8]
mov dword [0x418708], 1
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x40dac5
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
lea eax, [ebp + 0x28]
push ebx
push eax
call esi
test eax, eax
jne 0x40dab1
cmp dword [0x418708], ebx
jne 0x40dac5
push 0x206a
push dword [0x418ba8]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 0x78]
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x350]
push 0x20
push eax
call fcn.004025e3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40db16
mov byte [esi], 0
lea eax, [ebp - 0x350]
dec eax
mov dword [ebp + 0x78], eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x78]
cmp byte [eax + ecx], 0x5c
je 0x40db43
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x78]
jmp 0x40db5b
cmp byte [eax], 0x5c
je 0x40db6a
dec eax
lea ecx, [ebp - 0x350]
cmp eax, ecx
ja 0x40db55
cmp byte [eax], 0x5c
jne 0x40db6d
mov byte [eax], 0
lea eax, [ebp - 0x350]
push ebx
push eax
call fcn.0040afd7
cmp esi, ebx
pop ecx
pop ecx
je 0x40dba2
inc esi
cmp byte [esi], 0
je 0x40dba2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi - 1]
cmp byte [eax], 0x5c
jne 0x40db99
mov byte [eax], 0
push ebx
push esi
call fcn.0040afd7
pop ecx
pop ecx
push dword [0x418ba8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x40dbca
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp + 0x28]
push ebx
push eax
call esi
test eax, eax
jne 0x40dbb6
push dword [0x418b30]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
push dword [ebp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp + 0x44]
call esi
push dword [ebp + 0x48]
call esi
push edi
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x418a60]
test eax, eax
je 0x40dc17
push eax
call ebx
mov eax, dword [0x4186c4]
test eax, eax
je 0x40dc23
push eax
call ebx
cmp dword [0x418748], 0
je 0x40dc62
mov eax, dword [0x4186c0]
cmp eax, 1
je 0x40dc46
test eax, eax
je 0x40dc46
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40dc62
lea eax, [ebp - 0x450]
push eax
call fcn.004028f6
pop ecx
push 5
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [ebp + 0x30]
jmp 0x40d95b
mov eax, dword [ebp + 0x78]
cmp byte [eax], 0
mov byte [ebp - 0x450], 0
jne 0x40dd43
push 0x4c
pop esi
push esi
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.0040e810
mov eax, dword [0x418ba8]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x144], eax
push edi
lea eax, [ebp - 0x550]
push eax
push 1
push dword [0x418790]
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x118], 0x1000
call fcn.004033e3
add esp, 0x1c
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [ebp + eax - 0x54f]
push str.install.log
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + ebx + 1], 0
lea eax, [ebp - 0x550]
mov dword [ebp - 0x140], eax
push str.INSTALL.LOG
lea eax, [ebp - 0x350]
push eax
call esi
lea eax, [ebp - 0x350]
mov dword [ebp - 0x130], eax
call fcn.00402521
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test eax, eax
je 0x40dd53
push dword [ebp - 0x130]
jmp 0x40dd4a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x450]
push eax
call esi
cmp byte [ebp - 0x450], 0
je 0x40ddcf
lea eax, [ebp - 0x450]
push 0x5c
push eax
call fcn.004025e3
test eax, eax
pop ecx
pop ecx
jne 0x40ddcf
lea eax, [ebp - 0xfc]
push edi
push eax
call fcn.0040eab2
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0xfc]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40ddab
push 0x414474
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x450]
push eax
call esi
push edi
call fcn.00401fe8
mov esi, 0x4000
push esi
mov dword [0x4186e4], eax
call fcn.00401fe8
push esi
push 0
push eax
mov dword [0x418730], eax
call fcn.0040e810
push edi
call fcn.00401fe8
push 0x400
mov dword [0x418724], eax
call fcn.00401fe8
push edi
mov dword [0x418a5c], eax
call fcn.00401fe8
mov ebx, 0x104
push ebx
mov dword [0x418a44], eax
call fcn.00401fe8
mov esi, 0x200
push esi
mov dword [0x418b08], eax
call fcn.00401fe8
push edi
mov dword [0x418b20], eax
call fcn.00401fe8
push ebx
mov dword [0x418b1c], eax
call fcn.00401fe8
push ebx
mov dword [0x418a6c], eax
call fcn.00401fe8
push esi
mov dword [0x418a3c], eax
call fcn.00401fe8
push esi
push 0
push eax
mov dword [0x418b90], eax
call fcn.0040e810
add esp, 0x44
mov ebx, 0x2ee00
push ebx
call fcn.00401fe8
mov esi, 0xfa00
push esi
mov dword [0x418778], eax
call fcn.00401fe8
push esi
mov dword [0x418b5c], eax
call fcn.00401fe8
push esi
mov dword [0x418a48], eax
call fcn.00401fe8
push esi
mov dword [0x418af0], eax
call fcn.00401fe8
push esi
mov dword [0x418b64], eax
call fcn.00401fe8
push esi
mov dword [0x418a28], eax
call fcn.00401fe8
push ebx
mov dword [0x418ae0], eax
call fcn.00401fe8
push esi
mov dword [0x41872c], eax
call fcn.00401fe8
push ebx
mov dword [0x4186cc], eax
call fcn.00401fe8
push ebx
mov dword [0x418728], eax
call fcn.00401fe8
mov dword [0x41870c], eax
push esi
call fcn.00401fe8
push esi
mov dword [0x418b18], eax
call fcn.00401fe8
push esi
mov dword [0x418744], eax
call fcn.00401fe8
push esi
mov dword [0x418a34], eax
call fcn.00401fe8
push 0x1000
mov dword [0x418a30], eax
call fcn.00401fe8
add esp, 0x40
push esi
mov dword [0x418a58], eax
call fcn.00401fe8
and dword [0x4186f8], 0
push edi
push dword [0x418b1c]
mov dword [0x4186ec], eax
push 0x19
push dword [0x418790]
call fcn.004033e3
push 0x200
push dword [0x418b20]
push 0x44
push dword [0x418790]
call fcn.004033e3
xor ebx, ebx
add esp, 0x24
cmp byte [ebp - 0x450], bl
je 0x40e28e
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov dword [ebp + 0x78], eax
lea eax, [ebp - 0xb9c]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00405342
test eax, eax
pop ecx
pop ecx
push dword [ebp + 0x78]
jne 0x40e28c
call esi
cmp dword [0x418704], ebx
mov ecx, 0x3e8
je 0x40dfd4
mov dword [0x41868c], ecx
mov byte [0x418b9c], 0xb
cmp dword [0x418a70], ebx
mov eax, dword [0x418aec]
je 0x40dff9
mov edx, eax
neg edx
sbb edx, edx
and edx, 9
add edx, ecx
mov dword [0x41868c], edx
mov byte [0x418b9c], 0xb
cmp dword [0x41878c], ebx
jne 0x40e0b2
cmp eax, ebx
jne 0x40e00e
call fcn.00402521
push ebx
push dword [0x418ba8]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push sym.UNWISE32.EXE__ItemDlg_16
push dword [0x418ba8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x418ba8]
push eax
push 0x6a
push dword [0x418790]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp dword [0x418704], ebx
mov dword [0x418794], eax
jne 0x40e0b2
cmp dword [0x418738], ebx
jne 0x40e230
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor ebx, ebx
cmp dword [0x4186b8], ebx
jne 0x40e0b4
jmp 0x40e099
lea eax, [ebp + 0x28]
push eax
push dword [0x418794]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40e099
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
lea eax, [ebp + 0x28]
push ebx
push eax
call esi
test eax, eax
jne 0x40e071
cmp dword [0x418738], ebx
je 0x40e067
jmp 0x40e0b4
xor ebx, ebx
cmp dword [0x418738], ebx
jne 0x40e230
push 0x414474
call fcn.0040eb0d
xor esi, esi
xor ebx, ebx
cmp dword [0x4186e0], esi
pop ecx
mov dword [ebp + 0x78], esi
je 0x40e136
push str.SFC.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [ebp + 0x78], eax
je 0x40e136
push str.SRSetRestorePoint
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x40e136
push dword [0x4186e4]
lea eax, [ebp - 0x3c]
push str.Uninstall__s
push eax
mov dword [ebp - 0x4c], 0x64
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call ebx
test eax, eax
jne 0x40e136
xor ebx, ebx
mov eax, dword [0x41868c]
cmp eax, 0x3f1
je 0x40e1de
cmp dword [0x418aec], esi
je 0x40e15a
cmp dword [0x4186e8], esi
jne 0x40e1de
cmp eax, 0x3e9
jne 0x40e1cf
mov eax, dword [0x418690]
cmp eax, esi
je 0x40e1cf
cmp eax, 2
jne 0x40e176
call fcn.00401613
jmp 0x40e1e3
cmp eax, 1
jne 0x40e1e3
push 0x104
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.msiexec.exe
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x418780]
lea eax, [ebp - 0x250]
push str._i__s_SELECTFEATUREDIALOG1
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x654]
push eax
call fcn.0040257b
add esp, 0x14
jmp 0x40e1e3
lea eax, [ebp - 0x450]
push eax
call fcn.0040b68c
pop ecx
jmp 0x40e1e3
call fcn.0040a805
push esi
push esi
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp ebx, esi
je 0x40e222
cmp dword [0x418738], esi
mov dword [ebp - 0x4c], 0x65
je 0x40e20c
mov dword [ebp - 0x48], 0xd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call ebx
cmp dword [ebp + 0x78], esi
je 0x40e230
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
cmp dword [0x418748], ebx
je 0x40e271
cmp dword [0x41878c], ebx
jne 0x40e285
xor eax, eax
cmp dword [0x4186c0], ebx
setne al
push eax
push dword [0x418b1c]
push dword [0x418b20]
push dword [0x418794]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x40e271
mov dword [0x418748], ebx
cmp dword [0x41878c], ebx
jne 0x40e285
push dword [0x418794]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.00403570
jmp 0x40e28e
call esi
mov eax, dword [0x418ba0]
cmp eax, ebx
je 0x40e29e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x418ba8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x40e2c6
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp + 0x28]
push ebx
push eax
call esi
test eax, eax
jne 0x40e2b2
mov eax, dword [0x418b58]
cmp eax, ebx
je 0x40e2e1
push dword [ebp + 0x70]
call eax
cmp dword [0x4186bc], ebx
je 0x40e30f
push edi
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
lea eax, [ebp - 0x350]
push eax
push 0x2001
push 0x1000
call dword [0x4186bc]
mov eax, dword [0x418b24]
cmp eax, ebx
je 0x40e31f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x418b30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp + 0x44]
call esi
push dword [ebp + 0x48]
call esi
mov eax, dword [0x418a2c]
cmp eax, ebx
je 0x40e35c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x418a2c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x418748], ebx
je 0x40e37f
mov eax, dword [0x4186c0]
cmp eax, 1
je 0x40e372
cmp eax, ebx
jne 0x40e37f
lea eax, [ebp - 0x450]
push eax
call fcn.004028f6
pop ecx
mov eax, dword [0x418a60]
cmp eax, ebx
je 0x40e38f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x41874c]
cmp eax, ebx
je 0x40e39f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp + 0x50], ebx
je 0x40e422
cmp dword [0x418738], ebx
jne 0x40e4e9
push edi
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x4186c0], ebx
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
je 0x40e3e4
push 0x200
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x350]
push eax
call esi
push 0x415428
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x350]
sub ecx, 3
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x200
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x350]
push eax
call esi
jmp 0x40e4e9
push edi
lea eax, [ebp - 0x550]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x550]
push ebx
push eax
call fcn.0040306b
cmp dword [0x418748], ebx
pop ecx
pop ecx
mov byte [ebp + 0x70], 0
je 0x40e48d
cmp dword [0x4186c0], 2
jne 0x40e468
push 0x41532c
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40e48d
cmp dword [0x418694], ebx
je 0x40e48d
cmp dword [0x418738], ebx
jne 0x40e48d
push 0x41532c
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x418748], ebx
lea eax, [ebp - 0xb9c]
push eax
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x350]
push str._s__z_s__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp dword [0x418694], ebx
je 0x40e4dc
cmp dword [0x418738], ebx
jne 0x40e4dc
push 5
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40e4e9
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00402078
mov eax, dword [0x4186c4]
cmp eax, ebx
je 0x40e4fe
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x418748], ebx
je 0x40e543
mov eax, dword [0x4186c0]
cmp eax, 1
je 0x40e534
cmp eax, ebx
je 0x40e534
cmp dword [ebp + 0x50], ebx
jne 0x40e543
cmp dword [0x418694], ebx
je 0x40e529
cmp dword [0x418738], ebx
je 0x40e543
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40e543
push 5
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp dword [0x418aec], ebx
je 0x40e554
push dword [ebp + 0x60]
call fcn.00402793
pop ecx
cmp dword [ebp + 0x60], ebx
je 0x40e562
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x30]
call dword [sym.imp.KERNEL32.dll_ExitProcess]