Function at 0x42a9a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov edi, edx
mov dword [ebp - 0x58], ecx
mov eax, dword [0x49503c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 7
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], 0
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ebx, eax
cmp eax, 7
ja 0x42a9ff
lea eax, [ebp - 0x28]
mov dword [eax + 0x10], ebx
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [ebp + ebx*2 - 0x28], 0
jmp 0x42aa18
sub esp, 0xc
mov al, byte [ebp - 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
lea ecx, [ebp - 0x28]
call fcn.00452270
movzx eax, word [ebp - 0x28]
movsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x32], xmm0
movsd xmm0, qword [ebp - 0x26]
movsd qword [ebp - 0x38], xmm0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov word [ebp - 0x28], ax
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x32]
movsd qword [ebp - 0x26], xmm0
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
lea edi, [ebp - 0x50]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
mov word [edi], 0
sub esp, 0xc
mov al, byte [ebp - 0x54]
mov byte [esp + 4], al
mov dword [esp + 8], str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov dword [esp], 0x2e
mov ecx, edi
call fcn.00452270
cmp dword [ebp + 0xc], 0
je 0x42ab41
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
cmp ecx, eax
je 0x42aab7
lea edx, [eax + 1]
mov dword [ebp - 0x40], edx
cmp ecx, 7
jbe 0x42aaa8
mov edi, dword [ebp - 0x50]
mov word [edi + eax*2], 0x5c
mov word [edi + eax*2 + 2], 0
jmp 0x42aadb
sub esp, 0x10
mov al, byte [ebp - 0x54]
mov byte [esp + 4], al
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], 0x490144
lea ecx, [ebp - 0x50]
call fcn.004520d0
push dword [ebp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov esi, edx
sub esi, ecx
cmp esi, eax
jb 0x42ab21
lea esi, [ecx + eax]
mov dword [ebp - 0x40], esi
cmp edx, 7
jbe 0x42ab04
mov edi, dword [ebp - 0x50]
jmp 0x42ab07
lea edi, [ebp - 0x50]
lea ecx, [edi + ecx*2]
add eax, eax
push eax
push dword [ebp + 0xc]
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [edi + esi*2], 0
jmp 0x42ab41
sub esp, 0x10
mov cl, byte [ebp - 0x54]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp], eax
lea ecx, [ebp - 0x50]
call fcn.004520d0
xor esi, esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x42aba1
mov ebx, eax
mov dword [ebp - 0x5c], eax
xor edi, edi
dec edi
add ebx, eax
cmovae edi, ebx
push edi
call fcn.0044fc05
add esp, 4
push edi
mov edi, eax
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0x5c]
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x42abd0
cmp dword [ebp - 0x14], 7
jbe 0x42abfd
mov eax, dword [ebp - 0x28]
jmp 0x42ac00
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
mov edx, str.RegistrySetValueString
push 0x7f
call fcn.0042bc70
add esp, 4
mov esi, dword [ebp - 0x58]
mov dword [esi], edi
jmp 0x42ac57
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
mov edx, str.RegistrySetValueString
push 0x88
call fcn.0042bc70
add esp, 4
mov esi, dword [ebp - 0x58]
jmp 0x42ac4c
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x58]
cmp dword [ebp - 0x3c], 7
jbe 0x42ac0e
mov ecx, dword [ebp - 0x50]
jmp 0x42ac11
lea ecx, [ebp - 0x50]
push ebx
push edi
push 1
push eax
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x42ac4a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
mov edx, str.RegistrySetValueString
push 0x92
call fcn.0042bc70
add esp, 4
jmp 0x42ac4c
xor ebx, ebx
mov dword [esi], ebx
push edi
call fcn.0044fc0e
add esp, 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x42ac7a
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42acb1
push edx
push eax
call fcn.0044fbc2
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42ac9d
mov eax, dword [ebp - 0x28]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x42accc
push edx
push eax
call fcn.0044fbc2
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503b0
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42ace7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
mov esi, dword [ebp - 0x58]
jmp 0x42ac70
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42ace7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
mov esi, dword [ebp - 0x58]
jmp 0x42ac93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3