Function at 0x415240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x431014]
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 [0x42b280]
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 [0x42b290]
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 0x415330
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 0x415485
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 0x415465
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.004154c0
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 0x415407
lea eax, [ebx + 1]
cmp eax, 0x1000
jb 0x4153fb
mov ecx, dword [esi - 4]
add esi, 0xfffffffc
sub esi, ecx
cmp esi, 0x20
jae 0x4154ab
add ebx, 0x24
mov eax, ebx
mov esi, ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0041c5cc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x415454
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x415448
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4154ab
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.0041c5cc
inc edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp edi, dword [eax]
jl 0x415356
jmp 0x415485
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.00420160
sub esp, 0xc
jmp 0x4153ac
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.0040c630
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d0b0
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