Function at 0x683210
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [0xb0dbd8]
sub esp, 0x2e0
lea eax, [esp + 0x1dc]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
lea edx, [esp + 0x19c]
push 0x27
push edx
push 0x78ca98
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x18]
push 0
push 0
push 0x27
push eax
lea ecx, [esp + 0x1ac]
push 0xffffffffffffffff
push ecx
push 0
push 0
call edi
lea edx, [esp + 0x19c]
push 0x27
push edx
push 0x78ca88
call esi
lea eax, [esp + 0x174]
lea ecx, [esp + 0x19c]
push 0
push 0
push 0x27
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x40]
push str.CLSID_
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
push eax
push ecx
call ebx
lea edx, [esp + 0x70]
push str.WW.TiberianSun.1
push edx
call esi
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push SysReAllocString
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x683332
xor edx, edx
cmp edx, str.Tiberian_Sun
je 0x683327
push str.Tiberian_Sun
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x14]
push str.Tiberian_Sun
push 1
push 0
push 0
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x70]
push str.WW.TiberianSun.1
push edx
call esi
xor eax, eax
cmp eax, str.CLSID
je 0x68335f
lea ecx, [esp + 0x70]
push 0x7b78d4
push ecx
call ebx
lea edx, [esp + 0x70]
push str.CLSID
push edx
call ebx
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6833b8
lea edx, [esp + 0x18]
test edx, edx
je 0x6833ad
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ecx
push 1
push 0
push 0
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x70]
push str.WW.TiberianSun
push ecx
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x70]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x68341c
xor ecx, ecx
cmp ecx, str.Tiberian_Sun
je 0x683411
push str.Tiberian_Sun
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov edx, dword [esp + 0x10]
push eax
push str.Tiberian_Sun
push 1
push 0
push 0
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x70]
push str.WW.TiberianSun
push ecx
call esi
xor edx, edx
cmp edx, str.CurVer
je 0x68344a
lea eax, [esp + 0x70]
push 0x7b78d4
push eax
call ebx
lea ecx, [esp + 0x70]
push str.CurVer
push ecx
call ebx
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x88]
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6834a5
xor ecx, ecx
cmp ecx, str.WW.TiberianSun.1
je 0x68349a
push str.WW.TiberianSun.1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov edx, dword [esp + 0x10]
push eax
push str.WW.TiberianSun.1
push 1
push 0
push 0
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x70]
push str.WW.TiberianSun
push ecx
call esi
xor edx, edx
cmp edx, str.CLSID
je 0x6834d3
lea eax, [esp + 0x70]
push 0x7b78d4
push eax
call ebx
lea ecx, [esp + 0x70]
push str.CLSID
push ecx
call ebx
lea edx, [esp + 0x10]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x88]
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x68352c
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x683521
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push 0
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Tiberian_Sun
xor edx, edx
lea ecx, [esp + 0x44]
call fcn.00683160
mov edx, str.ProgID
lea ecx, [esp + 0x40]
push str.WW.TiberianSun.1
call fcn.00683160
mov edx, str.VersionIndependentProgID
lea ecx, [esp + 0x40]
push str.WW.TiberianSun
call fcn.00683160
mov edx, str.NotInsertable
lea ecx, [esp + 0x40]
push 0
call fcn.00683160
lea eax, [esp + 0x1ec]
mov edx, str.InprocServer32
push eax
lea ecx, [esp + 0x44]
call fcn.00683160
lea ecx, [esp + 0x174]
mov edx, str.Typelib
push ecx
lea ecx, [esp + 0x44]
call fcn.00683160
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
push str.RA2.TLB
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x6835c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
add esp, 0x2e0
ret