Function at 0x401000
Capabilities:
Copy file
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Read .ini file
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x978
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 0x778], bl
call fcn.004087fd
mov edi, 0x100
push edi
call fcn.00409a43
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ecx
push edi
push eax
push dword [ebp + 8]
mov dword [0x4148d8], eax
call esi
push 1
push dword [0x4148d8]
call fcn.00408bfa
pop ecx
pop ecx
push edi
call fcn.00409a43
pop ecx
mov dword [0x414c14], eax
push edi
push eax
push dword [ebp + 8]
call esi
push 0x4111a8
push dword [0x414c14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x414c14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [eax + ecx - 3]
push eax
call esi
push 0x4000
call fcn.00409a43
pop ecx
mov dword [0x414c70], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x578]
mov dword [ebp - 8], 1
push eax
call esi
cmp byte [ebp - 0x578], bl
jne 0x40111d
push dword [0x414c14]
lea eax, [ebp - 0x278]
push eax
call esi
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.00408bfa
pop ecx
lea eax, [ebp - 0x278]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x279]
lea ecx, [ebp - 0x278]
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 - 0x278]
push ebx
push eax
call fcn.00408d8e
pop ecx
test eax, eax
pop ecx
jne 0x40111d
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x578]
push eax
call esi
push 2
lea eax, [ebp - 0x578]
push 0x411198
push eax
call fcn.0040ddd0
add esp, 0xc
test eax, eax
je 0x4011c1
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x678]
push eax
push 0x1a2b
lea eax, [ebp - 0x278]
push 0x411194
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x678]
push 0x411190
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x678]
sub ecx, 3
add eax, ecx
push eax
call esi
lea eax, [ebp - 0x178]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x678]
push ebx
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4011be
lea eax, [ebp - 0x678]
push eax
call fcn.00409933
pop ecx
mov dword [ebp - 8], 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 - 4], 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 - 0x28], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x6a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadBitmapA]
cmp byte [ebp - 0x578], 0x2f
mov dword [0x414c18], eax
lea eax, [ebp - 0x578]
mov dword [0x414c60], ebx
mov dword [ebp + 0x10], eax
jne 0x401313
mov esi, dword [ebp + 0x10]
movsx eax, byte [esi + 1]
push eax
call fcn.0040a320
cmp eax, 0x5a
pop ecx
jne 0x401283
cmp byte [esi + 1], 0x7a
jne 0x40126d
mov dword [0x4148c8], 1
inc esi
inc esi
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x20
jne 0x40130a
inc esi
cmp byte [esi], 0x20
je 0x40127b
jmp 0x4012f9
movsx eax, byte [esi + 1]
push eax
call fcn.0040a320
cmp eax, 0x41
pop ecx
jne 0x40129f
mov dword [0x414c60], 1
jmp 0x4012f7
movsx eax, byte [esi + 1]
push eax
call fcn.0040a320
cmp eax, 0x53
pop ecx
jne 0x4012be
push 1
pop eax
mov dword [0x414898], eax
mov dword [0x414c60], eax
jmp 0x4012f7
movsx eax, byte [esi + 1]
push eax
call fcn.0040a320
cmp eax, 0x52
pop ecx
jne 0x4012da
mov dword [0x4148e8], 1
jmp 0x4012f7
movsx eax, byte [esi + 1]
push eax
call fcn.0040a320
cmp eax, 0x55
pop ecx
jne 0x401313
mov esi, dword [ebp + 0x10]
mov dword [0x414bc4], 1
inc esi
inc esi
cmp byte [esi], 0x20
mov dword [ebp + 0x10], esi
jne 0x40130a
inc esi
cmp byte [esi], 0x20
je 0x401301
mov dword [ebp + 0x10], esi
cmp byte [esi], 0x2f
je 0x40124a
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0x20
jne 0x401324
inc eax
cmp byte [eax], 0x20
je 0x40131b
mov dword [ebp + 0x10], eax
push 0x20
push eax
call fcn.0040a260
pop ecx
cmp eax, ebx
pop ecx
je 0x401366
cmp dword [0x4148c8], ebx
jne 0x401366
mov byte [eax], bl
inc eax
mov dword [0x414c1c], eax
cmp byte [eax], 0x22
jne 0x40134d
inc eax
mov dword [0x414c1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x401366
mov ecx, dword [0x414c1c]
add eax, ecx
cmp byte [eax], 0x22
jne 0x401366
mov byte [eax], bl
push dword [0x414c14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push str.Start_Red
push str.Settings
call esi
push dword [0x414c14]
mov dword [0x414c40], eax
push ebx
push str.Start_Green
push str.Settings
call esi
push dword [0x414c14]
mov dword [0x414c44], eax
push 0xff
push str.Start_Blue
push str.Settings
call esi
push dword [0x414c14]
mov dword [0x414c48], eax
push ebx
push str.End_Red
push str.Settings
call esi
push dword [0x414c14]
sub eax, dword [0x414c40]
push ebx
push str.End_Green
push str.Settings
mov dword [0x414c4c], eax
call esi
push dword [0x414c14]
sub eax, dword [0x414c44]
push ebx
push str.End_Blue
push str.Settings
mov dword [0x414c50], eax
call esi
push dword [0x414c14]
sub eax, dword [0x414c48]
push 1
push str.No_Background
push str.Settings
mov dword [0x414c54], eax
call esi
mov dword [0x414858], eax
call fcn.004093a8
cmp dword [ebp + 0xc], ebx
jne 0x401442
push dword [ebp + 8]
call fcn.00401e1a
test eax, eax
pop ecx
je 0x401453
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00401e79
pop ecx
test eax, eax
pop ecx
jne 0x40145a
xor eax, eax
jmp 0x401e13
cmp dword [0x41483c], ebx
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
je 0x4014c4
push ebx
push 0x64
push 0x206a
mov dword [0x414c04], 1
push dword [0x414840]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x4014ab
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401486
cmp dword [0x414c04], ebx
jne 0x401486
push 0x206a
push dword [0x414840]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x4148c8], ebx
je 0x40167f
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x40167f
push ebx
push 0x3e8
push 0x206a
mov dword [0x414c04], 1
push dword [0x414840]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x401521
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4014fc
cmp dword [0x414c04], ebx
jne 0x4014fc
push 0x206a
push dword [0x414840]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 0x10]
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x178]
push 0x20
push eax
call fcn.0040a260
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x401562
mov byte [esi], bl
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x179], 0x5c
je 0x401586
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x179]
lea ecx, [ebp - 0x178]
cmp eax, ecx
jbe 0x4015ac
cmp byte [eax], 0x5c
je 0x4015b1
dec eax
jmp 0x40159a
cmp byte [eax], 0x5c
jne 0x4015b3
mov byte [eax], bl
lea eax, [ebp - 0x178]
push ebx
push eax
call fcn.004076c0
pop ecx
cmp esi, ebx
pop ecx
je 0x4015e8
inc esi
cmp byte [esi], bl
je 0x4015e8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
lea eax, [eax + esi - 1]
jne 0x4015df
mov byte [eax], bl
push ebx
push esi
call fcn.004076c0
pop ecx
pop ecx
push dword [0x414840]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x401624
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
jmp 0x401601
push dword [0x414c18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x178]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x414c68]
cmp eax, ebx
je 0x401666
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4148dc]
cmp eax, ebx
je 0x401e10
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x401e10
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.CTL3D32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4016dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Ctl3dRegister
push eax
call esi
push str.Ctl3dUnregister
mov dword [0x4148f4], eax
push dword [ebp + 0xc]
call esi
push str.Ctl3dAutoSubclass
mov dword [0x4148d4], eax
push dword [ebp + 0xc]
call esi
push str.Ctl3dSubclassDlgEx
mov dword [0x414880], eax
push dword [ebp + 0xc]
call esi
mov dword [0x414c10], eax
mov eax, dword [0x4148f4]
mov dword [0x4148fc], 0xffffff
cmp eax, ebx
je 0x40172c
push dword [ebp + 8]
call eax
test eax, eax
je 0x401726
cmp dword [0x414854], 1
mov eax, dword [0x41487c]
jne 0x40170a
cmp eax, ebx
jne 0x401717
cmp eax, ebx
jne 0x401717
push dword [ebp + 8]
call dword [0x414880]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [0x4148fc], eax
jmp 0x40172c
mov dword [0x4148f4], ebx
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x378], bl
cmp byte [eax], bl
jne 0x4017f4
push 0x4c
lea eax, [ebp - 0x78]
pop esi
push esi
push ebx
push eax
call fcn.0040a1f0
mov eax, dword [0x414840]
add esp, 0xc
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x478]
push edi
push eax
push 1
mov dword [ebp - 0x78], esi
push dword [0x414bf0]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], 0x1000
call fcn.00408ff4
add esp, 0x10
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x477]
push str.install.log
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea eax, [ebp - 0x478]
push str.INSTALL.LOG
mov byte [esi], bl
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x178]
push eax
call esi
lea eax, [ebp - 0x178]
mov dword [ebp - 0x5c], eax
call fcn.0040a0a9
lea eax, [ebp - 0x78]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x401802
push dword [ebp - 0x5c]
lea eax, [ebp - 0x378]
push eax
call esi
jmp 0x401802
push eax
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.00409a43
pop ecx
mov esi, 0x4000
push esi
mov dword [0x414c00], eax
call fcn.00409a43
pop ecx
mov dword [0x414828], eax
push esi
push ebx
push eax
call fcn.0040a1f0
add esp, 0xc
push edi
call fcn.00409a43
pop ecx
mov dword [0x414ce0], eax
push 0x400
call fcn.00409a43
pop ecx
mov dword [0x4148d0], eax
push edi
call fcn.00409a43
pop ecx
mov dword [0x414920], eax
push 0x104
call fcn.00409a43
pop ecx
mov esi, 0x200
push esi
mov dword [0x4148b8], eax
call fcn.00409a43
pop ecx
mov dword [0x414904], eax
push esi
push ebx
push eax
call fcn.0040a1f0
add esp, 0xc
mov esi, 0xfa00
push esi
call fcn.00409a43
pop ecx
mov dword [0x414878], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x414c6c], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x414848], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x41488c], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x41484c], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x41491c], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x414868], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x414930], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x414be4], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x4148b4], eax
push esi
call fcn.00409a43
pop ecx
mov dword [0x4148c4], eax
push esi
call fcn.00409a43
cmp byte [ebp - 0x378], bl
pop ecx
mov dword [0x414cf8], eax
je 0x401af4
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 - 0x778]
push eax
lea eax, [ebp - 0x378]
push eax
call fcn.00403833
pop ecx
pop ecx
push dword [ebp + 0x10]
test eax, eax
jne 0x401af2
call esi
cmp dword [0x414c60], ebx
mov eax, 0x3e8
je 0x401972
mov dword [0x414860], eax
mov byte [0x414bc0], 0xb
cmp dword [0x414bc4], ebx
je 0x401986
mov dword [0x414860], eax
mov byte [0x414bc0], 0xb
cmp dword [0x414898], ebx
jne 0x401a33
call fcn.0040a0a9
push ebx
push dword [0x414840]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push sym.UNWISE32.EXE__ItemDlg_16
push dword [0x414840]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
and eax, dword [0x414840]
push eax
push 0x6a
push dword [0x414bf0]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp dword [0x414c60], ebx
mov dword [0x414838], eax
jne 0x401a33
cmp dword [0x4148a8], ebx
jne 0x401a62
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [0x414850], ebx
jne 0x401a33
push 1
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x401a2b
lea eax, [ebp - 0x24]
push eax
push dword [0x414838]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x4019f2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4019f2
cmp dword [0x4148a8], ebx
je 0x4019ea
cmp dword [0x4148a8], ebx
jne 0x401a62
push 0x4110cc
call fcn.0040a150
pop ecx
lea eax, [ebp - 0x378]
push eax
call fcn.00406012
pop ecx
push ebx
push ebx
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [0x414884], ebx
je 0x401ad7
cmp dword [0x414898], ebx
jne 0x401aeb
lea eax, [ebp - 0x278]
push edi
push eax
push 0x19
push dword [0x414bf0]
call fcn.00408ff4
add esp, 0x10
lea eax, [ebp - 0x978]
push 0x200
push eax
push 0x44
push dword [0x414bf0]
call fcn.00408ff4
add esp, 0x10
xor eax, eax
cmp dword [0x414854], ebx
setne al
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x978]
push eax
push dword [0x414838]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x401ad7
mov dword [0x414884], ebx
cmp dword [0x414898], ebx
jne 0x401aeb
push dword [0x414838]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.00409467
jmp 0x401af4
call esi
mov eax, dword [0x41483c]
cmp eax, ebx
je 0x401b04
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x414840]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x401b40
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
jmp 0x401b1d
mov eax, dword [0x4148d4]
cmp eax, ebx
je 0x401b4e
push dword [ebp + 8]
call eax
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x401b5e
push dword [ebp + 0xc]
call esi
cmp dword [0x414cec], ebx
je 0x401b8c
lea eax, [ebp - 0x178]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x178]
push ebx
push eax
push 0x2001
push 0x1000
call dword [0x414cec]
mov eax, dword [0x4148bc]
cmp eax, ebx
je 0x401b98
push eax
call esi
push dword [0x414c18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 4]
call esi
cmp dword [0x414884], ebx
je 0x401cc6
mov eax, dword [0x414854]
cmp eax, 1
je 0x401bd7
cmp eax, ebx
jne 0x401cc6
dec eax
push 0x12c
neg eax
sbb eax, eax
add eax, 0x75fa
movzx eax, ax
push eax
push dword [0x414bf0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x401cc6
push eax
push dword [0x414bf0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push dword [0x414bf0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x401cc6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401cc1
lea eax, [ebp - 0x378]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x379], 0x5c
je 0x401c74
lea eax, [ebp - 0x378]
push 0x4110cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x414854], ebx
jne 0x401c83
push str._MSSETUP.EXE
jmp 0x401c88
push str._MSRSTRT.EXE
lea eax, [ebp - 0x378]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x378]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x401cc1
push dword [ebp + 0x14]
push dword [ebp - 4]
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 [0x414c68]
cmp eax, ebx
je 0x401cd6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4148cc]
cmp eax, ebx
je 0x401ce6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 8], ebx
je 0x401d5b
lea eax, [ebp - 0x178]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x414854], ebx
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
je 0x401d1f
lea eax, [ebp - 0x200]
push 0x200
push eax
lea eax, [ebp - 0x178]
push eax
call esi
lea eax, [ebp - 0x178]
push 0x4111a8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x178]
sub ecx, 3
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x200]
push 0x200
push eax
lea eax, [ebp - 0x178]
push eax
call esi
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
jne 0x401dcf
lea eax, [ebp - 0x478]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x478]
push ebx
push eax
call fcn.00408bfa
pop ecx
lea eax, [ebp - 0x778]
pop ecx
push eax
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x178]
push str._s__z__s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [0x414be8], ebx
je 0x401dc2
lea eax, [ebp - 0x178]
push 5
push eax
call esi
jmp 0x401dcf
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00409ac5
mov eax, dword [0x4148dc]
cmp eax, ebx
je 0x401de4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x414884], ebx
je 0x401e10
mov eax, dword [0x414854]
cmp eax, 1
je 0x401e05
cmp eax, ebx
je 0x401e05
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x401e10
lea eax, [ebp - 0x378]
push 5
push eax
call esi
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10