Function at 0x4012b0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x97c
mov dword [esp], 0
lea edi, [ebp - 0x10]
call sub.OLE32.dll_CoInitialize
lea esi, [ebp - 0x140]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x403024
mov dword [esp + 4], str.Written_by_Soar___TaTaZu.CoM
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
lea eax, [ebp - 0x244]
mov dword [ebp - 0x14], 0x104
sub esp, 0x10
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareBlizzard_EntertainmentWarcraft_III
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyA
sub esp, 0xc
test eax, eax
je 0x401493
lea eax, [ebp - 0x244]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x401795
mov byte [eax], 0
lea ebx, [ebp - 0x348]
mov dword [esp + 8], esi
mov dword [esp + 4], str._swar3.exe
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x4013ab
test eax, 0x1050
je 0x401433
lea edx, [ebp - 0x3c]
xor eax, eax
mov dword [edx + eax], 0
add eax, 4
cmp eax, 0x20
jb 0x4013b0
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], str.war3.exe_not_found__please_locate_it_manually.
mov dword [ebp - 0x2c], 0x1040
mov dword [esp], edx
call sub.SHELL32.DLL_SHBrowseForFolderA
sub esp, 4
test eax, eax
je 0x401487
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
sub esp, 8
test eax, eax
je 0x401487
mov dword [esp + 8], esi
mov dword [esp + 4], str._swar3.exe
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x4017a1
test eax, 0x1050
jne 0x4017a1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareBlizzard_EntertainmentWarcraft_III
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyA
sub esp, 0xc
test eax, eax
je 0x4014d0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x403024
mov dword [esp + 4], str.Error__Failed_to_write_registry_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.InstallPath
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x401433
jmp 0x401346
mov dword [esp], esi
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.InstallPath
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x401460
mov dword [esp], esi
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.InstallPathX
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x401460
lea eax, [ebp - 0x550]
lea ebx, [ebp - 0x960]
mov dword [esp + 8], esi
mov dword [esp + 4], str._sBNUpdate.exe
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov dword [esp + 4], str._sWar3x.mpq__sWar3xlocal.mpq
mov dword [esp], ebx
mov dword [ebp - 0x1c], 1
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0x654]
mov dword [esp + 8], esi
mov dword [esp + 4], str._sWar3patch.mpq
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
lea eax, [ebp - 0x758]
mov dword [esp + 8], esi
mov dword [esp + 4], str._sWar3.exe
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
mov dword [esp + 8], edi
mov dword [esp + 4], str.SoftwareBattle.netPatch
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyA
sub esp, 0xc
test eax, eax
jne 0x401460
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SrcData
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x401460
lea eax, [ebp - 0x244]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x244]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Patches
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x401460
lea eax, [ebp - 0x654]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x654]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.DstData
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x401460
lea eax, [ebp - 0x758]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
sub esp, 4
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x758]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Launcher
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x401460
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.KeepFiles
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x401460
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
lea eax, [ebp - 0x550]
sub esp, 4
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
jmp 0x401487
mov byte [ebp - 0x140], 0
jmp 0x401376
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x403024
mov dword [esp + 4], str.Cannot_locate_war3.exe__patch_failed_
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x401487