Function at 0x10015140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, dword [ebp + 8]
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x38], eax
cmp byte [0x1007b5ec], 0
jne 0x10015182
mov byte [esi + 4], 1
mov dword [esi], 2
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.1002cad0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea edi, [esp + 0x20]
mov ecx, edi
call fcn.100541d0
cmp byte [edi + 4], 0
jne 0x100156a7
lea edi, [esp + 0x20]
mov eax, dword [edi]
mov dword [esp + 4], eax
mov ecx, edi
call fcn.1004fa50
cmp byte [edi + 4], 0
jne 0x100156b6
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x20]
mov ebx, dword [eax]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
mov ecx, edi
mov dword [esp], edx
call fcn.10014de0
mov ecx, edi
mov edx, str.ScreenX
push 8
call fcn.10014f30
add esp, 4
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x34], 7
mov eax, edi
jbe 0x100151fe
mov eax, dword [esp + 0x20]
mov ecx, 4
lea edx, [esp + 0x18]
push ecx
push edx
push ecx
push 0
push eax
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, edi
call fcn.100150f0
test ebx, ebx
jne 0x1001568f
mov ecx, 7
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
lea edi, [esp + 0x20]
mov dword [edi + 0x14], ecx
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.ScreenY
push 8
call fcn.10014f30
add esp, 4
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x1001526f
mov eax, dword [esp + 0x20]
mov ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
push ecx
xor ecx, ecx
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, edi
call fcn.100150f0
test ebx, ebx
jne 0x1001568f
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 8]
lea edi, [esp + 0x20]
mov eax, 7
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.Width
push 6
call fcn.10014f30
add esp, 4
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x100152e1
mov eax, dword [esp + 0x20]
mov ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
push ecx
xor ecx, ecx
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, edi
call fcn.100150f0
test ebx, ebx
jne 0x1001568f
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
lea edi, [esp + 0x20]
mov eax, 7
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.Height
push 7
call fcn.10014f30
add esp, 4
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x10015353
mov eax, dword [esp + 0x20]
mov ecx, 4
push ecx
lea edx, [esp + 0x1c]
push edx
push ecx
xor ecx, ecx
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, edi
call fcn.100150f0
test ebx, ebx
jne 0x1001568f
mov eax, dword [ebp + 0xc]
movzx ebx, byte [eax + 0x44]
lea edi, [esp + 0x20]
mov eax, 7
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.Maximized
push 0xa
call fcn.10014f30
add esp, 4
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x100153c6
mov eax, dword [esp + 0x20]
mov edx, 4
push edx
lea ecx, [esp + 0x1c]
push ecx
push edx
xor ecx, ecx
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, edi
call fcn.100150f0
test ebx, ebx
jne 0x1001568f
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 eax, ecx
mov edi, 4
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 edi, [esp + 0x20]
mov eax, 7
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.Flags
push 6
call fcn.10014f30
add esp, 4
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x1001546e
mov eax, dword [esp + 0x20]
mov edx, 4
push edx
lea ecx, [esp + 0x1c]
push ecx
push edx
xor ecx, ecx
push ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, edi
call fcn.100150f0
test ebx, ebx
jne 0x1001568f
mov eax, dword [ebp + 0xc]
movsd xmm0, qword [eax + 0x30]
movsd qword [esp + 8], xmm0
lea edi, [esp + 0x20]
mov eax, 7
mov dword [edi + 0x14], eax
xor ebx, ebx
mov dword [edi + 0x10], ebx
mov word [edi], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.CssToDevPixelScaling
push 0x15
call fcn.10014f30
add esp, 4
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x18], xmm0
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x100154f0
mov eax, dword [esp + 0x20]
push 8
lea ecx, [esp + 0x1c]
push ecx
push 3
push ebx
push eax
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov ecx, edi
call fcn.100150f0
test ebx, ebx
jne 0x1001568f
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea edi, [esp + 0x20]
mov eax, 7
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 0
mov word [edi], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.UrlbarCSSSpan
push 0xe
call fcn.10014f30
add esp, 4
lea ebx, [esp + 0x18]
mov ecx, ebx
mov edx, dword [esp + 4]
push 1
push dword [esp + 0xc]
push edi
call fcn.10054e50
add esp, 0xc
mov eax, ebx
mov bl, byte [ebx + 4]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, edi
call fcn.100150f0
test bl, bl
jne 0x1001569b
mov eax, dword [ebp + 0xc]
add eax, 0x20
mov dword [esp + 8], eax
mov eax, 7
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.SearchbarCSSSpan
push 0x11
call fcn.10014f30
add esp, 4
lea ebx, [esp + 0x18]
mov ecx, ebx
mov edx, dword [esp + 4]
push 1
push dword [esp + 0xc]
push edi
call fcn.10054e50
add esp, 0xc
mov eax, ebx
mov bl, byte [ebx + 4]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, edi
call fcn.100150f0
test bl, bl
jne 0x1001569b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + 8], eax
mov eax, 7
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
mov ecx, edi
mov edx, dword [esp]
call fcn.10014de0
mov ecx, edi
mov edx, str.SpringsCSSSpan
push 0xf
call fcn.10014f30
add esp, 4
lea ebx, [esp + 0x18]
mov ecx, ebx
mov edx, dword [esp + 4]
push dword [esp + 8]
push dword [esp + 0x18]
push edi
call fcn.10054e50
add esp, 0xc
mov eax, ebx
mov bl, byte [ebx + 4]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, edi
call fcn.100150f0
test bl, bl
jne 0x1001569b
mov byte [esi + 4], 0
cmp dword [esp], 0
je 0x10015680
push dword [esp]
call sym.mozglue.dll__aligned_free
add esp, 4
push dword [esp + 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x1001516d
mov byte [esi + 4], 1
mov dword [esi], 8
jmp 0x1001566f
mov byte [esi + 4], 1
mov eax, dword [esp + 8]
mov dword [esi], eax
jmp 0x1001566f
mov eax, dword [esp + 0x20]
mov byte [esi + 4], 1
mov dword [esi], eax
jmp 0x1001516d
mov eax, dword [esp + 0x20]
mov byte [esi + 4], 1
mov dword [esi], eax
jmp 0x10015680