Function at 0x401300
Capabilities:
Check if file exists
Delete file
Delete registry key
Get common file path
Get file attributes
Query or enumerate registry key
Set file attributes

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
push 0x11
push 0x406038
push 0x407110
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x40132a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push str.SoftwareGamebankRaidenII
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80000002
call esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallRaidenII
push 0x80000002
call esi
lea eax, [esp + 0x10]
push eax
push str.SoftwareGamebank
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [esp + 0x10]
push 0x104
push 0x4072b0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401384
push str.SoftwareGamebank
push 0x80000002
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4072b0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
call ebp
test eax, eax
je 0x4013b5
push 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4013f8
push 0x104
mov edi, 0x4060e4
push 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RaidenII.exe
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push pe_nt_image_headers32
and ecx, 3
push 0x4072b0
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call ebx
push 0x4072b0
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, str.Recent_
call ebp
push 0x104
push 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RaidenII.gid
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push pe_nt_image_headers32
and ecx, 3
push 0x4072b0
rep movsb byte es:[edi], byte [esi]
mov edi, str.Recent_
call ebx
push 0x4072b0
call ebp
push 0x104
push 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RaidenII.hlp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push pe_nt_image_headers32
and ecx, 3
push 0x4072b0
rep movsb byte es:[edi], byte [esi]
mov edi, str.Help_
call ebx
push 0x4072b0
call ebp
push 0x104
push 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RaidenII.gid
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push pe_nt_image_headers32
push 0x4072b0
mov edi, str.Help_
call ebx
push 0x4072b0
call ebp
push 0x104
push 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.RaidenII.hlp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push pe_nt_image_headers32
and ecx, 3
push 0x4072b0
rep movsb byte es:[edi], byte [esi]
call ebx
push 0x4072b0
call ebp
push 0x104
mov edi, str.Recent_
push 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4060e8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x4072b0
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push pe_nt_image_headers32
and ecx, 3
push 0x4072b0
rep movsb byte es:[edi], byte [esi]
call ebx
push 0x4072b0
call ebp
push 0
push 0x406038
push 0x4077c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret