Function at 0x1007ad90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov ebx, dword [ebp + 8]
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [esp + 0x30], eax
cmp byte [0x100a6610], 0
je 0x1007b325
lea esi, [esp + 0x18]
mov ecx, esi
call fcn.10016df0
cmp byte [esi + 4], 0
jne 0x1007b354
lea esi, [esp + 0x18]
mov eax, dword [esi]
mov dword [esp + 4], eax
mov ecx, esi
call fcn.10016e80
cmp byte [esi + 4], 0
jne 0x1007b360
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
mov edi, dword [eax]
mov ecx, esi
mov dword [esp], edx
push str.ScreenX
call fcn.10016f30
add esp, 4
mov dword [esp + 0x10], edi
cmp dword [esp + 0x2c], 8
jb 0x1007ae11
mov esi, dword [esp + 0x18]
mov eax, 4
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 7
jbe 0x1007ae5e
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007ae55
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test esi, esi
jne 0x1007b331
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
lea esi, [esp + 0x18]
mov ecx, esi
mov edx, dword [esp]
push 0x1009b760
call fcn.10016f30
add esp, 4
mov dword [esp + 0x10], edi
cmp dword [esi + 0x14], 8
jb 0x1007ae90
mov esi, dword [esp + 0x18]
mov eax, 4
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x1007aedd
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007aed4
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test esi, esi
jne 0x1007b331
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
lea esi, [esp + 0x18]
mov ecx, esi
mov edx, dword [esp]
push str.Width
call fcn.10016f30
add esp, 4
mov dword [esp + 0x10], edi
cmp dword [esi + 0x14], 8
jb 0x1007af0f
mov esi, dword [esp + 0x18]
mov eax, 4
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x1007af5c
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007af53
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test esi, esi
jne 0x1007b331
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
lea esi, [esp + 0x18]
mov ecx, esi
mov edx, dword [esp]
push str.Height
call fcn.10016f30
add esp, 4
mov dword [esp + 0x10], edi
cmp dword [esi + 0x14], 8
jb 0x1007af8e
mov esi, dword [esp + 0x18]
mov eax, 4
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x1007afdb
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007afd2
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test esi, esi
jne 0x1007b331
mov eax, dword [ebp + 0xc]
movzx edi, byte [eax + 0x44]
lea esi, [esp + 0x18]
mov ecx, esi
mov edx, dword [esp]
push str.Maximized
call fcn.10016f30
add esp, 4
mov dword [esp + 0x10], edi
cmp dword [esi + 0x14], 8
jb 0x1007b00e
mov esi, dword [esp + 0x18]
mov eax, 4
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x1007b05b
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007b052
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test esi, esi
jne 0x1007b331
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x45]
mov ecx, eax
or ecx, 2
cmp byte [edx + 0x46], 0
cmove ecx, eax
mov edi, 4
mov eax, ecx
or eax, edi
cmp byte [edx + 0x47], 0
cmove eax, ecx
mov ecx, dword [edx + 0x48]
mov edx, eax
or edx, 8
cmp ecx, 1
cmovne edx, eax
mov ebx, edx
or ebx, 0x10
cmp ecx, 2
cmovne ebx, edx
lea esi, [esp + 0x18]
mov ecx, esi
mov edx, dword [esp]
push str.Flags
call fcn.10016f30
add esp, 4
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x14], 8
jb 0x1007b0c3
mov esi, dword [esp + 0x18]
push edi
lea eax, [esp + 0x14]
push eax
push edi
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
mov ebx, dword [ebp + 8]
mov edi, dword [esp]
jb 0x1007b111
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007b108
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test esi, esi
jne 0x1007b33d
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax + 0x30]
movsd qword [esp + 8], xmm0
lea esi, [esp + 0x18]
mov ecx, esi
mov edx, edi
push str.CssToDevPixelScaling
call fcn.10016f30
add esp, 4
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x10], xmm0
cmp dword [esi + 0x14], 8
jb 0x1007b152
mov esi, dword [esp + 0x18]
push 8
lea eax, [esp + 0x14]
push eax
push 3
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x1007b19c
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007b193
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test esi, esi
jne 0x1007b33d
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 0x10]
lea esi, [esp + 0x18]
mov ecx, esi
mov edx, edi
push str.UrlbarCSSSpan
call fcn.10016f30
add esp, 4
lea edi, [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 4]
push 1
push ebx
push esi
call 0x1007b380
add esp, 0xc
mov bl, byte [edi + 4]
mov edi, dword [edi]
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x1007b20b
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007b202
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test bl, bl
jne 0x1007b349
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 0x20]
mov ecx, esi
mov edx, dword [esp]
push str.SearchbarCSSSpan
call fcn.10016f30
add esp, 4
lea edi, [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 4]
push 1
push ebx
push esi
call 0x1007b380
add esp, 0xc
mov bl, byte [edi + 4]
mov edi, dword [edi]
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x1007b278
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007b26f
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test bl, bl
jne 0x1007b349
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
mov ecx, esi
mov esi, dword [eax + 0x3c]
mov edx, dword [esp]
push str.SpringsCSSSpan
call fcn.10016f30
add esp, 4
lea edi, [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 4]
push esi
push ebx
lea eax, [esp + 0x20]
push eax
call 0x1007b380
add esp, 0xc
mov bl, byte [edi + 4]
mov esi, dword [edi]
mov ecx, dword [esp + 0x2c]
cmp ecx, 8
jb 0x1007b2eb
mov eax, dword [esp + 0x18]
inc ecx
test ecx, 0x7ffff800
je 0x1007b2e2
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1007b37a
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
test bl, bl
jne 0x1007b36c
mov ebx, dword [ebp + 8]
mov byte [ebx + 4], 0
mov edi, dword [esp]
test edi, edi
je 0x1007b306
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.1004fb50
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ebx + 4], 1
mov dword [ebx], 1
jmp 0x1007b310
mov byte [ebx + 4], 1
mov dword [ebx], 7
jmp 0x1007b2f6
mov byte [ebx + 4], 1
mov dword [ebx], 7
jmp 0x1007b2f9
mov ebx, dword [ebp + 8]
mov byte [ebx + 4], 1
mov dword [ebx], edi
jmp 0x1007b2f6
mov eax, dword [esp + 0x18]
mov byte [ebx + 4], 1
mov dword [ebx], eax
jmp 0x1007b310
mov eax, dword [esp + 0x18]
mov byte [ebx + 4], 1
mov dword [ebx], eax
jmp 0x1007b306
mov ebx, dword [ebp + 8]
mov byte [ebx + 4], 1
mov dword [ebx], esi
jmp 0x1007b2f6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0x70000000
mov ecx, ebx
shl ecx, 4
xor esi, esi
neg eax
sbb esi, esi
mov dword [ebp - 0x10], ecx
or esi, ecx
push esi
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov edi, eax
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
jle 0x1007b3e8
mov eax, dword [ebp + 0xc]
mov ecx, 8
movsd xmm0, qword [eax + ecx - 8]
movsd qword [edi + ecx - 8], xmm0
movsd xmm0, qword [eax + ecx]
movsd qword [edi + ecx], xmm0
add ecx, 0x10
dec ebx
jne 0x1007b3cc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x1007b3f3
mov edx, dword [edx]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push ecx
push edi
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1007b42c
mov dword [esi], 7
mov al, 1
mov byte [esi + 4], al
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x1007b416