Function at 0x10040fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x1007a00c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x38], eax
cmp byte [0x1007b5e4], 0
jne 0x10041012
mov byte [esi + 4], 1
mov dword [esi], 2
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.10069260
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.1003f530
cmp byte [edi + 4], 1
je 0x10041522
lea edi, [esp + 0x20]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 4], eax
call fcn.1003c6e0
cmp byte [edi + 4], 1
mov eax, dword [edi]
mov dword [esp], eax
je 0x10041531
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
mov ecx, edi
mov ebx, dword [eax]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
call fcn.100424a0
mov ecx, edi
mov edx, str.ScreenX
push 8
call fcn.10042600
add esp, 4
cmp dword [esp + 0x34], 7
mov eax, edi
mov dword [esp + 0x18], ebx
jbe 0x1004108f
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 ecx, edi
mov ebx, eax
call fcn.10042450
test ebx, ebx
jne 0x1004150a
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
mov ecx, 7
lea edi, [esp + 0x20]
mov ebx, dword [eax + 4]
mov dword [edi + 0x14], ecx
xor eax, eax
mov ecx, edi
mov dword [edi + 0x10], eax
mov word [edi], 0
call fcn.100424a0
mov ecx, edi
mov edx, str.ScreenY
push 8
call fcn.10042600
add esp, 4
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [esp + 0x18], ebx
jbe 0x10041100
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 ecx, edi
mov ebx, eax
call fcn.10042450
test ebx, ebx
jne 0x1004150a
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
lea edi, [esp + 0x20]
mov ecx, edi
mov ebx, dword [eax + 8]
mov eax, 7
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
call fcn.100424a0
mov ecx, edi
mov edx, str.Width
push 6
call fcn.10042600
add esp, 4
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [esp + 0x18], ebx
jbe 0x10041172
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 ecx, edi
mov ebx, eax
call fcn.10042450
test ebx, ebx
jne 0x1004150a
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
lea edi, [esp + 0x20]
mov ecx, edi
mov ebx, dword [eax + 0xc]
mov eax, 7
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
call fcn.100424a0
mov ecx, edi
mov edx, str.Height
push 7
call fcn.10042600
add esp, 4
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [esp + 0x18], ebx
jbe 0x100411e4
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 ecx, edi
mov ebx, eax
call fcn.10042450
test ebx, ebx
jne 0x1004150a
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
lea edi, [esp + 0x20]
mov ecx, edi
movzx ebx, byte [eax + 0x44]
mov eax, 7
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], eax
mov word [edi], 0
call fcn.100424a0
mov ecx, edi
mov edx, str.Maximized
push 0xa
call fcn.10042600
add esp, 4
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [esp + 0x18], ebx
jbe 0x10041257
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 ecx, edi
mov ebx, eax
call fcn.10042450
test ebx, ebx
jne 0x1004150a
mov edx, dword [ebp + 0xc]
lea edi, [esp + 0x20]
movzx eax, byte [edx + 0x45]
mov ecx, eax
or ecx, 2
cmp byte [edx + 0x46], 0
cmove ecx, eax
mov eax, 4
mov ebx, ecx
or ebx, eax
cmp byte [edx + 0x47], 0
mov edx, dword [esp]
mov eax, 7
mov dword [edi + 0x14], eax
cmove ebx, ecx
xor eax, eax
mov ecx, edi
mov dword [edi + 0x10], eax
mov word [edi], 0
call fcn.100424a0
mov ecx, edi
mov edx, str.Flags
push 6
call fcn.10042600
add esp, 4
cmp dword [edi + 0x14], 7
mov eax, edi
mov dword [esp + 0x18], ebx
jbe 0x100412e6
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 ecx, edi
mov ebx, eax
call fcn.10042450
test ebx, ebx
jne 0x1004150a
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
lea edi, [esp + 0x20]
xor ebx, ebx
mov ecx, edi
movsd xmm0, qword [eax + 0x30]
mov eax, 7
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov word [edi], 0
movsd qword [esp + 8], xmm0
call fcn.100424a0
mov ecx, edi
mov edx, str.CssToDevPixelScaling
push 0x15
call fcn.10042600
add esp, 4
movsd xmm0, qword [esp + 8]
cmp dword [edi + 0x14], 7
mov eax, edi
movsd qword [esp + 0x18], xmm0
jbe 0x10041368
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 ecx, edi
mov ebx, eax
call fcn.10042450
test ebx, ebx
jne 0x1004150a
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
lea edi, [esp + 0x20]
mov ecx, 7
mov dword [edi + 0x14], ecx
mov ecx, edi
mov dword [edi + 0x10], 0
mov word [edi], 0
add eax, 0x10
mov dword [esp + 8], eax
call fcn.100424a0
mov ecx, edi
mov edx, str.UrlbarCSSSpan
push 0xe
call fcn.10042600
add esp, 4
mov edx, dword [esp + 4]
lea ebx, [esp + 0x18]
mov ecx, ebx
push 1
push dword [esp + 0xc]
push edi
call fcn.10041540
add esp, 0xc
mov eax, ebx
mov bl, byte [ebx + 4]
mov ecx, edi
mov eax, dword [eax]
mov dword [esp + 8], eax
call fcn.10042450
cmp bl, 1
je 0x10041516
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
mov ecx, 7
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ecx
mov ecx, edi
mov word [esp + 0x20], 0
add eax, 0x20
mov dword [esp + 8], eax
call fcn.100424a0
mov ecx, edi
mov edx, str.SearchbarCSSSpan
push 0x11
call fcn.10042600
add esp, 4
mov edx, dword [esp + 4]
lea ebx, [esp + 0x18]
mov ecx, ebx
push 1
push dword [esp + 0xc]
push edi
call fcn.10041540
add esp, 0xc
mov eax, ebx
mov bl, byte [ebx + 4]
mov ecx, edi
mov eax, dword [eax]
mov dword [esp + 8], eax
call fcn.10042450
cmp bl, 1
je 0x10041516
mov eax, dword [ebp + 0xc]
mov edx, dword [esp]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], ecx
mov ecx, 7
mov dword [esp + 8], eax
mov dword [esp + 0x34], ecx
mov ecx, edi
mov word [esp + 0x20], 0
call fcn.100424a0
mov ecx, edi
mov edx, str.SpringsCSSSpan
push 0xf
call fcn.10042600
add esp, 4
mov edx, dword [esp + 4]
lea ebx, [esp + 0x18]
mov ecx, ebx
push dword [esp + 8]
push dword [esp + 0x18]
push edi
call fcn.10041540
add esp, 0xc
mov eax, ebx
mov bl, byte [ebx + 4]
mov ecx, edi
mov eax, dword [eax]
mov dword [esp + 8], eax
call fcn.10042450
cmp bl, 1
je 0x10041516
mov byte [esi + 4], 0
cmp dword [esp], 0
je 0x100414fb
push dword [esp]
call sym.mozglue.dll__aligned_free
add esp, 4
push dword [esp + 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x10040ffd
mov byte [esi + 4], 1
mov dword [esi], 8
jmp 0x100414ea
mov eax, dword [esp + 8]
mov byte [esi + 4], 1
mov dword [esi], eax
jmp 0x100414ea
mov eax, dword [esp + 0x20]
mov byte [esi + 4], 1
mov dword [esi], eax
jmp 0x10040ffd
mov eax, dword [esp]
mov byte [esi + 4], 1
mov dword [esi], eax
jmp 0x100414fb