Function at 0x426e20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov dword [esp], ecx
mov edi, edx
mov esi, 7
mov eax, dword [0x49803c]
xor eax, ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], 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 0x426e87
mov ecx, ebx
lea eax, [esp + 0x30]
add ecx, ebx
mov dword [eax + 0x10], ebx
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + ebx*2 + 0x30], 0
jmp 0x426ea2
sub esp, 0xc
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x3c]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
call fcn.00424520
movsd xmm0, qword [esp + 0x38]
xor eax, eax
movzx ecx, word [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
lea edi, [esp + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x20], eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
mov word [edi], 0
movsd qword [esp + 0x26], xmm0
movsd xmm0, qword [esp + 0x32]
mov word [esp + 0x30], cx
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x26]
movsd qword [esp + 0x32], xmm0
movsd qword [esp + 0x38], xmm1
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
sub esp, 0xc
mov al, byte [esp + 0x10]
mov ecx, edi
mov byte [esp + 4], al
mov dword [esp + 8], str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov dword [esp], 0x2e
call fcn.00424520
cmp dword [ebp + 0xc], 0
je 0x426fb2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x42707d
lea edx, [eax + 1]
cmp ecx, 7
mov dword [esp + 0x18], edx
jbe 0x426f54
mov edi, dword [esp + 8]
mov word [edi + eax*2], 0x5c
mov word [edi + eax*2 + 2], 0
push dword [ebp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, edx
sub esi, ecx
cmp esi, eax
jb 0x4270a8
lea esi, [ecx + eax]
cmp edx, 7
mov dword [esp + 0x18], esi
jbe 0x426f92
mov edi, dword [esp + 8]
jmp 0x426f96
lea edi, [esp + 8]
add eax, eax
lea ecx, [edi + ecx*2]
push eax
push dword [ebp + 0xc]
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [edi + esi*2], 0
mov ebx, dword [esp + 0x44]
cmp ebx, 7
jbe 0x426fbd
mov eax, dword [esp + 0x30]
jmp 0x426fc1
lea eax, [esp + 0x30]
cmp dword [esp + 0x1c], 7
jbe 0x426fce
mov ecx, dword [esp + 8]
jmp 0x426fd2
lea ecx, [esp + 8]
mov edx, 4
lea esi, [ebp + 8]
push edx
push esi
push edx
push eax
push ecx
push SysReAllocString
call dword [sym.imp.advapi32.dll_RegSetKeyValueW]
test eax, eax
je 0x427012
movzx edi, ax
mov edx, str.RegistrySetValueDword
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
push 0x140
call fcn.00428eb0
add esp, 4
jmp 0x427014
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp]
cmp ecx, 8
mov dword [eax], edi
jb 0x427040
mov eax, dword [esp + 8]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x4270cf
push edx
push eax
call fcn.0045fd21
add esp, 8
mov ecx, dword [esp + 0x44]
cmp ecx, 8
jb 0x427067
mov eax, dword [esp + 0x30]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x4270ea
push edx
push eax
call fcn.0045fd21
add esp, 8
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.0045fb40
mov eax, dword [esp]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub esp, 0x10
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x18]
mov byte [esp + 4], al
xor eax, eax
mov dword [esp + 8], 0x493a50
inc eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
call fcn.00423e40
jmp 0x426f61
sub esp, 0x10
mov cl, byte [esp + 0x14]
mov byte [esp + 4], cl
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 8], ecx
lea ecx, [esp + 0x18]
call fcn.00423e40
jmp 0x426fae
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x427105
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x427036
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x427105
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x42705d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3