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
Read .ini file
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x97c
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 0x77c], bl
call fcn.0040a221
mov edi, 0x100
push edi
call fcn.0040b488
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ecx
push edi
push eax
push dword [ebp + 8]
mov dword [0x4136fc], eax
call esi
push 1
push dword [0x4136fc]
call fcn.0040a622
push edi
call fcn.0040b488
add esp, 0xc
mov dword [0x413a5c], eax
push edi
push eax
push dword [ebp + 8]
call esi
push 0x412168
push dword [0x413a5c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x413a5c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + ecx - 3]
push eax
call esi
push 0x4000
call fcn.0040b488
pop ecx
mov dword [0x413ab0], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x57c]
mov dword [ebp - 0xc], 1
push eax
call esi
cmp byte [ebp - 0x57c], bl
jne 0x40111d
push dword [0x413a5c]
lea eax, [ebp - 0x27c]
push eax
call esi
lea eax, [ebp - 0x27c]
push ebx
push eax
call fcn.0040a622
pop ecx
lea eax, [ebp - 0x27c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x27d]
lea ecx, [ebp - 0x27c]
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 - 0x27c]
push ebx
push eax
call fcn.0040a7c1
pop ecx
test eax, eax
pop ecx
jne 0x40111d
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x57c]
push eax
call esi
push 2
lea eax, [ebp - 0x57c]
push 0x412158
push eax
call fcn.0040f540
add esp, 0xc
test eax, eax
je 0x4011c1
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x67c]
push eax
push 0x1a2b
lea eax, [ebp - 0x27c]
push 0x412154
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x67c]
push 0x412150
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x67c]
sub ecx, 3
add eax, ecx
push eax
call esi
lea eax, [ebp - 0x17c]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x67c]
push ebx
push eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4011be
lea eax, [ebp - 0x67c]
push eax
call fcn.0040b378
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 - 0x57c], 0x2f
mov dword [0x413a60], eax
lea eax, [ebp - 0x57c]
mov dword [0x413aa0], 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.0040beb8
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 [0x413694], 1
mov dword [0x4136ec], 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.0040beb8
cmp eax, 0x41
pop ecx
jne 0x4012b7
mov dword [0x413aa0], 1
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040beb8
cmp eax, 0x53
pop ecx
jne 0x4012d8
push 1
pop eax
mov dword [0x4136ac], eax
mov dword [0x413aa0], eax
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040beb8
cmp eax, 0x52
pop ecx
jne 0x4012f6
mov dword [0x413710], 1
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040beb8
cmp eax, 0x55
pop ecx
jne 0x401331
mov esi, dword [ebp + 0x10]
mov dword [0x413a04], 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.0040bc63
pop ecx
cmp eax, ebx
pop ecx
je 0x401384
cmp dword [0x4136ec], ebx
jne 0x401384
mov byte [eax], bl
inc eax
mov dword [0x413a64], eax
cmp byte [eax], 0x22
jne 0x40136b
inc eax
mov dword [0x413a64], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x401384
mov ecx, dword [0x413a64]
add eax, ecx
cmp byte [eax], 0x22
jne 0x401384
mov byte [eax], bl
push dword [0x413a5c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push str.Start_Red
push str.Settings
call esi
push dword [0x413a5c]
mov dword [0x413a80], eax
push ebx
push str.Start_Green
push str.Settings
call esi
push dword [0x413a5c]
mov dword [0x413a84], eax
push 0xff
push str.Start_Blue
push str.Settings
call esi
push dword [0x413a5c]
mov dword [0x413a88], eax
push ebx
push str.End_Red
push str.Settings
call esi
push dword [0x413a5c]
sub eax, dword [0x413a80]
push ebx
push str.End_Green
push str.Settings
mov dword [0x413a8c], eax
call esi
push dword [0x413a5c]
sub eax, dword [0x413a84]
push ebx
push str.End_Blue
push str.Settings
mov dword [0x413a90], eax
call esi
push dword [0x413a5c]
sub eax, dword [0x413a88]
push 1
push str.No_Background
push str.Settings
mov dword [0x413a94], eax
call esi
mov dword [0x413654], eax
call fcn.0040adfb
cmp dword [ebp + 0xc], ebx
jne 0x401460
push dword [ebp + 8]
call fcn.00401f70
test eax, eax
pop ecx
je 0x401471
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00401fcf
pop ecx
test eax, eax
pop ecx
jne 0x401478
xor eax, eax
jmp 0x401f69
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x4136bc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x413680], 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 [0x413680]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, edi
jl 0x40149b
push edi
call fcn.0040b488
push edi
mov dword [0x413a3c], eax
call fcn.0040b488
push edi
mov dword [0x413704], eax
push dword [0x413a3c]
push 0x19
push dword [0x413a30]
call fcn.0040aa2b
push edi
push dword [0x413704]
push 0x3b
push dword [0x413a30]
call fcn.0040aa2b
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
add esp, 0x28
cmp dword [0x413634], ebx
je 0x40156d
push ebx
push 0x64
push 0x206a
mov dword [0x413a4c], 1
push dword [0x413638]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
je 0x401554
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 0x40152f
cmp dword [0x413a4c], ebx
jne 0x40152f
push 0x206a
push dword [0x413638]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x4136ec], ebx
je 0x40172a
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x40172a
push ebx
push 0x3e8
push 0x206a
mov dword [0x413a4c], 1
push dword [0x413638]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
je 0x4015ca
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 0x4015a5
cmp dword [0x413a4c], ebx
jne 0x4015a5
push 0x206a
push dword [0x413638]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 0x10]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x17c]
push 0x20
push eax
call fcn.0040bc63
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x40160b
mov byte [esi], bl
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x17d], 0x5c
je 0x40162f
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x17d]
lea ecx, [ebp - 0x17c]
cmp eax, ecx
jbe 0x401655
cmp byte [eax], 0x5c
je 0x40165a
dec eax
jmp 0x401643
cmp byte [eax], 0x5c
jne 0x40165c
mov byte [eax], bl
lea eax, [ebp - 0x17c]
push ebx
push eax
call fcn.0040910b
pop ecx
cmp esi, ebx
pop ecx
je 0x401691
inc esi
cmp byte [esi], bl
je 0x401691
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
lea eax, [eax + esi - 1]
jne 0x401688
mov byte [eax], bl
push ebx
push esi
call fcn.0040910b
pop ecx
pop ecx
push dword [0x413638]
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 0x4016cd
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 0x4016aa
push dword [0x413a60]
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 - 0x17c]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x413aa8]
cmp eax, ebx
je 0x40170f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x413700]
cmp eax, ebx
je 0x40171f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x413694], ebx
jmp 0x401f4e
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [0x413720]
mov dword [0x413728], 0xffffff
cmp eax, ebx
je 0x401785
push dword [ebp + 8]
call eax
test eax, eax
je 0x40177f
cmp dword [0x413650], 1
mov eax, dword [0x41368c]
jne 0x401763
cmp eax, ebx
jne 0x401770
cmp eax, ebx
jne 0x401770
push dword [ebp + 8]
call dword [0x413690]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x413728], eax
jmp 0x401785
mov dword [0x413720], ebx
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x37c], bl
cmp byte [eax], bl
jne 0x40183d
push 0x4c
lea eax, [ebp - 0x7c]
pop esi
push esi
push ebx
push eax
call fcn.0040be60
mov eax, dword [0x413638]
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x47c]
push eax
push 1
push dword [0x413a30]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x48], 0x1000
call fcn.0040aa2b
add esp, 0x1c
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x47b]
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
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x17c]
push str.INSTALL.LOG
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x60], eax
call fcn.0040bb07
lea eax, [ebp - 0x7c]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x40184b
push dword [ebp - 0x60]
jmp 0x40183e
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x37c], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4018c5
lea eax, [ebp - 0x37c]
push 0x5c
push eax
call fcn.0040bc63
pop ecx
test eax, eax
pop ecx
jne 0x4018c5
lea eax, [ebp - 0x27c]
push edi
push eax
call fcn.0040bd44
pop ecx
lea eax, [ebp - 0x27c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x27d], 0x5c
je 0x4018a1
lea eax, [ebp - 0x27c]
push 0x4120e0
push eax
call esi
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x27c]
push eax
call esi
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.0040b488
mov esi, 0x4000
mov dword [0x413a48], eax
push esi
call fcn.0040b488
push esi
push ebx
push eax
mov dword [0x413624], eax
call fcn.0040be60
push edi
call fcn.0040b488
push 0x400
mov dword [0x413b20], eax
call fcn.0040b488
push edi
mov dword [0x4136f4], eax
call fcn.0040b488
push 0x104
mov dword [0x413750], eax
call fcn.0040b488
mov esi, 0x200
mov dword [0x4136d8], eax
push esi
call fcn.0040b488
push esi
push ebx
push eax
mov dword [0x413730], eax
call fcn.0040be60
push 0x2ee00
call fcn.0040b488
mov esi, 0xfa00
mov dword [0x413688], eax
push esi
call fcn.0040b488
push esi
mov dword [0x413aac], eax
call fcn.0040b488
add esp, 0x40
mov dword [0x4136a0], eax
push esi
call fcn.0040b488
push esi
mov dword [0x413640], eax
call fcn.0040b488
push esi
mov dword [0x41369c], eax
call fcn.0040b488
push esi
mov dword [0x413648], eax
call fcn.0040b488
push esi
mov dword [0x413748], eax
call fcn.0040b488
push esi
mov dword [0x41366c], eax
call fcn.0040b488
push esi
mov dword [0x413760], eax
call fcn.0040b488
push esi
mov dword [0x413a24], eax
call fcn.0040b488
push esi
mov dword [0x4136e4], eax
call fcn.0040b488
push esi
mov dword [0x4136d4], eax
call fcn.0040b488
push esi
mov dword [0x4136e8], eax
call fcn.0040b488
push 0x1000
mov dword [0x413b38], eax
call fcn.0040b488
add esp, 0x30
cmp byte [ebp - 0x37c], bl
mov dword [0x413644], eax
je 0x401be1
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 - 0x77c]
push eax
lea eax, [ebp - 0x37c]
push eax
call fcn.00403d2b
pop ecx
pop ecx
push dword [ebp + 0x10]
test eax, eax
jne 0x401bdf
call esi
cmp dword [0x413aa0], ebx
mov eax, 0x3e8
je 0x401a4b
mov dword [0x413664], eax
mov byte [0x413a00], 0xb
cmp dword [0x413a04], ebx
je 0x401a5f
mov dword [0x413664], eax
mov byte [0x413a00], 0xb
cmp dword [0x4136ac], ebx
jne 0x401b10
call fcn.0040bb07
push ebx
push dword [0x413638]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push sym.UNWISE32.EXE__ItemDlg_16
push dword [0x413638]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x413638]
push eax
push 0x6a
push dword [0x413a30]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp dword [0x413aa0], ebx
mov dword [0x413630], eax
jne 0x401b10
cmp dword [0x4136c4], ebx
jne 0x401b52
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [0x41364c], ebx
jne 0x401b10
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
test eax, eax
je 0x401b08
lea eax, [ebp - 0x28]
push eax
push dword [0x413630]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x401acf
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 0x401acf
cmp dword [0x4136c4], ebx
je 0x401ac7
cmp dword [0x4136c4], ebx
jne 0x401b52
push 0x4120e0
call fcn.0040bcbe
cmp dword [0x413664], 0x3f1
pop ecx
jne 0x401b36
call fcn.00406b7b
jmp 0x401b43
lea eax, [ebp - 0x37c]
push eax
call fcn.00407c0e
pop ecx
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [0x413694], ebx
je 0x401bc4
cmp dword [0x4136ac], ebx
jne 0x401bd8
lea eax, [ebp - 0x27c]
push edi
push eax
push 0x19
push dword [0x413a30]
call fcn.0040aa2b
lea eax, [ebp - 0x97c]
push 0x200
push eax
push 0x44
push dword [0x413a30]
call fcn.0040aa2b
add esp, 0x20
xor eax, eax
cmp dword [0x413650], ebx
setne al
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x97c]
push eax
push dword [0x413630]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x401bc4
mov dword [0x413694], ebx
cmp dword [0x4136ac], ebx
jne 0x401bd8
push dword [0x413630]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.0040aeba
jmp 0x401be1
call esi
mov eax, dword [0x413634]
cmp eax, ebx
je 0x401bf1
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x413638]
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 0x401c2d
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 0x401c0a
mov eax, dword [0x4136f8]
cmp eax, ebx
je 0x401c3b
push dword [ebp + 8]
call eax
cmp dword [0x413b2c], ebx
je 0x401c69
lea eax, [ebp - 0x17c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x17c]
push ebx
push eax
push 0x2001
push 0x1000
call dword [0x413b2c]
mov eax, dword [0x4136dc]
cmp eax, ebx
je 0x401c79
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x413a60]
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 [0x4136bc]
cmp eax, ebx
je 0x401cb6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4136bc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x413694], ebx
je 0x401dcc
mov eax, dword [0x413650]
cmp eax, 1
je 0x401d7f
cmp eax, ebx
jne 0x401dcc
mov eax, 0x75f9
movzx eax, ax
push 0x12c
push eax
push dword [0x413a30]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401dcc
push eax
push dword [0x413a30]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push dword [0x413a30]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401dcc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401dc7
lea eax, [ebp - 0x37c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x37d], 0x5c
je 0x401d70
lea eax, [ebp - 0x37c]
push 0x4120e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x413650], ebx
jne 0x401d89
push str._MSSETUP.EXE
jmp 0x401d8e
mov eax, 0x75fa
jmp 0x401cdd
push str._MSRSTRT.EXE
lea eax, [ebp - 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x37c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x401dc7
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 [0x413aa8]
cmp eax, ebx
je 0x401ddc
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4136f0]
cmp eax, ebx
je 0x401dec
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
je 0x401e75
cmp dword [0x4136c4], ebx
jne 0x401f10
lea eax, [ebp - 0x17c]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x413650], ebx
mov edi, dword [sym.imp.KERNEL32.dll_OpenFile]
je 0x401e37
lea eax, [ebp - 0x204]
push 0x200
push eax
lea eax, [ebp - 0x17c]
push eax
call edi
lea eax, [ebp - 0x17c]
push 0x412168
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x17c]
sub ecx, 3
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x204]
push 0x200
push eax
lea eax, [ebp - 0x17c]
push eax
call edi
jmp 0x401f10
lea eax, [ebp - 0x47c]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x47c]
push ebx
push eax
call fcn.0040a622
cmp dword [0x413694], ebx
pop ecx
pop ecx
mov byte [ebp + 8], bl
je 0x401eb8
cmp dword [0x413650], 2
jne 0x401eb8
lea eax, [ebp + 8]
push 0x4120bc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x77c]
push eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x17c]
push str._s__z_s__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp dword [0x413a28], ebx
je 0x401f03
cmp dword [0x4136c4], ebx
jne 0x401f03
lea eax, [ebp - 0x17c]
push 5
push eax
call esi
jmp 0x401f10
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040b511
mov eax, dword [0x413700]
cmp eax, ebx
je 0x401f25
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x413694], ebx
je 0x401f66
mov eax, dword [0x413650]
cmp eax, 1
je 0x401f5b
cmp eax, ebx
je 0x401f5b
cmp dword [ebp - 0xc], ebx
jne 0x401f66
cmp dword [0x413a28], ebx
je 0x401f50
cmp dword [0x4136c4], ebx
je 0x401f66
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x401f66
lea eax, [ebp - 0x37c]
push 5
push eax
call esi
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x10