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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 0x788], bl
call fcn.0040a4e6
mov edi, 0x100
push edi
call fcn.0040b7c4
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ecx
push edi
push eax
push dword [ebp + 8]
mov dword [0x416828], eax
call esi
push 1
push dword [0x416828]
call fcn.0040a8e7
push edi
call fcn.0040b7c4
add esp, 0xc
mov dword [0x416b7c], eax
push edi
push eax
push dword [ebp + 8]
call esi
push 0x4131d0
push dword [0x416b7c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x416b7c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + ecx - 3]
push eax
call esi
push 0x4000
call fcn.0040b7c4
pop ecx
mov dword [0x416bd4], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x688]
mov dword [ebp - 0xc], 1
push eax
call esi
cmp byte [ebp - 0x688], bl
jne 0x40111d
push dword [0x416b7c]
lea eax, [ebp - 0x188]
push eax
call esi
lea eax, [ebp - 0x188]
push ebx
push eax
call fcn.0040a8e7
pop ecx
lea eax, [ebp - 0x188]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x189]
lea ecx, [ebp - 0x188]
cmp eax, ecx
jbe 0x4010ec
cmp byte [eax], 0x5c
je 0x4010f1
dec eax
jmp 0x4010da
cmp byte [eax], 0x5c
jne 0x4010f2
inc eax
push str.INSTALL.LOG
push eax
call esi
lea eax, [ebp - 0x188]
push ebx
push eax
call fcn.0040aa86
pop ecx
test eax, eax
pop ecx
jne 0x40111d
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x688]
push eax
call esi
push 2
lea eax, [ebp - 0x688]
push 0x4131c0
push eax
call fcn.00410550
add esp, 0xc
test eax, eax
je 0x4011c1
lea eax, [ebp - 0x188]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x588]
push eax
push 0x1a2b
lea eax, [ebp - 0x188]
push 0x4131bc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x588]
push 0x4131b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x588]
sub ecx, 3
add eax, ecx
push eax
call esi
lea eax, [ebp - 0x288]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x588]
push ebx
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4011be
lea eax, [ebp - 0x588]
push eax
call fcn.0040b6b4
pop ecx
mov dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push 0x6a
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 5
push 0x68
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 2
push 0x6a
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x6a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadBitmapA]
cmp byte [ebp - 0x688], 0x2f
mov dword [0x416b80], eax
lea eax, [ebp - 0x688]
mov dword [0x416bc4], ebx
mov dword [ebp + 0x10], eax
jne 0x401331
mov esi, dword [ebp + 0x10]
lea eax, [esi + 1]
mov dword [ebp - 4], eax
movsx eax, byte [eax]
push eax
call fcn.0040c2d8
cmp eax, 0x5a
mov eax, dword [ebp - 4]
pop ecx
jne 0x40129c
cmp byte [eax], 0x7a
jne 0x401286
cmp byte [esi + 2], 0x31
jne 0x40127c
mov esi, eax
mov dword [0x4167c0], 1
mov dword [0x416818], 1
inc esi
inc esi
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x20
jne 0x401328
inc esi
cmp byte [esi], 0x20
je 0x401294
jmp 0x401317
movsx eax, byte [eax]
push eax
call fcn.0040c2d8
cmp eax, 0x41
pop ecx
jne 0x4012b7
mov dword [0x416bc4], 1
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040c2d8
cmp eax, 0x53
pop ecx
jne 0x4012d8
push 1
pop eax
mov dword [0x4167d8], eax
mov dword [0x416bc4], eax
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040c2d8
cmp eax, 0x52
pop ecx
jne 0x4012f6
mov dword [0x41683c], 1
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040c2d8
cmp eax, 0x55
pop ecx
jne 0x401331
mov esi, dword [ebp + 0x10]
mov dword [0x416b24], 1
inc esi
inc esi
cmp byte [esi], 0x20
mov dword [ebp + 0x10], esi
jne 0x401328
inc esi
cmp byte [esi], 0x20
je 0x40131f
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x2f
je 0x40124a
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0x20
jne 0x401342
inc eax
cmp byte [eax], 0x20
je 0x401339
mov dword [ebp + 0x10], eax
push 0x20
push eax
call fcn.0040bf9f
pop ecx
cmp eax, ebx
pop ecx
je 0x401384
cmp dword [0x416818], ebx
jne 0x401384
mov byte [eax], bl
inc eax
mov dword [0x416b84], eax
cmp byte [eax], 0x22
jne 0x40136b
inc eax
mov dword [0x416b84], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x401384
mov ecx, dword [0x416b84]
add eax, ecx
cmp byte [eax], 0x22
jne 0x401384
mov byte [eax], bl
push dword [0x416b7c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push str.Start_Red
push str.Settings
call esi
push dword [0x416b7c]
mov dword [0x416ba0], eax
push ebx
push str.Start_Green
push str.Settings
call esi
push dword [0x416b7c]
mov dword [0x416ba4], eax
push 0xff
push str.Start_Blue
push str.Settings
call esi
push dword [0x416b7c]
mov dword [0x416ba8], eax
push ebx
push str.End_Red
push str.Settings
call esi
push dword [0x416b7c]
sub eax, dword [0x416ba0]
push ebx
push str.End_Green
push str.Settings
mov dword [0x416bac], eax
call esi
push dword [0x416b7c]
sub eax, dword [0x416ba4]
push ebx
push str.End_Blue
push str.Settings
mov dword [0x416bb0], eax
call esi
push dword [0x416b7c]
sub eax, dword [0x416ba8]
push 1
push str.No_Background
push str.Settings
mov dword [0x416bb4], eax
call esi
mov dword [0x41677c], eax
call fcn.0040b0c0
cmp dword [ebp + 0xc], ebx
jne 0x401460
push dword [ebp + 8]
call fcn.004020de
test eax, eax
pop ecx
je 0x401471
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040213d
pop ecx
test eax, eax
pop ecx
jne 0x401478
xor eax, eax
jmp 0x4020d7
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x4167e8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x4167a8], eax
push 1
mov dword [eax], ebx
pop eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x4014af
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4014b1
shr ecx, 1
dec edx
jne 0x4014a0
mov edx, dword [0x4167a8]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, edi
jl 0x40149b
push edi
call fcn.0040b7c4
push edi
mov dword [0x416b5c], eax
call fcn.0040b7c4
push edi
mov dword [0x416830], eax
push dword [0x416b5c]
push 0x19
push dword [0x416b50]
call fcn.0040acf0
push edi
push dword [0x416830]
push 0x3b
push dword [0x416b50]
call fcn.0040acf0
mov esi, 0x104
push esi
call fcn.0040b7c4
mov dword [0x416bc0], eax
add esp, 0x2c
mov byte [eax], bl
lea eax, [ebp + 0xc]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40157f
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], esi
push eax
lea eax, [ebp - 4]
push dword [0x416bc0]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [0x416bc0]
jne 0x401574
cmp byte [eax], bl
je 0x401576
push eax
call fcn.0040b692
cmp eax, dword [0x416bc0]
pop ecx
jbe 0x401576
mov byte [eax - 1], bl
jmp 0x401576
mov byte [eax], bl
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x41675c], ebx
mov esi, 0x206a
je 0x4015e4
push ebx
push 0x64
push esi
mov dword [0x416b6c], 1
push dword [0x416760]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4015cf
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]
jmp 0x4015a6
cmp dword [0x416b6c], ebx
jne 0x4015a6
push esi
push dword [0x416760]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x416818], ebx
je 0x4017ac
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x4017ac
push ebx
push 0x3e8
push esi
mov dword [0x416b6c], 1
push dword [0x416760]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401641
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]
jmp 0x401618
cmp dword [0x416b6c], ebx
jne 0x401618
push esi
push dword [0x416760]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 0x10]
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x288]
push 0x20
push eax
call fcn.0040bf9f
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x40167e
mov byte [esi], bl
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x289], 0x5c
je 0x4016a2
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x289]
lea ecx, [ebp - 0x288]
cmp eax, ecx
jbe 0x4016c8
cmp byte [eax], 0x5c
je 0x4016cd
dec eax
jmp 0x4016b6
cmp byte [eax], 0x5c
jne 0x4016cf
mov byte [eax], bl
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.004092b2
pop ecx
cmp esi, ebx
pop ecx
je 0x401704
inc esi
cmp byte [esi], bl
je 0x401704
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
lea eax, [eax + esi - 1]
jne 0x4016fb
mov byte [eax], bl
push ebx
push esi
call fcn.004092b2
pop ecx
pop ecx
push dword [0x416760]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
je 0x401740
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
jmp 0x40171d
push dword [0x416b80]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x288]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x416bcc]
cmp eax, ebx
je 0x401782
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x41682c]
cmp eax, ebx
je 0x401792
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x4167c0], ebx
je 0x4020d4
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4020d4
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [0x41684c]
mov dword [0x416854], 0xffffff
cmp eax, ebx
je 0x401807
push dword [ebp + 8]
call eax
test eax, eax
je 0x401801
cmp dword [0x416778], 1
mov eax, dword [0x4167b8]
jne 0x4017e5
cmp eax, ebx
jne 0x4017f2
cmp eax, ebx
jne 0x4017f2
push dword [ebp + 8]
call dword [0x4167bc]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x416854], eax
jmp 0x401807
mov dword [0x41684c], ebx
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x388], bl
cmp byte [eax], bl
jne 0x4018d6
push 0x4c
lea eax, [ebp - 0x88]
pop esi
push esi
push ebx
push eax
call fcn.0040c280
mov eax, dword [0x416760]
push edi
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x488]
push eax
push 1
push dword [0x416b50]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], 0x1000
call fcn.0040acf0
add esp, 0x1c
lea eax, [ebp - 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x487]
push str.install.log
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi + 1], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x488]
push str.INSTALL.LOG
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x288]
push eax
call esi
lea eax, [ebp - 0x288]
mov dword [ebp - 0x6c], eax
call fcn.0040be43
lea eax, [ebp - 0x88]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x4018e4
push dword [ebp - 0x6c]
lea eax, [ebp - 0x388]
push eax
call esi
jmp 0x4018e4
push eax
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x388], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40195e
lea eax, [ebp - 0x388]
push 0x5c
push eax
call fcn.0040bf9f
pop ecx
test eax, eax
pop ecx
jne 0x40195e
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.0040c164
pop ecx
lea eax, [ebp - 0x188]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x189], 0x5c
je 0x40193a
lea eax, [ebp - 0x188]
push 0x41310c
push eax
call esi
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x188]
push eax
call esi
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.0040b7c4
mov esi, 0x4000
mov dword [0x416b68], eax
push esi
call fcn.0040b7c4
push esi
push ebx
push eax
mov dword [0x416748], eax
call fcn.0040c280
push edi
call fcn.0040b7c4
push 0x400
mov dword [0x416c40], eax
call fcn.0040b7c4
push edi
mov dword [0x416820], eax
call fcn.0040b7c4
push 0x104
mov dword [0x41687c], eax
call fcn.0040b7c4
mov esi, 0x200
mov dword [0x416804], eax
push esi
call fcn.0040b7c4
push esi
push ebx
push eax
mov dword [0x41685c], eax
call fcn.0040c280
push 0x2ee00
call fcn.0040b7c4
mov esi, 0xfa00
mov dword [0x4167b0], eax
push esi
call fcn.0040b7c4
push esi
mov dword [0x416bd0], eax
call fcn.0040b7c4
add esp, 0x40
mov dword [0x4167cc], eax
push esi
call fcn.0040b7c4
push esi
mov dword [0x416768], eax
call fcn.0040b7c4
push esi
mov dword [0x4167c8], eax
call fcn.0040b7c4
push esi
mov dword [0x416770], eax
call fcn.0040b7c4
push esi
mov dword [0x416874], eax
call fcn.0040b7c4
push esi
mov dword [0x416794], eax
call fcn.0040b7c4
push esi
mov dword [0x416888], eax
call fcn.0040b7c4
push esi
mov dword [0x416b44], eax
call fcn.0040b7c4
push esi
mov dword [0x416810], eax
call fcn.0040b7c4
push esi
mov dword [0x416800], eax
call fcn.0040b7c4
push esi
mov dword [0x416814], eax
call fcn.0040b7c4
push 0x1000
mov dword [0x416c58], eax
call fcn.0040b7c4
add esp, 0x30
cmp byte [ebp - 0x388], bl
mov dword [0x41676c], eax
je 0x401d46
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 + 0x10], eax
lea eax, [ebp - 0x788]
push eax
lea eax, [ebp - 0x388]
push eax
call fcn.00403e99
pop ecx
pop ecx
push dword [ebp + 0x10]
test eax, eax
jne 0x401d44
call esi
cmp dword [0x416bc4], ebx
mov eax, 0x3e8
je 0x401ae4
mov dword [0x41678c], eax
mov byte [0x416b20], 0xb
cmp dword [0x416b24], ebx
je 0x401af8
mov dword [0x41678c], eax
mov byte [0x416b20], 0xb
cmp dword [0x4167d8], ebx
jne 0x401ba9
call fcn.0040be43
push ebx
push dword [0x416760]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push sym.UNWISE32.EXE__ItemDlg_16
push dword [0x416760]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x416760]
push eax
push 0x6a
push dword [0x416b50]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp dword [0x416bc4], ebx
mov dword [0x416758], eax
jne 0x401ba9
cmp dword [0x4167f0], ebx
jne 0x401cb7
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [0x416774], ebx
jne 0x401ba9
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
je 0x401ba1
lea eax, [ebp - 0x28]
push eax
push dword [0x416758]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x401b68
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]
jmp 0x401b68
cmp dword [0x4167f0], ebx
je 0x401b60
cmp dword [0x4167f0], ebx
jne 0x401cb7
push 0x41310c
call fcn.0040c0de
xor esi, esi
cmp dword [0x4167b4], ebx
pop ecx
mov dword [ebp + 0x10], ebx
je 0x401c3b
push str.SFC.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401c3b
push str.SRSetRestorePoint
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x401c3b
push dword [0x416b68]
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xd8], 0x64
mov dword [ebp - 0xd4], ebx
push str.Uninstall__s
push eax
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xd8]
push eax
call esi
test eax, eax
jne 0x401c3b
xor esi, esi
cmp dword [0x41678c], 0x3f1
jne 0x401c4e
call fcn.00406cae
jmp 0x401c5b
lea eax, [ebp - 0x388]
push eax
call fcn.00407d41
pop ecx
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp esi, ebx
je 0x401ca9
cmp dword [0x4167f0], ebx
mov dword [ebp - 0xd8], 0x65
je 0x401c8a
mov dword [ebp - 0xd4], 0xd
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xd8]
push eax
call esi
cmp dword [ebp + 0x10], ebx
je 0x401cb7
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x4167c0], ebx
je 0x401d29
cmp dword [0x4167d8], ebx
jne 0x401d3d
lea eax, [ebp - 0x188]
push edi
push eax
push 0x19
push dword [0x416b50]
call fcn.0040acf0
lea eax, [ebp - 0x988]
push 0x200
push eax
push 0x44
push dword [0x416b50]
call fcn.0040acf0
add esp, 0x20
xor eax, eax
cmp dword [0x416778], ebx
setne al
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [0x416758]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x401d29
mov dword [0x4167c0], ebx
cmp dword [0x4167d8], ebx
jne 0x401d3d
push dword [0x416758]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.0040b17f
jmp 0x401d46
call esi
mov eax, dword [0x41675c]
cmp eax, ebx
je 0x401d56
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x416760]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
je 0x401d92
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
jmp 0x401d6f
mov eax, dword [0x416824]
cmp eax, ebx
je 0x401da0
push dword [ebp + 8]
call eax
cmp dword [0x416c4c], ebx
je 0x401dce
lea eax, [ebp - 0x288]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x288]
push ebx
push eax
push 0x2001
push 0x1000
call dword [0x416c4c]
mov eax, dword [0x416808]
cmp eax, ebx
je 0x401dde
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x416b80]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 8]
call esi
mov eax, dword [0x4167e8]
cmp eax, ebx
je 0x401e1b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4167e8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4167c0], ebx
je 0x401f31
mov eax, dword [0x416778]
cmp eax, 1
je 0x401ee4
cmp eax, ebx
jne 0x401f31
mov eax, 0x75f9
movzx eax, ax
push 0x12c
push eax
push dword [0x416b50]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401f31
push eax
push dword [0x416b50]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push dword [0x416b50]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401f31
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401f2c
lea eax, [ebp - 0x388]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x389], 0x5c
je 0x401ed5
lea eax, [ebp - 0x388]
push 0x41310c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x416778], ebx
jne 0x401eee
push str._MSSETUP.EXE
jmp 0x401ef3
mov eax, 0x75fa
jmp 0x401e42
push str._MSRSTRT.EXE
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x388]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x401f2c
push dword [ebp + 0x14]
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp + 0xc]
call esi
mov eax, dword [0x416bcc]
cmp eax, ebx
je 0x401f41
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x41681c]
cmp eax, ebx
je 0x401f51
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
je 0x401fda
cmp dword [0x4167f0], ebx
jne 0x402075
lea eax, [ebp - 0x288]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x416778], ebx
mov edi, dword [sym.imp.KERNEL32.dll_OpenFile]
je 0x401f9c
lea eax, [ebp - 0x110]
push 0x200
push eax
lea eax, [ebp - 0x288]
push eax
call edi
lea eax, [ebp - 0x288]
push 0x4131d0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x288]
sub ecx, 3
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push 0x200
push eax
lea eax, [ebp - 0x288]
push eax
call edi
jmp 0x402075
lea eax, [ebp - 0x488]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x488]
push ebx
push eax
call fcn.0040a8e7
cmp dword [0x4167c0], ebx
pop ecx
pop ecx
mov byte [ebp + 8], bl
je 0x40201d
cmp dword [0x416778], 2
jne 0x40201d
lea eax, [ebp + 8]
push 0x4130bc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x788]
push eax
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x288]
push str._s__z_s__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp dword [0x416b48], ebx
je 0x402068
cmp dword [0x4167f0], ebx
jne 0x402068
lea eax, [ebp - 0x288]
push 5
push eax
call esi
jmp 0x402075
lea eax, [ebp - 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040b84d
mov eax, dword [0x41682c]
cmp eax, ebx
je 0x40208a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x4167c0], ebx
je 0x4020cb
mov eax, dword [0x416778]
cmp eax, 1
je 0x4020c0
cmp eax, ebx
je 0x4020c0
cmp dword [ebp - 0xc], ebx
jne 0x4020cb
cmp dword [0x416b48], ebx
je 0x4020b5
cmp dword [0x4167f0], ebx
je 0x4020cb
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4020cb
lea eax, [ebp - 0x388]
push 5
push eax
call esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x10