Function at 0x4089a0
Capabilities:
Check os version
Delete directory
Delete file
Delete registry key
Get common file path
Get disk information
Get file size
Move file
Read .ini file
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x42564c
push 0x421b6c
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x530]
push 0x425750
push 0x425548
push 0x425414
push str._s_s_s
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x530]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x530]
push eax
push 0x104
push 0x425854
push 0x420874
push str.InstallFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call fcn.00408590
push str.Setup.dat
push 0x425854
lea eax, [ebp - 0x320]
push 0x42086c
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x320]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408aa6
lea eax, [ebp - 0x320]
push eax
push str._0x20010001__n_s
push 0x30
push str.file_open_error
push dword [0x425188]
call fcn.0040a820
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0xa3c], edi
lea ecx, [edi + 1]
push ecx
call fcn.0040cfa9
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408b04
lea eax, [ebp - 0x320]
push eax
push str._0x20010002__n_s
push 0x30
push str.memory_allocate_error
push dword [0x425188]
call fcn.0040a820
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0xa40]
mov byte [ebx + edi], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408b62
lea eax, [ebp - 0x320]
push eax
push str._0x20010003__n_s
push 0x30
push str.read_error
push dword [0x425188]
call fcn.0040a820
add esp, 0x14
push ebx
call fcn.0040cfa4
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x425414
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x408ce5
mov cl, byte [esi + ebx]
xor eax, eax
cmp cl, 0x3b
je 0x408bac
nop
inc esi
mov byte [ebp + eax - 0x320], cl
inc eax
mov cl, byte [esi + ebx]
cmp cl, 0x3b
jne 0x408b90
cmp eax, 0x104
jae 0x40924e
mov byte [ebp + eax - 0x320], 0
mov al, byte [esi + ebx]
inc esi
cmp al, 0xa
jne 0x408bb4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
movsx eax, byte [ebp - 0x320]
sub eax, 0x44
je 0x408c89
sub eax, 2
jne 0x408cc5
lea eax, [ebp - 0x31e]
push eax
push 0x425854
lea eax, [ebp - 0x530]
push 0x42086c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x530]
mov edi, 0xa
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x408cb7
sub edi, 1
je 0x408c3b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x408c18
jmp 0x408cb7
push 0
push 0x400
lea eax, [ebp - 0x320]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x530]
push eax
push 0x421bb8
push 0x30
push 0x42564c
push dword [0x425188]
call fcn.0040a820
add esp, 0x18
jmp 0x408cb7
lea eax, [ebp - 0x31e]
push eax
push 0x425854
lea eax, [ebp - 0x530]
push 0x42086c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp esi, dword [ebp - 0xa3c]
jne 0x408b84
jmp 0x408cdf
push 0x30
lea eax, [ebp - 0x320]
push eax
push 0x421be0
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.0040cfa4
add esp, 4
mov ecx, 0x425854
call fcn.0040a470
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x425854
call ebx
push 0x425854
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x425854], 0x5c
lea eax, [eax + 0x425854]
je 0x408d2b
nop
mov byte [eax], 0
lea eax, [eax - 1]
cmp byte [eax], 0x5c
jne 0x408d20
mov ecx, 0x425854
call fcn.0040a470
push 0x425854
call ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x218]
push 0x425750
push 0x425548
push 0x425414
push str._s_s_s
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x218]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x420874
push str.uninstall
push str.Link
call esi
cmp byte [ebp - 0x110], 0x2a
je 0x408db0
lea eax, [ebp - 0x110]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x420874
push str.desktop
push str.Link
call esi
cmp byte [ebp - 0x110], 0x2a
je 0x408de6
lea eax, [ebp - 0x110]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x420874
push str.read_me
push str.Link
call esi
cmp byte [ebp - 0x110], 0x2a
je 0x408e1c
lea eax, [ebp - 0x110]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x420874
push 0x420f7c
push str.Link
call esi
cmp byte [ebp - 0x110], 0x2a
je 0x408e52
lea eax, [ebp - 0x110]
push eax
call edi
xor esi, esi
push esi
lea eax, [ebp - 0x428]
push str.exe_02d
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x420874
lea eax, [ebp - 0x428]
push eax
push str.Link
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x110], 0x2a
je 0x408ea2
lea eax, [ebp - 0x110]
push eax
call edi
inc esi
cmp esi, 8
jl 0x408e54
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x420874
push str.game
push str.Link
call esi
cmp byte [ebp - 0x110], 0x2a
je 0x408ef5
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x3e8
call ebx
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x420874
push str.brand
push str.Link
call esi
cmp byte [ebp - 0x110], 0x2a
je 0x408f36
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x428]
push 0x425750
push 0x425548
push 0x425414
push str._s_s_s
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x428]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x428]
push eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0x420874
push str.GUID
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea eax, [ebp - 0xa38]
push 0x42086c
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x3e8
call ebx
push 0x425750
push 0x425548
push 0x425414
lea eax, [ebp - 0x218]
mov ebx, esi
push str._s_s_s
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x218]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x740]
push eax
push str.Setup.exe
push str.ExeName
push str.UNINSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x740]
push eax
push 0x425548
push 0x425414
lea eax, [ebp - 0x218]
push str._s_s_s
push eax
call ebx
add esp, 0x14
push 0x42520c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x4091b0
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4091e1
mov eax, dword [ebp - 0x90]
sub eax, 1
je 0x4090d0
sub eax, 1
jne 0x4091e1
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x425548
push 0x425414
lea eax, [ebp - 0x218]
push 0x42086c
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x218]
push 4
push 0
push eax
call esi
jmp 0x4091e1
push 0x104
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x639], 0x5c
je 0x409101
mov byte [ebp + eax - 0x639], 0x5c
lea ecx, [ebp - 0x638]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x409108
mov eax, dword [str.wininit.ini]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [ecx], eax
mov eax, dword [0x421b58]
mov dword [ecx + 4], eax
mov eax, dword [0x421b5c]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x428]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x421b60
push str.rename
call esi
push 0x425548
push 0x425414
lea eax, [ebp - 0x218]
push 0x42086c
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x428]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x421b60
push str.rename
call esi
jmp 0x4091e1
lea eax, [ebp - 0x218]
push eax
call edi
push 0x425548
push 0x425414
lea eax, [ebp - 0x218]
push 0x42086c
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x425750
push 0x425548
push 0x425414
lea eax, [ebp - 0x428]
push str._s_s_s
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x428]
push str..ini
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x42564c
push 0x421c48
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
call fcn.0040a9c1
int3