Function at 0x415090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x430014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [esp + 0x20], esi
lea edi, [ebp - 0x28]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x42a260]
movups xmmword [esp + 8], xmm0
mov eax, 0x80000001
mov dword [esp], eax
mov dword [esp + 4], str.SoftwareClassesApplications
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call ebx
sub esp, 0x24
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
movaps xmm0, xmmword [0x42a270]
movups xmmword [esp + 8], xmm0
mov eax, 0x80000001
mov dword [esp], eax
mov dword [esp + 4], str.SoftwareClassesApplicationscrashreporter.exe
call ebx
sub esp, 0x24
test eax, eax
jne 0x415180
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], str.IsHostApp
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
sub esp, 0x18
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], str.NoOpenWith
call esi
sub esp, 0x18
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], str.NoStartPage
call esi
sub esp, 0x18
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
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
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x44], eax
call esi
cmp dword [eax], 0
jle 0x4152d5
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]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], 0
mov dword [esp], ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov esi, eax
cmp eax, 7
ja 0x4152b5
mov dword [ebp - 0x30], esi
mov eax, esi
add eax, esi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x40]
mov dword [esp], ebx
call sub.VCRUNTIME140.dll_memmove
mov word [ebp + esi*2 - 0x40], 0
mov esi, ebx
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.00415310
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
cmp ebx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
mov dword [esp], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + edi*4], eax
cmp ebx, 0x10
jb 0x415257
lea eax, [ebx + 1]
cmp eax, 0x1000
jb 0x41524b
mov ecx, dword [esi - 4]
add esi, 0xfffffffc
sub esi, ecx
cmp esi, 0x20
jae 0x4152fb
add ebx, 0x24
mov eax, ebx
mov esi, ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0041c27c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4152a4
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x415298
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4152fb
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.0041c27c
inc edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp edi, dword [eax]
jl 0x4151a6
jmp 0x4152d5
mov al, byte [ebp - 0x28]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], esi
lea esi, [ebp - 0x40]
mov ecx, esi
call fcn.0041fd60
sub esp, 0xc
jmp 0x4151fc
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.0040c780
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cd60
xor eax, eax
add esp, 0x5c
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