Function at 0x1001a240
Capabilities:
Set registry value

Disassembly:
sub esp, 0xda4
mov eax, dword [0x1005200c]
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 + 0x1c], eax
test esi, esi
je 0x1001a287
cmp word [esi], 0
je 0x1001a287
push esi
push 0x10047eec
jmp 0x1001a294
lea eax, [esp + 0x1a0]
push eax
push 0x10047ef4
lea eax, [esp + 0x5b0]
push 0x800
push eax
call fcn.1001a140
add esp, 0x10
lea eax, [esp + 0x20]
push edi
push str.discord__s
push 0x80
push eax
call fcn.1001a140
push edi
push str.URL:Run_game__s_protocol
lea eax, [esp + 0xb8]
push 0x100
push eax
call fcn.1001a140
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
push eax
push str.SoftwareClasses_s
lea eax, [esp + 0x3d0]
push 0x200
push eax
call fcn.1001a140
add esp, 0x30
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x3c4]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1001a346
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.1001a110
add esp, 8
jmp 0x1001a496
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0xa0]
push eax
call ebp
mov esi, dword [esp + 0x10]
inc eax
add eax, eax
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0xa4]
push eax
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
je 0x1001a392
cmp ecx, esi
je 0x1001a392
push ecx
call edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
test ebx, ebx
jns 0x1001a3b1
push 0x10047f84
push 2
call esi
add esp, 4
push eax
call fcn.1001a110
add esp, 8
lea eax, [esp + 0xa0]
push eax
call ebp
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 2
push eax
push 1
push 0
push str.URL_Protocol
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
mov ebp, eax
test ecx, ecx
je 0x1001a3ef
cmp ecx, ebx
je 0x1001a3ef
push ecx
call edi
test ebp, ebp
jns 0x1001a408
push str.Error_writing_description_n
push 2
call esi
add esp, 4
push eax
call fcn.1001a110
add esp, 8
mov eax, dword [esp + 0x1c]
mov edx, str.DefaultIcon
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x1a4]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
call fcn.1001a1d0
add esp, 0x10
test eax, eax
jns 0x1001a449
push str.Error_writing_icon_n
push 2
call esi
add esp, 4
push eax
call fcn.1001a110
add esp, 8
lea eax, [esp + 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov edx, str.shellopencommand
add eax, eax
push eax
lea eax, [esp + 0x5ac]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push 0
call fcn.1001a1d0
add esp, 0x10
test eax, eax
jns 0x1001a490
push str.Error_writing_command_n
push 2
call esi
add esp, 4
push eax
call fcn.1001a110
add esp, 8
push dword [esp + 0x10]
call edi
mov ecx, dword [esp + 0xdac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003da32
add esp, 0xda4
ret