Function at 0x45cf50
Capabilities:
Set registry value

Disassembly:
sub esp, 0xd9c
mov eax, dword [0x649474]
xor eax, esp
mov dword [esp + 0xd98], eax
push esi
mov esi, dword [esp + 0xda8]
lea eax, [esp + 0x194]
push edi
mov edi, dword [esp + 0xda8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x10], eax
test esi, esi
je 0x45cf97
cmp word [esi], 0
jne 0x45cf9e
lea esi, [esp + 0x198]
push esi
push 0x4ed6b0
lea eax, [esp + 0x5a8]
push 0x800
push eax
call fcn.0045d220
push edi
push str.discord__s
lea eax, [esp + 0x30]
push 0x80
push eax
call fcn.0045d220
push edi
push str.URL:Run_game__s_protocol
lea eax, [esp + 0xc0]
push 0x100
push eax
call fcn.0045d220
lea eax, [esp + 0x48]
mov dword [esp + 0x44], 0
push eax
push str.SoftwareClasses_s
lea eax, [esp + 0x3d8]
push 0x200
push eax
call fcn.0045d220
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0x4c]
add esp, 0x40
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x3bc]
push eax
push 0x80000001
call esi
test eax, eax
je 0x45d066
push str.Error_creating_key_n
push 2
call fcn.00490a9b
add esp, 4
push eax
call fcn.0045d590
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xd98]
xor ecx, esp
call fcn.004828de
add esp, 0xd9c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x9c]
push ebp
push eax
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc eax
add eax, eax
push eax
lea eax, [esp + 0xa4]
push eax
push 1
push 0
push 0
push dword [esp + 0x28]
call ebp
test eax, eax
jns 0x45d0b2
push str.Error_writing_description_n
push 2
call fcn.00490a9b
add esp, 4
push eax
call fcn.0045d590
add esp, 8
lea eax, [esp + 0xa0]
push eax
call ebx
push 2
lea eax, [esp + 0x20]
push eax
push 1
push 0
push str.URL_Protocol
push dword [esp + 0x28]
call ebp
test eax, eax
jns 0x45d0ee
push str.Error_writing_description_n
push 2
call fcn.00490a9b
add esp, 4
push eax
call fcn.0045d590
add esp, 8
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.DefaultIcon
push ebx
mov dword [esp + 0x34], 0
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
jne 0x45d155
mov eax, dword [esp + 0x18]
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x1a4]
push eax
push 1
push 0
push 0
push dword [esp + 0x24]
call ebp
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45d153
cmp eax, ebx
je 0x45d153
push eax
call esi
test edi, edi
jns 0x45d16f
push str.Error_writing_icon_n
push 2
call fcn.00490a9b
add esp, 4
push eax
call fcn.0045d590
add esp, 8
lea eax, [esp + 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [esp + 0x14]
inc eax
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.shellopencommand
push ebx
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x45d1e0
mov eax, dword [esp + 0x18]
add eax, eax
push eax
lea eax, [esp + 0x5ac]
push eax
push 1
push edi
push edi
push dword [esp + 0x24]
call ebp
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45d1de
cmp eax, ebx
je 0x45d1de
push eax
call esi
test edi, edi
pop ebp
pop ebx
jns 0x45d1fc
push str.Error_writing_command_n
push 2
call fcn.00490a9b
add esp, 4
push eax
call fcn.0045d590
add esp, 8
push dword [esp + 0xc]
call esi
mov ecx, dword [esp + 0xda0]
pop edi
pop esi
xor ecx, esp
call fcn.004828de
add esp, 0xd9c
ret