Function at 0x10012450
Capabilities:
Set registry value

Disassembly:
sub esp, 0xda4
mov eax, dword [0x1004b00c]
xor eax, esp
mov dword [esp + 0xd9c], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x1a4]
mov esi, edx
push eax
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0x18], eax
test esi, esi
je 0x10012496
cmp word [esi], 0
je 0x10012496
mov ecx, 0x10042344
jmp 0x100124a2
mov ecx, 0x1004234c
lea esi, [esp + 0x1a0]
push esi
push ecx
lea eax, [esp + 0x5b0]
push 0x800
push eax
call fcn.100123e0
push edi
push str.discord__s
lea eax, [esp + 0x38]
push 0x80
push eax
call fcn.100123e0
push edi
push str.URL:Run_game__s_protocol
lea eax, [esp + 0xc8]
push pe_nt_image_headers32
push eax
call fcn.100123e0
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], 0
push eax
push str.SoftwareClasses_s
lea eax, [esp + 0x3e0]
push 0x200
push eax
call fcn.100123e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0x54]
add esp, 0x40
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x3c4]
push eax
push 0x80000001
call edi
test eax, eax
je 0x10012555
push str.Error_creating_key_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.100123b0
add esp, 8
jmp 0x100126ef
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0xa0]
push eax
call ebp
mov ebx, 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 ebx
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
test eax, eax
jns 0x100125a2
push 0x100423dc
push 2
call esi
add esp, 4
push eax
call fcn.100123b0
add esp, 8
lea eax, [esp + 0xa0]
push eax
call ebp
push 2
lea eax, [esp + 0x20]
push eax
push 1
push 0
push str.URL_Protocol
push dword [esp + 0x28]
call ebx
test eax, eax
jns 0x100125db
push str.Error_writing_description_n
push 2
call esi
add esp, 4
push eax
call fcn.100123b0
add esp, 8
mov ebp, 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 ebp
mov dword [esp + 0x34], 0
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test ebx, ebx
jne 0x10012646
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 dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10012644
cmp eax, ebp
je 0x10012644
push eax
call edi
test ebx, ebx
jns 0x1001265d
push str.Error_writing_icon_n
push 2
call esi
add esp, 4
push eax
call fcn.100123b0
add esp, 8
lea eax, [esp + 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, 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 ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x100126d2
mov eax, dword [esp + 0x18]
add eax, eax
push eax
lea eax, [esp + 0x5ac]
push eax
push 1
push ebx
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100126d0
cmp eax, ebp
je 0x100126d0
push eax
call edi
test ebx, ebx
jns 0x100126e9
push str.Error_writing_command_n
push 2
call esi
add esp, 4
push eax
call fcn.100123b0
add esp, 8
push dword [esp + 0x14]
call edi
mov ecx, dword [esp + 0xdac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10037c8d
add esp, 0xda4
ret