Function at 0x412350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x42f00c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edi, [ebp - 0x28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
push edi
push 0
push 2
push 0
push 0
push 0
push str.SoftwareClassesApplications
push 0x80000001
call esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push edi
push 0
push 2
push 1
push 0
push 0
push str.SoftwareClassesApplicationscrashreporter.exe
push 0x80000001
call esi
test eax, eax
jne 0x4123f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 0
push 0
push str.IsHostApp
push dword [ebp - 0x28]
call esi
push 0
push 0
push 0
push 0
push str.NoOpenWith
push dword [ebp - 0x28]
call esi
push 0
push 0
push 0
push 0
push str.NoStartPage
push dword [ebp - 0x28]
call esi
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 0x412564
xor edi, edi
jmp 0x412470
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x44]
mov dword [ecx + edi*4], eax
jmp 0x41251e
mov eax, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, eax
cmp ebx, 0x20
jae 0x41258a
add esi, 0x24
mov ebx, eax
mov ecx, esi
jmp 0x412514
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x41258a
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x41254b
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x4124c0
sub esp, 0xc
movzx eax, 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
jmp 0x4124dc
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
lea ecx, [ebp - 0x28]
mov edx, ebx
call fcn.00412590
mov esi, dword [ebp - 0x14]
cmp esi, 0xf
jbe 0x412419
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov ecx, dword [ebp - 0x44]
mov dword [ecx + edi*4], eax
lea ecx, [esi + 1]
cmp ecx, 0x1000
jae 0x412431
push ecx
push ebx
call fcn.00426ce1
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 8
jb 0x412555
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x41244e
push edx
push eax
call fcn.00426ce1
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 0x412470
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.004087a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427650
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]