Function at 0x418790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42dc38
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x44405c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
mov eax, sym.MeowPlayer1.0.0.6.exe_class_base::String_InstallFolder
call fcn.0040c770
xor eax, eax
mov dword [esp + 0x10], eax
push 0xf003f
mov dword [esp + 0x44], eax
push 1
mov eax, str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionUninstallMeowPlayer
lea ebx, [esp + 0x18]
call fcn.0040de20
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x418954
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418800
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
xor edi, edi
push edi
push str.InstallLocation
push ecx
call ebx
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x24], 0
call fcn.0040c770
mov esi, str.MeowPlayer.exe
lea edi, [esp + 0x14]
call fcn.00408350
mov ecx, dword [esp + 0x14]
mov eax, ecx
lea edx, [eax + 2]
jmp 0x418860
mov si, word [eax]
add eax, 2
test si, si
jne 0x418860
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push str.DisplayIcon
push eax
call ebx
mov ecx, dword [esp + 0x10]
push 0x12
push 0x430f28
push 1
push 0
push str.DisplayName
push ecx
call ebx
mov edx, dword [esp + 0x10]
push 0x10
push str.1.0.0.6
push 1
push 0
push str.DisplayVersion
push edx
call ebx
mov eax, dword [esp + 0x10]
push 0x1c
push 0x4323e8
push 1
push 0
push str.Publisher
push eax
call ebx
mov ecx, dword [ebp + 8]
push ecx
lea eax, [esp + 0x18]
call fcn.0040c770
mov esi, str.Uninstall.exe
lea edi, [esp + 0x14]
call fcn.00408350
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4188f0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push 0
push str.UninstallString
push eax
call ebx
mov ecx, dword [esp + 0x10]
push 4
push 0x432438
push 1
push 0
push 0x43243c
push ecx
call ebx
mov edx, dword [esp + 0x10]
push 4
push 0x432458
push 1
push 0
push 0x43245c
push edx
call ebx
test esi, esi
je 0x418954
mov eax, dword [esp + 0x20]
push eax
call fcn.00408b50
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41896b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41896b
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
call sym.MeowPlayer1.0.0.6.exe_bool___cdecl_SaveConfig_class_base::Registry__
add esp, 4
test al, al
je 0x418a63
lea esi, [esp + 0x24]
call fcn.0040c270
push str.appid
lea edx, [esp + 0x14]
push edx
mov edi, esi
call fcn.0040e1c0
cmp dword [esp + 0x28], 0x20
je 0x4189d6
mov ecx, esi
call fcn.004186e0
mov edx, dword [esp + 0x24]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4189b1
mov ecx, dword [esp + 0x10]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push str.appid
push ecx
call ebx
lea esi, [esp + 0x14]
call fcn.0040c270
push str.userid
lea edx, [esp + 0x14]
push edx
mov edi, esi
mov byte [esp + 0x48], 2
call fcn.0040e1c0
cmp dword [esp + 0x18], 0x20
je 0x418a37
mov eax, esi
push eax
call sym.MeowPlayer1.0.0.6.exe_bool___cdecl_CreateUserID_class_base::String__
mov esi, dword [esp + 0x18]
mov eax, esi
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418a10
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.userid
push edx
call ebx
jmp 0x418a3b
mov esi, dword [esp + 0x14]
test esi, esi
je 0x418a4c
mov eax, dword [esp + 0x20]
push eax
call fcn.00408b50
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x418a75
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00408b50
add esp, 4
jmp 0x418a75
push str.fatal_error:_cant_write_setup_info_to_registry
push 0xff
call sym.MeowPlayer1.0.0.6.exe_void___cdecl_ymPrint_int__wchar_t_const__
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418a84
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret