Function at 0x413480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x43000c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
lea ebx, [ebp - 0x28]
mov ecx, 2
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 0x80000001
push esi
push ebx
push esi
push ecx
push esi
push esi
push esi
push str.SoftwareClassesApplications
push eax
call edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
push esi
mov eax, 2
push eax
push 1
push esi
push esi
push str.SoftwareClassesApplicationscrashreporter.exe
mov eax, 0x80000001
push eax
call edi
test eax, eax
jne 0x413516
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push esi
push esi
push esi
push str.IsHostApp
push dword [ebp - 0x28]
call edi
push esi
push esi
push esi
push esi
push str.NoOpenWith
push dword [ebp - 0x28]
call edi
push esi
push esi
push esi
push esi
push str.NoStartPage
push dword [ebp - 0x28]
call edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
call esi
mov eax, dword [eax]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x44], eax
call esi
cmp dword [eax], 0
jle 0x41365f
xor edi, edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov eax, dword [eax]
mov ebx, dword [eax + edi*4]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov esi, eax
cmp eax, 7
ja 0x41358a
mov eax, esi
mov dword [ebp - 0x30], esi
add eax, esi
push eax
push ebx
lea ebx, [ebp - 0x40]
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [ebp + esi*2 - 0x40], 0
jmp 0x4135a5
sub esp, 0xc
mov al, byte [ebp - 0x28]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x40]
mov dword [esp], esi
mov ecx, ebx
call section..text
lea esi, [ebp - 0x28]
mov edx, ebx
mov ecx, esi
call fcn.00413690
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov eax, esi
cmp ebx, 0xf
mov esi, ecx
cmova eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x44]
cmp ebx, 0x10
mov dword [ecx + edi*4], eax
jae 0x41361a
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 8
jb 0x413609
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x413631
push edx
push eax
call fcn.004286a1
add esp, 8
inc edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp edi, dword [eax]
jl 0x41353d
jmp 0x41365f
lea ecx, [ebx + 1]
cmp ecx, 0x1000
jae 0x413649
push ecx
push esi
call fcn.004286a1
add esp, 8
jmp 0x4135d6
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x413685
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x4135ff
mov eax, dword [esi - 4]
add esi, 0xfffffffc
sub esi, eax
cmp esi, 0x20
jae 0x413685
add ebx, 0x24
mov esi, eax
mov ecx, ebx
jmp 0x413625
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x44]
call fcn.00409000
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429010
xor eax, eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3