Function at 0x4171e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [0x43000c]
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 [0x42a210]
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 [0x42a220]
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 0x4172d0
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 0x41740c
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
mov dword [esp], ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov esi, eax
cmp eax, 7
ja 0x417347
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
jmp 0x417362
mov al, byte [ebp - 0x28]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], esi
lea ebx, [ebp - 0x40]
mov ecx, ebx
call fcn.0041fa30
sub esp, 0xc
lea esi, [ebp - 0x28]
mov ecx, esi
mov edx, ebx
call fcn.00417440
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
cmp ebx, 0xf
mov eax, esi
mov esi, ecx
cmova eax, ecx
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 0x4173a8
lea eax, [ebx + 1]
cmp eax, 0x1000
jae 0x4173f6
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0041dcce
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4173cd
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x4173de
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041dcce
inc edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp edi, dword [eax]
jl 0x4172f6
jmp 0x41740c
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x417432
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x4173c1
mov ecx, dword [esi - 4]
add esi, 0xfffffffc
sub esi, ecx
cmp esi, 0x20
jae 0x417432
add ebx, 0x24
mov eax, ebx
mov esi, ecx
jmp 0x41739c
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.0040d370
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e640
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