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.0040a393
mov edi, 0x100
push edi
call fcn.0040b671
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ecx
push edi
push eax
push dword [ebp + 8]
mov dword [0x41375c], eax
call esi
push 1
push dword [0x41375c]
call fcn.0040a794
push edi
call fcn.0040b671
add esp, 0xc
mov dword [0x413abc], eax
push edi
push eax
push dword [ebp + 8]
call esi
push 0x412168
push dword [0x413abc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x413abc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + ecx - 3]
push eax
call esi
push 0x4000
call fcn.0040b671
pop ecx
mov dword [0x413b10], 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 [0x413abc]
lea eax, [ebp - 0x27c]
push eax
call esi
lea eax, [ebp - 0x27c]
push ebx
push eax
call fcn.0040a794
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.0040a933
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.0040f730
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.0040b561
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 [0x413ac0], eax
lea eax, [ebp - 0x57c]
mov dword [0x413b00], 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.0040c0a8
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 [0x4136f4], 1
mov dword [0x41374c], 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.0040c0a8
cmp eax, 0x41
pop ecx
jne 0x4012b7
mov dword [0x413b00], 1
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040c0a8
cmp eax, 0x53
pop ecx
jne 0x4012d8
push 1
pop eax
mov dword [0x41370c], eax
mov dword [0x413b00], eax
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040c0a8
cmp eax, 0x52
pop ecx
jne 0x4012f6
mov dword [0x413770], 1
jmp 0x401315
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.0040c0a8
cmp eax, 0x55
pop ecx
jne 0x401331
mov esi, dword [ebp + 0x10]
mov dword [0x413a64], 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.0040be4c
pop ecx
cmp eax, ebx
pop ecx
je 0x401384
cmp dword [0x41374c], ebx
jne 0x401384
mov byte [eax], bl
inc eax
mov dword [0x413ac4], eax
cmp byte [eax], 0x22
jne 0x40136b
inc eax
mov dword [0x413ac4], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x401384
mov ecx, dword [0x413ac4]
add eax, ecx
cmp byte [eax], 0x22
jne 0x401384
mov byte [eax], bl
push dword [0x413abc]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push str.Start_Red
push str.Settings
call esi
push dword [0x413abc]
mov dword [0x413ae0], eax
push ebx
push str.Start_Green
push str.Settings
call esi
push dword [0x413abc]
mov dword [0x413ae4], eax
push 0xff
push str.Start_Blue
push str.Settings
call esi
push dword [0x413abc]
mov dword [0x413ae8], eax
push ebx
push str.End_Red
push str.Settings
call esi
push dword [0x413abc]
sub eax, dword [0x413ae0]
push ebx
push str.End_Green
push str.Settings
mov dword [0x413aec], eax
call esi
push dword [0x413abc]
sub eax, dword [0x413ae4]
push ebx
push str.End_Blue
push str.Settings
mov dword [0x413af0], eax
call esi
push dword [0x413abc]
sub eax, dword [0x413ae8]
push 1
push str.No_Background
push str.Settings
mov dword [0x413af4], eax
call esi
mov dword [0x4136b4], eax
call fcn.0040af6d
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 [0x41371c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x4136e0], 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 [0x4136e0]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, edi
jl 0x40149b
push edi
call fcn.0040b671
push edi
mov dword [0x413a9c], eax
call fcn.0040b671
push edi
mov dword [0x413764], eax
push dword [0x413a9c]
push 0x19
push dword [0x413a90]
call fcn.0040ab9d
push edi
push dword [0x413764]
push 0x3b
push dword [0x413a90]
call fcn.0040ab9d
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
add esp, 0x28
cmp dword [0x413694], ebx
je 0x40156d
push ebx
push 0x64
push 0x206a
mov dword [0x413aac], 1
push dword [0x413698]
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 [0x413aac], ebx
jne 0x40152f
push 0x206a
push dword [0x413698]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x41374c], ebx
je 0x40172a
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x40172a
push ebx
push 0x3e8
push 0x206a
mov dword [0x413aac], 1
push dword [0x413698]
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 [0x413aac], ebx
jne 0x4015a5
push 0x206a
push dword [0x413698]
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.0040be4c
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.004091af
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.004091af
pop ecx
pop ecx
push dword [0x413698]
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 [0x413ac0]
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 [0x413b08]
cmp eax, ebx
je 0x40170f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x413760]
cmp eax, ebx
je 0x40171f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x4136f4], ebx
jmp 0x401f4e
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [0x413780]
mov dword [0x413788], 0xffffff
cmp eax, ebx
je 0x401785
push dword [ebp + 8]
call eax
test eax, eax
je 0x40177f
cmp dword [0x4136b0], 1
mov eax, dword [0x4136ec]
jne 0x401763
cmp eax, ebx
jne 0x401770
cmp eax, ebx
jne 0x401770
push dword [ebp + 8]
call dword [0x4136f0]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x413788], eax
jmp 0x401785
mov dword [0x413780], 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.0040c050
mov eax, dword [0x413698]
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 [0x413a90]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x48], 0x1000
call fcn.0040ab9d
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.0040bcf0
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.0040be4c
pop ecx
test eax, eax
pop ecx
jne 0x4018c5
lea eax, [ebp - 0x27c]
push edi
push eax
call fcn.0040bf2e
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.0040b671
mov esi, 0x4000
mov dword [0x413aa8], eax
push esi
call fcn.0040b671
push esi
push ebx
push eax
mov dword [0x413684], eax
call fcn.0040c050
push edi
call fcn.0040b671
push 0x400
mov dword [0x413b80], eax
call fcn.0040b671
push edi
mov dword [0x413754], eax
call fcn.0040b671
push 0x104
mov dword [0x4137b0], eax
call fcn.0040b671
mov esi, 0x200
mov dword [0x413738], eax
push esi
call fcn.0040b671
push esi
push ebx
push eax
mov dword [0x413790], eax
call fcn.0040c050
push 0x2ee00
call fcn.0040b671
mov esi, 0xfa00
mov dword [0x4136e8], eax
push esi
call fcn.0040b671
push esi
mov dword [0x413b0c], eax
call fcn.0040b671
add esp, 0x40
mov dword [0x413700], eax
push esi
call fcn.0040b671
push esi
mov dword [0x4136a0], eax
call fcn.0040b671
push esi
mov dword [0x4136fc], eax
call fcn.0040b671
push esi
mov dword [0x4136a8], eax
call fcn.0040b671
push esi
mov dword [0x4137a8], eax
call fcn.0040b671
push esi
mov dword [0x4136cc], eax
call fcn.0040b671
push esi
mov dword [0x4137c0], eax
call fcn.0040b671
push esi
mov dword [0x413a84], eax
call fcn.0040b671
push esi
mov dword [0x413744], eax
call fcn.0040b671
push esi
mov dword [0x413734], eax
call fcn.0040b671
push esi
mov dword [0x413748], eax
call fcn.0040b671
push 0x1000
mov dword [0x413b98], eax
call fcn.0040b671
add esp, 0x30
cmp byte [ebp - 0x37c], bl
mov dword [0x4136a4], 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 [0x413b00], ebx
mov eax, 0x3e8
je 0x401a4b
mov dword [0x4136c4], eax
mov byte [0x413a60], 0xb
cmp dword [0x413a64], ebx
je 0x401a5f
mov dword [0x4136c4], eax
mov byte [0x413a60], 0xb
cmp dword [0x41370c], ebx
jne 0x401b10
call fcn.0040bcf0
push ebx
push dword [0x413698]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push sym.UNWISE32.EXE__ItemDlg_16
push dword [0x413698]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x413698]
push eax
push 0x6a
push dword [0x413a90]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp dword [0x413b00], ebx
mov dword [0x413690], eax
jne 0x401b10
cmp dword [0x413724], ebx
jne 0x401b52
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [0x4136ac], 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 [0x413690]
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 [0x413724], ebx
je 0x401ac7
cmp dword [0x413724], ebx
jne 0x401b52
push 0x4120e0
call fcn.0040bea8
cmp dword [0x4136c4], 0x3f1
pop ecx
jne 0x401b36
call fcn.00406ba3
jmp 0x401b43
lea eax, [ebp - 0x37c]
push eax
call fcn.00407c36
pop ecx
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [0x4136f4], ebx
je 0x401bc4
cmp dword [0x41370c], ebx
jne 0x401bd8
lea eax, [ebp - 0x27c]
push edi
push eax
push 0x19
push dword [0x413a90]
call fcn.0040ab9d
lea eax, [ebp - 0x97c]
push 0x200
push eax
push 0x44
push dword [0x413a90]
call fcn.0040ab9d
add esp, 0x20
xor eax, eax
cmp dword [0x4136b0], ebx
setne al
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x97c]
push eax
push dword [0x413690]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x401bc4
mov dword [0x4136f4], ebx
cmp dword [0x41370c], ebx
jne 0x401bd8
push dword [0x413690]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.0040b02c
jmp 0x401be1
call esi
mov eax, dword [0x413694]
cmp eax, ebx
je 0x401bf1
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x413698]
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 [0x413758]
cmp eax, ebx
je 0x401c3b
push dword [ebp + 8]
call eax
cmp dword [0x413b8c], 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 [0x413b8c]
mov eax, dword [0x41373c]
cmp eax, ebx
je 0x401c79
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x413ac0]
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 [0x41371c]
cmp eax, ebx
je 0x401cb6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x41371c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4136f4], ebx
je 0x401dcc
mov eax, dword [0x4136b0]
cmp eax, 1
je 0x401d7f
cmp eax, ebx
jne 0x401dcc
mov eax, 0x75f9
movzx eax, ax
push 0x12c
push eax
push dword [0x413a90]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401dcc
push eax
push dword [0x413a90]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push dword [0x413a90]
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 [0x4136b0], 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 [0x413b08]
cmp eax, ebx
je 0x401ddc
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x413750]
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 [0x413724], ebx
jne 0x401f10
lea eax, [ebp - 0x17c]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x4136b0], 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.0040a794
cmp dword [0x4136f4], ebx
pop ecx
pop ecx
mov byte [ebp + 8], bl
je 0x401eb8
cmp dword [0x4136b0], 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 [0x413a88], ebx
je 0x401f03
cmp dword [0x413724], 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.0040b6fa
mov eax, dword [0x413760]
cmp eax, ebx
je 0x401f25
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x4136f4], ebx
je 0x401f66
mov eax, dword [0x4136b0]
cmp eax, 1
je 0x401f5b
cmp eax, ebx
je 0x401f5b
cmp dword [ebp - 0xc], ebx
jne 0x401f66
cmp dword [0x413a88], ebx
je 0x401f50
cmp dword [0x413724], 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